[packages] net-snmp: Refresh patches
[openwrt/svn-archive/archive.git] / libs / net-snmp / patches / 110-debian-makefiles.patch
1 --- a/local/Makefile.in
2 +++ b/local/Makefile.in
3 @@ -100,7 +100,7 @@ tkmib.made: $(srcdir)/tkmib
4
5 mib2c.made: $(srcdir)/mib2c
6 if test "x$(PERL)" != "x" ; then \
7 - $(PERL) -p -e 's%^#!.*/perl.*%#!$(PERL)%;s#/usr/local/share/snmp#$(snmplibdir)#;' ${srcdir}/mib2c > mib2c.made; \
8 + $(PERL) -p -e 's%^#!.*/perl.*%#!$(PERL)%;s#/usr/local/share/snmp#$(snmplibdir)#;s#/usr/local/etc/snmp#$(SNMPCONFPATH)#;' ${srcdir}/mib2c > mib2c.made; \
9 else \
10 touch mib2c.made; \
11 fi
12 --- a/mibs/Makefile.in
13 +++ b/mibs/Makefile.in
14 @@ -48,11 +48,15 @@ NETSNMPMIBS = NET-SNMP-TC.txt NET-SNMP-M
15 UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
16 UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
17
18 +EXTRAMIBS = BGP4-MIB.txt BRIDGE-MIB.txt GNOME-SMI.txt OSPF-MIB.txt \
19 + OSPF-TRAP-MIB.txt RIPv2-MIB.txt SOURCE-ROUTING-MIB.txt \
20 + LM-SENSORS-MIB.txt
21 +
22 DEFAULTMIBS = @default_mibs_install@
23
24 MIBS = $(V1MIBS) $(V2MIBS) $(V3MIBS) $(RFCMIBS) \
25 $(AGENTMIBS) $(IANAMIBS) \
26 - $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS)
27 + $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS) $(EXTRAMIBS)
28
29 all: standardall
30
31 --- a/Makefile.top
32 +++ b/Makefile.top
33 @@ -26,6 +26,7 @@ man8dir = $(mandir)/man8
34 snmplibdir = $(datadir)/snmp
35 mibdir = $(snmplibdir)/mibs
36 persistentdir = @PERSISTENT_DIRECTORY@
37 +sysconfdir = @sysconfdir@
38 DESTDIR = @INSTALL_PREFIX@
39 INSTALL_PREFIX = $(DESTDIR)
40