netsnmp: configurable MIB modules
PATCH 1/1 netsnmp: configurable MIB modules
From: przemyslaw <[email protected]>
Make the MIB modules, which are included/excluded in the build, to be configurable instead of being hard coded.
Signed-off-by przemyslaw <[email protected]>
--- package/netsnmp/Config.in | 16 +++++++++++++++- package/netsnmp/netsnmp.mk | 4 ++-- 2 files changed, 17 insertions(+), 3 deletions(-)
package/netsnmp/Config.in +15 -1
@@ -1,4 +1,4 @@ -config BR2_PACKAGE_NETSNMP +menuconfig BR2_PACKAGE_NETSNMP bool "netsnmp" help Suite of applications used to implement SNMP v1, SNMP v2c, and
@@ -15,6 +15,20 @@ config BR2_PACKAGE_NETSNMP_ENABLE_MIBS Say yes if you want those MIB files installed on the target and enable the code that parses the MIB files. +config BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES + string "Build with these MIB modules" + default "host ucd-snmp/dlmod" + depends on BR2_PACKAGE_NETSNMP + help + Specify which MIB modules to include. + +config BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES + string "Build without these MIB modules" + default "disman/event disman/schedule utilities" + depends on BR2_PACKAGE_NETSNMP + help + Specify which MIB modules to exclude. + config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING bool "Enable debugging code" depends on BR2_PACKAGE_NETSNMP
package/netsnmp/netsnmp.mk +2 -2
@@ -20,8 +20,8 @@ NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp --disable-static \ --enable-silent-libtool --enable-mfd-rewrites \ --with-sys-contact="root at localhost" \ --with-sys-location="Unknown" \ - --with-mib-modules="host ucd-snmp/dlmod" \ - --with-out-mib-modules="disman/event disman/schedule utilities" \ + --with-mib-modules="$(call qstrip,$(BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES))" \ + --with-out-mib-modules="$(call qstrip,$(BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES))" \ --with-out-transports="Unix" NETSNMP_MAKE = $(MAKE1) NETSNMP_BLOAT_MIBS = BRIDGE DISMAN-EVENT DISMAN-SCHEDULE DISMAN-SCRIPT EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX
Signature · 1 line
1.7.10.4
PATCH 1/1 netsnmp: configurable MIB modules
Quoted 6 lines · Przemyslaw Wrzos
From: przemyslaw <[email protected]>
Make the MIB modules, which are included/excluded in the build, to be configurable instead of being hard coded.
Signed-off-by przemyslaw <[email protected]>
Acked-by Gustavo Zacarias <[email protected]>
PATCH 1/1 netsnmp: configurable MIB modules
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Quoted 6 lines · Przemyslaw Wrzos
Quoted 6 lines
From: przemyslaw <[email protected]>
Make the MIB modules, which are included/excluded in the build, to be configurable instead of being hard coded.
Signed-off-by przemyslaw <[email protected]>
Gustavo> Acked-by: Gustavo Zacarias <[email protected]>
Committed minus the config->menuconfig change, thanks.
Signature · 1 line
Bye, Peter Korsgaard