OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 30-Dec-2006 22:15:10
Branch: HEAD Handle: 2006123021151000
Modified files:
openpkg-src/milter-dk milter-dk.spec
Log:
add a bunch of comments to make the packaging easier to follow
Summary:
Revision Changes Path
1.5 +14 -0 openpkg-src/milter-dk/milter-dk.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/milter-dk/milter-dk.spec
============================================================================
$ cvs diff -u -r1.4 -r1.5 milter-dk.spec
--- openpkg-src/milter-dk/milter-dk.spec 30 Dec 2006 19:22:02 -0000
1.4
+++ openpkg-src/milter-dk/milter-dk.spec 30 Dec 2006 21:15:10 -0000
1.5
@@ -74,6 +74,7 @@
%patch -p0
%build
+ # configure program
extlibs="%{l_fsl_libs}"
case "%{l_platform -t}" in
*-sunos* ) extlibs="$extlibs -lrt" ;;
@@ -83,9 +84,12 @@
echo "APPENDDEF(\`confLIBDIRS', \`%{l_ldflags} %{l_fsl_ldflags}')dnl"
echo "APPENDDEF(\`confLIBS', \`$extlibs')dnl"
) >devtools/Site/site.config.m4
+
+ # build program
./Build
%install
+ # create installation hierarchy
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
@@ -93,14 +97,24 @@
$RPM_BUILD_ROOT%{l_prefix}/sbin \
$RPM_BUILD_ROOT%{l_prefix}/man/man8 \
$RPM_BUILD_ROOT%{l_prefix}/var/milter-dk/tmp
+
+ # install program
%{l_shtool} install -c -s -m 755 \
obj.*/dk-filter/dk-filter $RPM_BUILD_ROOT%{l_prefix}/sbin/
+
+ # install manual page
%{l_shtool} install -c -m 644 \
dk-filter/dk-filter.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
+
+ # install run-command script
%{l_shtool} install -c -m 755 %{l_value -s -a} \
%{SOURCE rc.milter-dk} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+ # install OSSP fsl configuration
%{l_shtool} install -c -m 644 %{l_value -s -a} \
%{SOURCE fsl.milter-dk} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
+
+ # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/fsl/*' \
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]