mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 15:37:44 +00:00
netsnmp: Make server and client installation optional
The netsnmp package consists of both a server and a number of client tools, this makes the installation of both parts optional. [Thomas: - Add explicit --enable-{agent,applications}, and use positive logic. - Remove "net-snmp" from the new Config.in option prompts, since they are already visible under the netsnmp package option.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
a9bf9fb5a2
commit
a387ff3837
@ -9,6 +9,18 @@ config BR2_PACKAGE_NETSNMP
|
|||||||
|
|
||||||
if 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
|
config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
|
||||||
bool "Install MIB files on target and enable MIB loading code"
|
bool "Install MIB files on target and enable MIB loading code"
|
||||||
default y
|
default y
|
||||||
|
@ -67,6 +67,18 @@ ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING),y)
|
|||||||
NETSNMP_CONF_OPTS += --disable-debugging
|
NETSNMP_CONF_OPTS += --disable-debugging
|
||||||
endif
|
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
|
# Remove IPv6 MIBs if there's no IPv6
|
||||||
ifneq ($(BR2_INET_IPV6),y)
|
ifneq ($(BR2_INET_IPV6),y)
|
||||||
define NETSNMP_REMOVE_MIBS_IPV6
|
define NETSNMP_REMOVE_MIBS_IPV6
|
||||||
@ -84,10 +96,12 @@ endef
|
|||||||
|
|
||||||
NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_BLOAT_MIBS
|
NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_BLOAT_MIBS
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_NETSNMP_SERVER),y)
|
||||||
define NETSNMP_INSTALL_INIT_SYSV
|
define NETSNMP_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \
|
$(INSTALL) -D -m 0755 package/netsnmp/S59snmpd \
|
||||||
$(TARGET_DIR)/etc/init.d/S59snmpd
|
$(TARGET_DIR)/etc/init.d/S59snmpd
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP
|
define NETSNMP_STAGING_NETSNMP_CONFIG_FIXUP
|
||||||
$(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" \
|
$(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user