|
From: Serge L. <sma...@us...> - 2008-03-13 15:30:14
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv18745 Modified Files: net-snmp Log Message: - added marker for the patch - modifyed Makefiles to simplify installation process - added net-snmp perl modules (were missed by previous installation script) Index: net-snmp =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/net-snmp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- net-snmp 22 Feb 2008 09:38:13 -0000 1.11 +++ net-snmp 13 Mar 2008 15:30:04 -0000 1.12 @@ -29,7 +29,10 @@ build ) if [ "$CONFIG_NET_SNMP" = "y" ]; then # HOT-FIX - bzcat $SRCDIR/net-snmp.ntop.patch.bz2 | patch -p0 || exit 1 + if [ ! -e .net-snmp.ntop.patch ]; then + bzcat $SRCDIR/net-snmp.ntop.patch.bz2 | patch -p0 || exit 1 + touch .net-snmp.ntop.patch + fi ./configure --prefix=/usr --disable-debugging --sysconfdir=/etc --localstatedir=/var --with-defaults --enable-shared --enable-ipv6 --enable-ucd-compatibility --with-zlib --with-mib-modules="smux" || exit 1 # disable parallel builds make -j1 all || exit 1 @@ -42,7 +45,12 @@ if [ "$CONFIG_NET_SNMP" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 - make -j1 install prefix=$TMPDIR/usr exec_prefix=$TMPDIR/usr sysconfdir=$TMPDIR/etc persistentdir=$TMPDIR/var/net-snmp || exit 1 + #make -j1 install prefix=$TMPDIR/usr exec_prefix=$TMPDIR/usr sysconfdir=$TMPDIR/etc persistentdir=$TMPDIR/var/net-snmp || exit 1 + for i in `find -name Makefile` + do + delete_str $i '^DESTDIR' + done + DESTDIR=$TMPDIR make -j1 install || exit 1 copy_docs $TMPDIR rm -rf $TMPDIR/usr/include || exit 1 cp -dpR $TMPDIR/usr/share $CDDIR/usr/ || exit 1 |