1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
Makefile patch to include libwrap and libsensors libraries and install extra
MIB files.
Index: net-snmp-5.7.2~dfsg/local/Makefile.in
===================================================================
--- net-snmp-5.7.2~dfsg.orig/local/Makefile.in 2013-01-15 01:05:58.571396020 +0900
+++ net-snmp-5.7.2~dfsg/local/Makefile.in 2013-01-15 01:05:58.567396010 +0900
@@ -103,7 +103,7 @@
mib2c.made: $(srcdir)/mib2c
if test "x$(PERL)" != "x" ; then \
- $(PERL) -p -e 's%^#!.*/perl.*%#!$(PERL)%;s#/usr/local/share/snmp#$(snmplibdir)#;' ${srcdir}/mib2c > mib2c.made; \
+ $(PERL) -p -e 's%^#!.*/perl.*%#!$(PERL)%;s#/usr/local/share/snmp#$(snmplibdir)#;s#/usr/local/etc/snmp#$(SNMPCONFPATH)#;' ${srcdir}/mib2c > mib2c.made; \
else \
touch mib2c.made; \
fi
Index: net-snmp-5.7.2~dfsg/Makefile.top
===================================================================
--- net-snmp-5.7.2~dfsg.orig/Makefile.top 2013-01-15 01:05:58.571396020 +0900
+++ net-snmp-5.7.2~dfsg/Makefile.top 2013-01-15 01:11:31.544153075 +0900
@@ -27,6 +27,7 @@
snmplibdir = $(datadir)/snmp
mibdir = $(snmplibdir)/mibs
persistentdir = @PERSISTENT_DIRECTORY@
+sysconfdir = @sysconfdir@
DESTDIR = @INSTALL_PREFIX@
INSTALL_PREFIX = $(DESTDIR)
Index: net-snmp-5.7.2~dfsg/Makefile.in
===================================================================
--- net-snmp-5.7.2~dfsg.orig/Makefile.in 2013-01-15 01:05:58.571396020 +0900
+++ net-snmp-5.7.2~dfsg/Makefile.in 2013-01-15 01:09:08.607827737 +0900
@@ -17,7 +17,7 @@
INSTALLHEADERS=version.h net-snmp-features.h
INCLUDESUBDIR=system
-INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
+INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h kfreebsd.h \
darwin.h darwin7.h darwin8.h darwin9.h darwin10.h dragonfly.h dynix.h \
freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h \
freebsd7.h freebsd8.h freebsd9.h freebsd10.h freebsd.h \
@@ -170,7 +170,7 @@
#
# override LD_RUN_PATH to avoid dependencies on the build directory
perlmodules: perlmakefiles subdirs
- @(cd perl ; $(MAKE) LD_RUN_PATH="$(libdir):`$(PERL) -e 'use Config; print qq($$Config{archlibexp}/CORE);'`") ; \
+ @(cd perl ; $(MAKE) LD_RUN_PATH="") ; \
if test $$? != 0 ; then \
exit 1 ; \
fi
Index: net-snmp-5.7.2~dfsg/mibs/Makefile.in
===================================================================
--- net-snmp-5.7.2~dfsg.orig/mibs/Makefile.in 2013-01-15 01:05:58.571396020 +0900
+++ net-snmp-5.7.2~dfsg/mibs/Makefile.in 2013-01-15 01:17:21.484984229 +0900
@@ -48,11 +48,11 @@
UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
+EXTRAMIBS = GNOME-SMI LM-SENSORS-MIB
+
DEFAULTMIBS = @default_mibs_install@
-MIBS = $(V1MIBS) $(V2MIBS) $(V3MIBS) $(RFCMIBS) \
- $(AGENTMIBS) $(IANAMIBS) \
- $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS)
+MIBS = $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS) $(EXTRAMIBS)
all: standardall
|