2016-12-05 13:12:19 -06:00
|
|
|
SHELL = /bin/bash
|
|
|
|
.ONESHELL:
|
|
|
|
.SHELLFLAGS += -e
|
|
|
|
|
|
|
|
MAIN_TARGET = libsnmp-base_$(SNMPD_VERSION_FULL)_all.deb
|
2019-07-26 00:06:41 -05:00
|
|
|
DERIVED_TARGETS = snmptrapd_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
snmp_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
snmpd_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
snmp-dbgsym_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
snmpd-dbgsym_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
libsnmp30_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
libsnmp30-dbg_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
libsnmp-dev_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
|
|
|
libsnmp-perl_$(SNMPD_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
|
2016-12-05 13:12:19 -06:00
|
|
|
tkmib_$(SNMPD_VERSION_FULL)_all.deb
|
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
|
|
rm -rf net-snmp-$(SNMPD_VERSION)
|
|
|
|
|
|
|
|
# download debian net-snmp
|
2020-05-14 12:23:37 -05:00
|
|
|
dget -u https://sonicstorage.blob.core.windows.net/debian/pool/main/n/net-snmp/net-snmp_$(SNMPD_VERSION_FULL).dsc
|
2016-12-05 13:12:19 -06:00
|
|
|
|
|
|
|
pushd net-snmp-$(SNMPD_VERSION)
|
2018-09-04 03:40:14 -05:00
|
|
|
git init
|
|
|
|
git add -f *
|
|
|
|
git commit -m "unmodified snmpd source"
|
|
|
|
|
|
|
|
# Apply patches
|
|
|
|
stg init
|
|
|
|
stg import -s ../patch-$(SNMPD_VERSION)/series
|
|
|
|
|
2021-01-31 19:30:30 -06:00
|
|
|
dpkg-buildpackage -rfakeroot -b -d -us -uc -j1 --admindir $(SONIC_DPKG_ADMINDIR)
|
2016-12-05 13:12:19 -06:00
|
|
|
popd
|
|
|
|
|
|
|
|
mv $(DERIVED_TARGETS) $* $(DEST)/
|
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
|