initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
config BR2_PACKAGE_SNMPPP
|
||||
bool "snmp++"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
SNMP++v3.x is a C++ API which supports SNMP v1, v2c, and v3.
|
||||
|
||||
http://www.agentpp.com/snmp_pp3_x/snmp_pp3_x.html
|
||||
|
||||
if BR2_PACKAGE_SNMPPP
|
||||
|
||||
config BR2_PACKAGE_SNMPPP_LOGGING
|
||||
bool "enable logging"
|
||||
help
|
||||
Enable logging output for SNMP++.
|
||||
According to the SNMP++ documentation, disabling logging
|
||||
"increases performance drastically and minimizes memory
|
||||
consumption".
|
||||
|
||||
config BR2_PACKAGE_SNMPPP_SNMPV3
|
||||
bool "enable SNMPv3"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
Enable optional support for SNMP++. This selects OpenSSL.
|
||||
|
||||
comment "SNMPv3 needs a toolchain w/ gcc >= 4.8"
|
||||
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
|
||||
|
||||
endif
|
||||
|
||||
comment "snmp++ needs a toolchain w/ threads, C++, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 a3eb75e2310c315d9b2c2094154c7cd9b46684adb80a4b36b8957dcc09af4041 snmp++-3.4.2.tar.gz
|
||||
sha256 f6fd4321c7eb6e51a272f91f964aea7f53039bb2b55f690d5a9d042f3a5d79b9 src/v3.cpp
|
||||
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# snmppp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SNMPPP_VERSION = 3.4.2
|
||||
SNMPPP_SOURCE = snmp++-$(SNMPPP_VERSION).tar.gz
|
||||
SNMPPP_SITE = http://www.agentpp.com/download
|
||||
SNMPPP_DEPENDENCIES = host-pkgconf
|
||||
SNMPPP_INSTALL_STAGING = YES
|
||||
SNMPPP_CONF_OPTS = $(if $(BR2_PACKAGE_SNMPPP_LOGGING),--enable-logging,--disable-logging)
|
||||
SNMPPP_LICENSE = SNMP++
|
||||
SNMPPP_LICENSE_FILES = src/v3.cpp
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SNMPPP_SNMPV3),y)
|
||||
SNMPPP_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
|
||||
SNMPPP_CONF_OPTS += --enable-snmpv3
|
||||
SNMPPP_DEPENDENCIES += openssl
|
||||
else
|
||||
SNMPPP_CONF_OPTS += --disable-snmpv3
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user