Update of /cvsroot/devil-linux/build/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16060
Modified Files:
net-snmp
Log Message:
- add lm_sensors patch to net-snmp
Index: net-snmp
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/net-snmp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- net-snmp 16 Jun 2008 17:41:54 -0000 1.14
+++ net-snmp 23 Oct 2008 02:58:03 -0000 1.15
@@ -10,7 +10,7 @@
### BEGIN INIT INFO
# Provides: net-snmp
-# Required-Start: $basebuildtools glibc zlib openssl perl
+# Required-Start: $basebuildtools glibc zlib openssl perl lm_sensors
# Required-Stop:
# Default-Start: 1 2
# Default-Stop:
@@ -28,12 +28,15 @@
case $1 in
build )
if [ "$CONFIG_NET_SNMP" = "y" ]; then
- # HOT-FIX
- #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
+ if [ "$CONFIG_LM_SENSORS" = "y" ]; then
+ if [ ! -f .lm_sensors-patches.done ]; then
+ bzcat $SRCDIR/net-snmp-5.4.1-sensors3.patch.bz2 | patch -p0 || exit 1
+ touch .lm_sensors-patches.done
+ fi
+ OPTIONS="--with-mib-modules=ucd-snmp/lmsensorsMib --with-ldflags=-lsensors"
+ fi
+ echo ./configure --prefix=/usr --disable-debugging --sysconfdir=/etc --localstatedir=/var --with-defaults --enable-shared --enable-ipv6 --enable-ucd-compatibility --with-zlib --with-mib-modules="smux" $OPTIONS || exit 1
+ ./configure --prefix=/usr --disable-debugging --sysconfdir=/etc --localstatedir=/var --with-defaults --enable-shared --enable-ipv6 --enable-ucd-compatibility --with-zlib --with-mib-modules="smux" $OPTIONS || exit 1
# disable parallel builds
make -j1 all || exit 1
strip_debug
|