OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 09-Feb-2005 16:51:33
Branch: HEAD Handle: 2005020915513200
Modified files:
openpkg-src/scponly scponly.spec
Log:
add chroot option and cleanup some other packaging parts
Summary:
Revision Changes Path
1.41 +22 -4 openpkg-src/scponly/scponly.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/scponly/scponly.spec
============================================================================
$ cvs diff -u -r1.40 -r1.41 scponly.spec
--- openpkg-src/scponly/scponly.spec 1 Jan 2005 10:54:34 -0000 1.40
+++ openpkg-src/scponly/scponly.spec 9 Feb 2005 15:51:32 -0000 1.41
@@ -34,10 +34,11 @@
Group: Network
License: MIT-style
Version: 4.0
-Release: 20041203
+Release: 20050209
# package options
-%option with_fsl yes
+%option with_fsl yes
+%option with_chroot no
# list of sources
Source0: http://www.sublimation.org/scponly/scponly-%{version}.tgz
@@ -85,7 +86,12 @@
./configure \
--cache-file=./config.cache \
--prefix=%{l_prefix} \
- --enable-rsync \
+ --enable-rsync-compat \
+ --enable-unison-compat \
+ --enable-svn-compat \
+%if "%{with_chroot}" == "yes"
+ --enable-chrooted-binary \
+%endif
PACKAGE_NAME=scponly
%{l_make} %{l_mflags -O} all debuglevel
@@ -103,6 +109,14 @@
%{l_shtool} install -c -m 644 \
debuglevel $RPM_BUILD_ROOT%{l_prefix}/etc/scponly/
+ # install scponlyc if building with chroot environment
+%if "%{with_chroot}" == "yes"
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/sbin
+ %{l_shtool} install -c -s -m 755 \
+ scponly $RPM_BUILD_ROOT%{l_prefix}/sbin/scponlyc
+%endif
+
# install run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
@@ -118,8 +132,12 @@
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
+%if "%{with_chroot}" == "yes"
+ '%attr(4555,%{l_susr},%{l_mgrp}) %{l_prefix}/sbin/scponlyc' \
+%endif
'%not %dir %{l_prefix}/etc/fsl' \
- '%config %{l_prefix}/etc/fsl/fsl.scponly'
+ '%config %{l_prefix}/etc/fsl/fsl.scponly' \
+ '%config %{l_prefix}/etc/scponly/*'
%files -f files
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]