+++ /dev/null
---- net-snmp-5.5.theorig/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2009-06-12 12:02:22.000000000 -0700
-+++ net-snmp-5.5/agent/mibgroup/if-mib/ifTable/ifTable_data_access.c 2009-10-20 11:29:41.000000000 -0700
-@@ -374,6 +374,7 @@ _check_interface_entry_for_updates(ifTab
- */
- if (oper_changed) {
- rowreq_ctx->data.ifLastChange = netsnmp_get_agent_uptime();
-+#ifdef USING_IF_MIB_IFXTABLE_IFXTABLE_MODULE
- if (rowreq_ctx->data.ifLinkUpDownTrapEnable == 1) {
- if (rowreq_ctx->data.ifOperStatus == IFOPERSTATUS_UP) {
- oid notification_oid[] = { 1, 3, 6, 1, 6, 3, 1, 1, 5, 4 };
-@@ -389,6 +390,7 @@ _check_interface_entry_for_updates(ifTab
- rowreq_ctx->data.ifOperStatus);
- }
- }
-+#endif
- }
-
- else
#
#############################################################
-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
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*