summaryrefslogtreecommitdiff
path: root/debian/patches/03_makefiles.patch
blob: ebfea3e0fb3273c88de5461a92572419ef05cdf9 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
diff -u -r net-snmp-5.7.1.pre2.orig/local/Makefile.in net-snmp-5.7.1.pre2/local/Makefile.in
--- net-snmp-5.7.1.pre2.orig/local/Makefile.in	2011-08-18 21:28:07.000000000 +0200
+++ net-snmp-5.7.1.pre2/local/Makefile.in	2011-08-23 00:21:24.000000000 +0200
@@ -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
diff -u -r net-snmp-5.7.1.pre2.orig/Makefile.in net-snmp-5.7.1.pre2/Makefile.in
--- net-snmp-5.7.1.pre2.orig/Makefile.in	2011-08-18 21:28:07.000000000 +0200
+++ net-snmp-5.7.1.pre2/Makefile.in	2011-08-23 00:21:24.000000000 +0200
@@ -168,7 +168,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
diff -u -r net-snmp-5.7.1.pre2.orig/Makefile.top net-snmp-5.7.1.pre2/Makefile.top
--- net-snmp-5.7.1.pre2.orig/Makefile.top	2011-08-18 21:28:07.000000000 +0200
+++ net-snmp-5.7.1.pre2/Makefile.top	2011-08-23 00:21:24.000000000 +0200
@@ -25,8 +25,9 @@
 man5dir		= $(mandir)/man5
 man8dir		= $(mandir)/man8
 snmplibdir	= $(datadir)/snmp
-mibdir		= $(snmplibdir)/mibs
+mibdir		= $(datadir)/mibs/netsnmp
 persistentdir	= @PERSISTENT_DIRECTORY@
+sysconfdir	= @sysconfdir@
 DESTDIR         = @INSTALL_PREFIX@
 INSTALL_PREFIX  = $(DESTDIR)
 
diff -u -r net-snmp-5.7.1.pre2.orig/mibs/Makefile.in net-snmp-5.7.1.pre2/mibs/Makefile.in
--- net-snmp-5.7.1.pre2.orig/mibs/Makefile.in	2011-08-18 21:28:07.000000000 +0200
+++ net-snmp-5.7.1.pre2/mibs/Makefile.in	2011-08-23 00:29:32.000000000 +0200
@@ -13,53 +13,22 @@
 OTHERUNINSTALL=mibsuninstall
 
 
-V1MIBS	= RFC1155-SMI.txt RFC1213-MIB.txt RFC-1215.txt
+NETSNMPMIBS = NET-SNMP-TC NET-SNMP-MIB NET-SNMP-AGENT-MIB \
+	NET-SNMP-EXAMPLES-MIB NET-SNMP-EXTEND-MIB NET-SNMP-PASS-MIB
 
-V2MIBS = SNMPv2-CONF.txt SNMPv2-SMI.txt SNMPv2-TC.txt SNMPv2-TM.txt \
-	SNMPv2-MIB.txt
+UCDMIBS = UCD-SNMP-MIB UCD-DEMO-MIB UCD-IPFWACC-MIB \
+	UCD-DLMOD-MIB UCD-DISKIO-MIB
 
-V3MIBS	= SNMP-FRAMEWORK-MIB.txt SNMP-MPD-MIB.txt SNMP-TARGET-MIB.txt \
-	SNMP-NOTIFICATION-MIB.txt SNMP-PROXY-MIB.txt \
-	SNMP-USER-BASED-SM-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt \
-	SNMP-COMMUNITY-MIB.txt TRANSPORT-ADDRESS-MIB.txt
-
-AGENTMIBS = AGENTX-MIB.txt SMUX-MIB.txt
-
-IANAMIBS = IANAifType-MIB.txt IANA-LANGUAGE-MIB.txt \
-	IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-
-RFCMIBS	= IF-MIB.txt IF-INVERTED-STACK-MIB.txt \
-	EtherLike-MIB.txt \
-	IP-MIB.txt IP-FORWARD-MIB.txt IANA-RTPROTO-MIB.txt \
-	TCP-MIB.txt UDP-MIB.txt \
-	INET-ADDRESS-MIB.txt HCNUM-TC.txt \
-	HOST-RESOURCES-MIB.txt HOST-RESOURCES-TYPES.txt \
-	RMON-MIB.txt \
-	IPV6-TC.txt IPV6-MIB.txt IPV6-ICMP-MIB.txt IPV6-TCP-MIB.txt \
-	IPV6-UDP-MIB.txt IPV6-FLOW-LABEL-MIB.txt TUNNEL-MIB.txt \
-	DISMAN-EVENT-MIB.txt DISMAN-SCRIPT-MIB.txt DISMAN-SCHEDULE-MIB.txt \
-	NOTIFICATION-LOG-MIB.txt SNMP-USM-AES-MIB.txt \
-	SNMP-USM-DH-OBJECTS-MIB.txt \
-	SCTP-MIB.txt BRIDGE-MIB.txt
-
-NETSNMPMIBS = NET-SNMP-TC.txt NET-SNMP-MIB.txt NET-SNMP-AGENT-MIB.txt \
-	NET-SNMP-EXAMPLES-MIB.txt NET-SNMP-EXTEND-MIB.txt NET-SNMP-PASS-MIB.txt
-
-UCDMIBS = UCD-SNMP-MIB.txt UCD-DEMO-MIB.txt UCD-IPFWACC-MIB.txt \
-	UCD-DLMOD-MIB.txt UCD-DISKIO-MIB.txt
-
-DEFAULTMIBS = @default_mibs_install@
-
-MIBS	= $(V1MIBS) $(V2MIBS) $(V3MIBS) $(RFCMIBS) \
-	$(AGENTMIBS) $(IANAMIBS) \
-	$(NETSNMPMIBS) $(UCDMIBS) $(DEFAULTMIBS)
+EXTRAMIBS = GNOME-SMI LM-SENSORS-MIB
+
+MIBS  = $(NETSNMPMIBS) $(UCDMIBS) $(EXTRAMIBS)
 
 all: standardall
 
 mibsinstall: installdirs
 	@for i in $(MIBS) ; do \
-		$(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_PREFIX)$(mibdir) ; \
-		echo "install: installed $$i in $(INSTALL_PREFIX)$(mibdir)" ; \
+		$(INSTALL_DATA) $(srcdir)/$$i.txt $(INSTALL_PREFIX)$(mibdir)/$$i ; \
+		echo "install: installed $$i.txt in $(INSTALL_PREFIX)$(mibdir)/$$i" ; \
 	done
 
 mibsuninstall: installdirs