summaryrefslogtreecommitdiff
path: root/package/netsnmp/netsnmp.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-11-02 16:34:14 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-04 23:42:27 +0100
commitde642c9904b13914017af6f10db144d559d6bd0c (patch)
tree12cd51e455402da82fb79099d4a698d53bbe6bef /package/netsnmp/netsnmp.mk
parent5e823375330a81d7f40ab3874fbedf82f2d0e6e3 (diff)
netsnmp: bump to version 5.6
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/netsnmp/netsnmp.mk')
-rw-r--r--package/netsnmp/netsnmp.mk28
1 files changed, 21 insertions, 7 deletions
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 0fe2bc886..e8d77881e 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -4,21 +4,24 @@
#
#############################################################
-NETSNMP_VERSION = 5.5
+NETSNMP_VERSION = 5.6
NETSNMP_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/net-snmp
NETSNMP_SOURCE = net-snmp-$(NETSNMP_VERSION).tar.gz
NETSNMP_INSTALL_STAGING = YES
-NETSNMP_LIBTOOL_PATCH = NO
-NETSNMP_MAKE = $(MAKE1)
NETSNMP_CONF_ENV = ac_cv_NETSNMP_CAN_USE_SYSCTL=yes
NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp --disable-static \
--with-defaults --enable-mini-agent --without-rpm \
--with-logfile=none --without-kmem-usage $(DISABLE_IPV6) \
--enable-as-needed --disable-debugging --without-perl-modules \
--disable-embedded-perl --disable-perl-cc-checks \
- --with-sys-contact="root@unknown" \
+ --disable-scripts --with-default-snmp-version="1" \
+ --enable-silent-libtool --enable-mfd-rewrites \
+ --with-sys-contact="root@localhost" \
--with-sys-location="Unknown" \
- --with-mib-modules="host smux ucd-snmp/dlmod"
+ --with-mib-modules="host ucd-snmp/dlmod" \
+ --with-out-mib-modules="disman/event disman/schedule utilities" \
+ --with-out-transports="Unix"
+NETSNMP_BLOAT_MIBS = BRIDGE DISMAN-EVENT DISMAN-SCHEDULE DISMAN-SCRIPT EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX
ifeq ($(BR2_ENDIAN),"BIG")
NETSNMP_CONF_OPT += --with-endianness=big
@@ -40,15 +43,26 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
NETSNMP_CONF_OPT += --disable-manuals
endif
+# Remove IPv6 MIBs if there's no IPv6
+ifneq ($(BR2_INET_IPV6),y)
+define NETSNMP_REMOVE_MIBS_IPV6
+ rm -f $(TARGET_DIR)/usr/share/snmp/mibs/IPV6*
+endef
+endif
+
define NETSNMP_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
DESTDIR=$(TARGET_DIR) install
$(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \
$(TARGET_DIR)/etc/init.d/S59snmpd
+ for mib in $(NETSNMP_BLOAT_MIBS); do \
+ rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \
+ done
+ $(NETSNMP_REMOVE_MIBS_IPV6)
endef
define NETSNMP_UNINSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) \
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
DESTDIR=$(TARGET_DIR) uninstall
rm -f $(TARGET_DIR)/etc/init.d/S59snmpd
rm -f $(TARGET_DIR)/usr/lib/libnetsnmp*