[Glibc-bsd-commits] r1545 - trunk/web/patches

Aurelien Jarno aurel32 at costa.debian.org
Wed May 3 20:31:04 UTC 2006


Author: aurel32
Date: 2006-05-03 20:31:03 +0000 (Wed, 03 May 2006)
New Revision: 1545

Modified:
   trunk/web/patches/net-snmp.diff
Log:
Cleaner patch (but still dirty)



Modified: trunk/web/patches/net-snmp.diff
===================================================================
--- trunk/web/patches/net-snmp.diff	2006-05-03 20:25:12 UTC (rev 1544)
+++ trunk/web/patches/net-snmp.diff	2006-05-03 20:31:03 UTC (rev 1545)
@@ -17,7 +17,15 @@
 diff -u net-snmp-5.2.2/debian/rules net-snmp-5.2.2/debian/rules
 --- net-snmp-5.2.2/debian/rules
 +++ net-snmp-5.2.2/debian/rules
-@@ -28,13 +28,13 @@
+@@ -21,21 +21,24 @@
+ PERL=/usr/bin/perl
+ endif
+ 
+-ARCH = $(shell dpkg --print-architecture)
++DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+ 
+ CFLAGS = -O2 -D_REENTRANT
+ ifneq "$(findstring debug,$(DEB_BUILD_OPTIONS))" ""
  CFLAGS += -g
  endif
  
@@ -27,20 +35,25 @@
           stamp-h.in include/net-snmp/net-snmp-config.h.in
 -#ifeq "$(ARCH)" "i386"
 -#MIB_MODULES +=  ucd-snmp/lmSensors
-+ifeq "$(ARCH)" "i386"
-+MIB_MODULES +=  ucd-snmp/lmSensors
++ifeq (linux,$(DEB_HOST_ARCH_OS))
++MIB_MODULES += ucd-snmp/diskio ucd-snmp/lmSensors 
  LIBSENSORS = -lsensors
 -#endif
+-
++IPV6 = --enable-ipv6
++else
++IPV6 = --disable-ipv6
 +endif
- 
++	
  build:  build-stamp
  build-stamp: debian/stamp-patched
-@@ -55,7 +55,7 @@
+ 	dh_testdir
+@@ -55,7 +58,7 @@
  	  --enable-ucd-snmp-compatibility \
  	  --enable-shared --with-cflags="$(CFLAGS)" \
  	  --with-perl-modules="INSTALLDIRS=vendor" \
 -	  --enable-ipv6 --with-logfile=none \
-+	  --disable-ipv6 --with-logfile=none \
++	  $(IPV6) --with-logfile=none \
  	  --without-rpm --with-libwrap --with-openssl \
  	  --without-dmalloc --without-efence --without-rsaref \
  	  --with-sys-contact="root" --with-sys-location="Unknown" \




More information about the Glibc-bsd-commits mailing list