2016-12-05 13:12:19 -06:00
|
|
|
# snmpd package
|
|
|
|
|
2021-07-14 14:22:27 -05:00
|
|
|
ifeq ($(BLDENV),bullseye)
|
|
|
|
SNMPD_VERSION = 5.9+dfsg
|
2022-08-19 13:20:00 -05:00
|
|
|
SNMPD_VERSION_FULL = $(SNMPD_VERSION)-4+deb11u1
|
2021-07-14 14:22:27 -05:00
|
|
|
else
|
2016-12-05 13:12:19 -06:00
|
|
|
SNMPD_VERSION = 5.7.3+dfsg
|
2020-05-14 12:23:37 -05:00
|
|
|
SNMPD_VERSION_FULL = $(SNMPD_VERSION)-5
|
2021-07-14 14:22:27 -05:00
|
|
|
endif
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
export SNMPD_VERSION SNMPD_VERSION_FULL
|
|
|
|
|
|
|
|
LIBSNMP_BASE = libsnmp-base_$(SNMPD_VERSION_FULL)_all.deb
|
|
|
|
$(LIBSNMP_BASE)_SRC_PATH = $(SRC_PATH)/snmpd
|
2016-12-06 12:12:22 -06:00
|
|
|
$(LIBSNMP_BASE)_DEPENDS += $(LIBNL3_DEV)
|
|
|
|
$(LIBSNMP_BASE)_RDEPENDS += $(LIBNL3)
|
2016-12-05 13:12:19 -06:00
|
|
|
SONIC_MAKE_DEBS += $(LIBSNMP_BASE)
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
SNMPTRAPD = snmptrapd_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2016-12-05 13:12:19 -06:00
|
|
|
$(SNMPTRAPD)_DEPENDS += $(LIBSNMP) $(SNMPD)
|
|
|
|
$(SNMPTRAPD)_RDEPENDS += $(LIBSNMP) $(SNMPD)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(SNMPTRAPD)))
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
SNMP = snmp_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2016-12-05 13:12:19 -06:00
|
|
|
$(SNMP)_DEPENDS += $(LIBSNMP)
|
|
|
|
$(SNMP)_RDEPENDS += $(LIBSNMP)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(SNMP)))
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
SNMPD = snmpd_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2016-12-05 13:12:19 -06:00
|
|
|
$(SNMPD)_DEPENDS += $(LIBSNMP)
|
|
|
|
$(SNMPD)_RDEPENDS += $(LIBSNMP)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(SNMPD)))
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
SNMP_DBG = snmp-dbgsym_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2020-03-27 14:57:14 -05:00
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(SNMP_DBG)))
|
2019-07-04 00:13:55 -05:00
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
SNMPD_DBG = snmpd-dbgsym_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2020-03-27 14:57:14 -05:00
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(SNMPD_DBG)))
|
2019-07-04 00:13:55 -05:00
|
|
|
|
2021-07-14 14:22:27 -05:00
|
|
|
ifeq ($(BLDENV),bullseye)
|
|
|
|
LIBSNMP = libsnmp40_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
else
|
2019-07-26 00:06:41 -05:00
|
|
|
LIBSNMP = libsnmp30_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2021-07-14 14:22:27 -05:00
|
|
|
endif
|
2016-12-05 13:12:19 -06:00
|
|
|
$(LIBSNMP)_RDEPENDS += $(LIBSNMP_BASE)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(LIBSNMP)))
|
|
|
|
|
2021-07-14 14:22:27 -05:00
|
|
|
ifeq ($(BLDENV),bullseye)
|
|
|
|
LIBSNMP_DBG = libsnmp40-dbgsym_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
|
|
|
else
|
2019-07-26 00:06:41 -05:00
|
|
|
LIBSNMP_DBG = libsnmp30-dbg_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2021-07-14 14:22:27 -05:00
|
|
|
endif
|
2016-12-05 13:12:19 -06:00
|
|
|
$(LIBSNMP_DBG)_DEPENDS += $(LIBSNMP)
|
|
|
|
$(LIBSNMP_DBG)_RDEPENDS += $(LIBSNMP)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(LIBSNMP_DBG)))
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
LIBSNMP_DEV = libsnmp-dev_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2016-12-05 13:12:19 -06:00
|
|
|
$(LIBSNMP_DEV)_DEPENDS += $(LIBSNMP)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(LIBSNMP_DEV)))
|
|
|
|
|
2019-07-26 00:06:41 -05:00
|
|
|
LIBSNMP_PERL = libsnmp-perl_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb
|
2016-12-05 13:12:19 -06:00
|
|
|
$(LIBSNMP_PERL)_DEPENDS += $(LIBSNMP)
|
|
|
|
$(LIBSNMP_PERL)_RDEPENDS += $(LIBSNMP)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(LIBSNMP_PERL)))
|
|
|
|
|
|
|
|
TKMIB = tkmib_$(SNMPD_VERSION_FULL)_all.deb
|
|
|
|
$(TKMIB)_DEPENDS += $(LIBSNMP_PERL)
|
|
|
|
$(TKMIB)_RDEPENDS += $(LIBSNMP_PERL)
|
|
|
|
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(TKMIB)))
|
2019-07-04 00:13:55 -05:00
|
|
|
|
|
|
|
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
|
|
|
# are archived into debug one image to facilitate debugging.
|
|
|
|
#
|
|
|
|
DBG_SRC_ARCHIVE += snmpd
|
|
|
|
|