1
0

110-debian-makefiles.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff -uNr a/local/Makefile.in b/local/Makefile.in
  2. --- a/local/Makefile.in 2014-02-20 08:36:42.000000000 +0800
  3. +++ b/local/Makefile.in 2014-05-27 13:21:34.245223503 +0800
  4. @@ -101,7 +101,7 @@
  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. diff -uNr a/Makefile.top b/Makefile.top
  13. --- a/Makefile.top 2014-02-20 08:36:42.000000000 +0800
  14. +++ b/Makefile.top 2014-05-27 13:26:53.023737120 +0800
  15. @@ -28,6 +28,7 @@
  16. snmplibdir = $(datadir)/snmp
  17. mibdir = $(snmplibdir)/mibs
  18. persistentdir = @PERSISTENT_DIRECTORY@
  19. +sysconfdir = @sysconfdir@
  20. DESTDIR = @INSTALL_PREFIX@
  21. INSTALL_PREFIX = $(DESTDIR)
  22. diff -uNr a/mibs/Makefile.in b/mibs/Makefile.in
  23. --- a/mibs/Makefile.in 2014-02-20 08:36:42.000000000 +0800
  24. +++ b/mibs/Makefile.in 2014-05-27 13:25:07.151988585 +0800
  25. @@ -47,11 +47,15 @@
  26. UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
  27. UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
  28. +EXTRAMIBS = BGP4-MIB.txt BRIDGE-MIB.txt GNOME-SMI.txt OSPF-MIB.txt \
  29. + OSPF-TRAP-MIB.txt RIPv2-MIB.txt SOURCE-ROUTING-MIB.txt \
  30. + LM-SENSORS-MIB.txt
  31. +
  32. DEFAULTMIBS = @default_mibs_install@
  33. MIBS = $(V1MIBS) $(V2MIBS) $(V3MIBS) $(RFCMIBS) \
  34. $(AGENTMIBS) $(IANAMIBS) \
  35. - $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS)
  36. + $(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS) $(EXTRAMIBS)
  37. all: standardall