aboutsummaryrefslogtreecommitdiff
path: root/package/netsnmp
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2015-03-02 23:26:20 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-03-02 23:26:20 +0100
commit7403ea730d75ce0af51cb1bd5665674bb5bfae42 (patch)
treed93cc0b4a8878d90ab0bb79c76d75805ee1c2a9d /package/netsnmp
parent1021766976319b40e64ca8dee12d21c758197801 (diff)
parente6803b9f91357773154daed13d6e83712d49476c (diff)
downloadbuildroot-7403ea730d75ce0af51cb1bd5665674bb5bfae42.tar.gz
buildroot-7403ea730d75ce0af51cb1bd5665674bb5bfae42.tar.bz2
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/netsnmp')
-rw-r--r--package/netsnmp/Config.in19
-rw-r--r--package/netsnmp/netsnmp.mk16
2 files changed, 35 insertions, 0 deletions
diff --git a/package/netsnmp/Config.in b/package/netsnmp/Config.in
index 8edbd39446..47a53d7ead 100644
--- a/package/netsnmp/Config.in
+++ b/package/netsnmp/Config.in
@@ -9,6 +9,18 @@ config BR2_PACKAGE_NETSNMP
if BR2_PACKAGE_NETSNMP
+config BR2_PACKAGE_NETSNMP_SERVER
+ bool "server"
+ default y
+ help
+ The snmpd server.
+
+config BR2_PACKAGE_NETSNMP_CLIENTS
+ bool "clients"
+ default y
+ help
+ The net-snmp clients (snmpget, snmpwalk, etc).
+
config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
bool "Install MIB files on target and enable MIB loading code"
default y
@@ -37,4 +49,11 @@ config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
support, including the ability to log with DEBUGMSG(),
DEBUGMSGTL() and companion macros.
+config BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL
+ bool "Enable minimal internal OpenSSL code"
+ depends on !BR2_PACKAGE_OPENSSL
+ help
+ Enable a minimal internal copy of OpenSSL usable for USM
+ security. It will not enable the usage of SNMP over (D)TLS.
+
endif
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index f1b103e4ea..279a93dcd8 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -54,6 +54,8 @@ ifeq ($(BR2_STATIC_LIBS),y)
# openssl uses zlib, so we need to explicitly link with it when static
NETSNMP_CONF_ENV += LIBS=-lz
endif
+else ifeq ($(BR2_PACKAGE_NETSNMP_OPENSSL_INTERNAL),y)
+ NETSNMP_CONF_OPTS += --with-openssl=internal
else
NETSNMP_CONF_OPTS += --without-openssl
endif
@@ -67,6 +69,18 @@ ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING),y)
NETSNMP_CONF_OPTS += --disable-debugging
endif
+ifeq ($(BR2_PACKAGE_NETSNMP_SERVER),y)
+ NETSNMP_CONF_OPTS += --enable-agent
+else
+ NETSNMP_CONF_OPTS += --disable-agent
+endif
+
+ifeq ($(BR2_PACKAGE_NETSNMP_CLIENTS),y)
+ NETSNMP_CONF_OPTS += --enable-applications
+else
+ NETSNMP_CONF_OPTS += --disable-applications
+endif
+
# Remove IPv6 MIBs if there's no IPv6
ifneq ($(BR2_INET_IPV6),y)
define NETSNMP_REMOVE_MIBS_IPV6
@@ -84,10 +98,12 @@ endef
NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_BLOAT_MIBS
+ifeq ($(BR2_PACKAGE_NETSNMP_SERVER),y)
define NETSNMP_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \
$(TARGET_DIR)/etc/init.d/S59snmpd
endef
+endif
define NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP
$(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" \