netsnmp: allow to disable MIB files installation and MIB loading code
authorLuca Ceresoli <luca@lucaceresoli.net>
Wed, 31 Aug 2011 19:46:39 +0000 (21:46 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 11 Sep 2011 21:10:23 +0000 (23:10 +0200)
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/netsnmp/Config.in
package/netsnmp/netsnmp.mk

index 5a3e9aabce01e2b37247fd9bea750e05d61b8cb0..431be2d38346fb5d7cf6dbb7bd91fca2460a98c7 100644 (file)
@@ -6,3 +6,11 @@ config BR2_PACKAGE_NETSNMP
 
          http://net-snmp.sourceforge.net/
 
+config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
+       bool "Install MIB files on target and enable MIB loading code"
+       default y
+       depends on BR2_PACKAGE_NETSNMP
+       help
+         The net-snmp package contains a selection of MIB files.
+         Say yes if you want those MIB files installed on the target
+         and enable the code that parses the MIB files.
index a44f3feef19b8d33a64da2d7f61f59b59a2c4de2..05d8db74f410402f642a509cdd5ef2332a193fec 100644 (file)
@@ -43,6 +43,11 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
        NETSNMP_CONF_OPT += --disable-manuals
 endif
 
+ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
+       NETSNMP_CONF_OPT += --disable-mib-loading
+       NETSNMP_CONF_OPT += --disable-mibs
+endif
+
 # Remove IPv6 MIBs if there's no IPv6
 ifneq ($(BR2_INET_IPV6),y)
 define NETSNMP_REMOVE_MIBS_IPV6