mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 07:27:43 +00:00
snmppp: add option to disable SNMPv3 support
Disabling SNMPv3 support also removes the dependency on OpenSSL, which is pretty large (over 2 MB of uncompressed filesystem size on an ARM926 platform). BR2_PACKAGE_SNMPPP_SNMPV3 defaults to yes for backward compatibility with previous Buildroot releases, where SNMPv3 was always enabled. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
ac6718e73f
commit
4474809aa4
@ -2,7 +2,6 @@ config BR2_PACKAGE_SNMPPP
|
|||||||
bool "snmp++"
|
bool "snmp++"
|
||||||
depends on BR2_INSTALL_LIBSTDCPP
|
depends on BR2_INSTALL_LIBSTDCPP
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
select BR2_PACKAGE_OPENSSL
|
|
||||||
help
|
help
|
||||||
SNMP++v3.x is a C++ API which supports SNMP v1, v2c, and v3.
|
SNMP++v3.x is a C++ API which supports SNMP v1, v2c, and v3.
|
||||||
|
|
||||||
@ -17,6 +16,13 @@ config BR2_PACKAGE_SNMPPP_LOGGING
|
|||||||
According to the SNMP++ documentation, disabling logging "increases
|
According to the SNMP++ documentation, disabling logging "increases
|
||||||
performance drastically and minimizes memory consumption".
|
performance drastically and minimizes memory consumption".
|
||||||
|
|
||||||
|
config BR2_PACKAGE_SNMPPP_SNMPV3
|
||||||
|
bool "enable SNMPv3"
|
||||||
|
default y
|
||||||
|
select BR2_PACKAGE_OPENSSL
|
||||||
|
help
|
||||||
|
Enable optional support for SNMP++. This selects OpenSSL.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
comment "snmp++ needs a toolchain w/ threads, C++"
|
comment "snmp++ needs a toolchain w/ threads, C++"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
SNMPPP_VERSION = 3.3.4
|
SNMPPP_VERSION = 3.3.4
|
||||||
SNMPPP_SOURCE = snmp++-$(SNMPPP_VERSION).tar.gz
|
SNMPPP_SOURCE = snmp++-$(SNMPPP_VERSION).tar.gz
|
||||||
SNMPPP_SITE = http://www.agentpp.com
|
SNMPPP_SITE = http://www.agentpp.com
|
||||||
SNMPPP_DEPENDENCIES = openssl host-pkgconf
|
SNMPPP_DEPENDENCIES = host-pkgconf
|
||||||
SNMPPP_INSTALL_STAGING = YES
|
SNMPPP_INSTALL_STAGING = YES
|
||||||
# no configure script in tarball
|
# no configure script in tarball
|
||||||
SNMPPP_AUTORECONF = YES
|
SNMPPP_AUTORECONF = YES
|
||||||
@ -15,4 +15,11 @@ SNMPPP_CONF_OPT = $(if $(BR2_PACKAGE_SNMPPP_LOGGING),--enable-logging,--disable-
|
|||||||
SNMPPP_LICENSE = SNMP++
|
SNMPPP_LICENSE = SNMP++
|
||||||
SNMPPP_LICENSE_FILES = src/v3.cpp
|
SNMPPP_LICENSE_FILES = src/v3.cpp
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
|
||||||
|
SNMPPP_CONF_OPT += --enable-snmpv3
|
||||||
|
SNMPPP_DEPENDENCIES += openssl
|
||||||
|
else
|
||||||
|
SNMPPP_CONF_OPT += --disable-snmpv3
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user