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 openpkg-web Date: 04-Jul-2003 20:44:46
Branch: HEAD Handle: 2003070419444401
Modified files:
openpkg-src/snmp snmp.spec
openpkg-web news.txt
Log:
rpmtool police: remove Perl based script and add some comments
Summary:
Revision Changes Path
1.39 +12 -2 openpkg-src/snmp/snmp.spec
1.5270 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/snmp/snmp.spec
============================================================================
$ cvs diff -u -r1.38 -r1.39 snmp.spec
--- openpkg-src/snmp/snmp.spec 3 Jul 2003 14:31:32 -0000 1.38
+++ openpkg-src/snmp/snmp.spec 4 Jul 2003 18:44:45 -0000 1.39
@@ -33,7 +33,7 @@
Group: Network
License: BSD
Version: 5.0.8
-Release: 20030703
+Release: 20030704
# package options
%option with_fsl yes
@@ -65,6 +65,7 @@
SNMP; etc.
%prep
+ # unpack and patch package
%setup -q -n net-snmp-%{version}
%{l_shtool} subst \
-e 's;/usr/include/rpm;%{l_prefix}/include/rpm;g' \
@@ -76,6 +77,7 @@
configure
%build
+ # configure package
./configure \
--with-cc="%{l_cc}" \
--with-cflags="%{l_cflags -O}" \
@@ -90,11 +92,15 @@
--with-mib-modules="host" \
%endif
--with-defaults
+
+ # build package
%{l_make} %{l_mflags} touchit
%{l_make} %{l_mflags}
%install
rm -rf $RPM_BUILD_ROOT
+
+ # install package
%{l_shtool} subst -v \
-e "s;^\\(prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \
-e "s;^\\(exec_prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \
@@ -102,23 +108,27 @@
`find . -type f -name Makefile -print`
%{l_make} %{l_mflags} install
+ # create additional directories
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/var/%{name} \
$RPM_BUILD_ROOT%{l_prefix}/var/snmp \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
$RPM_BUILD_ROOT%{l_prefix}/etc/snmp
+ # install default configuration
%{l_shtool} install -c -m 644 \
%{SOURCE snmpd.conf} \
$RPM_BUILD_ROOT%{l_prefix}/etc/snmp/
+ # strip down installation
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/snmpinform
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ipf-mod.pl
ln $RPM_BUILD_ROOT%{l_prefix}/bin/snmptrap \
$RPM_BUILD_ROOT%{l_prefix}/bin/snmpinform
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
- # Creating run-command script
+ # creating run-command script
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-web/news.txt
============================================================================
$ cvs diff -u -r1.5269 -r1.5270 news.txt
--- openpkg-web/news.txt 4 Jul 2003 18:42:35 -0000 1.5269
+++ openpkg-web/news.txt 4 Jul 2003 18:44:44 -0000 1.5270
@@ -1,3 +1,4 @@
+04-Jul-2003: Upgraded package: P<snmp-5.0.8-20030704>
04-Jul-2003: Upgraded package: P<strace-4.4.98-20030704>
04-Jul-2003: Upgraded package: P<openldap-2.1.22-20030704>
04-Jul-2003: Upgraded package: P<nntpcache-3.0.1-20030704>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]