[snmpd]: Update to 5.9+dfsg-4+deb11u1 to match Debian version (#11763)

* [snmpd]: Update to 5.9+dfsg-4+deb11u1 to match Debian version

This brings in some security fixes.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Update snmpd makefile

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Remove binNMU for snmpd

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
This commit is contained in:
Saikrishna Arcot 2022-08-19 11:20:00 -07:00 committed by GitHub
parent 56a679dc09
commit 5bb6d0deba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 15 deletions

View File

@ -2,7 +2,7 @@
ifeq ($(BLDENV),bullseye) ifeq ($(BLDENV),bullseye)
SNMPD_VERSION = 5.9+dfsg SNMPD_VERSION = 5.9+dfsg
SNMPD_VERSION_FULL = $(SNMPD_VERSION)-3+b1 SNMPD_VERSION_FULL = $(SNMPD_VERSION)-4+deb11u1
else else
SNMPD_VERSION = 5.7.3+dfsg SNMPD_VERSION = 5.7.3+dfsg
SNMPD_VERSION_FULL = $(SNMPD_VERSION)-5 SNMPD_VERSION_FULL = $(SNMPD_VERSION)-5

View File

@ -31,27 +31,13 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
rm -rf net-snmp-$(SNMPD_VERSION) rm -rf net-snmp-$(SNMPD_VERSION)
# download debian net-snmp # download debian net-snmp
ifneq (,$(findstring 5.9,$(SNMPD_VERSION)))
dget -u https://sonicstorage.blob.core.windows.net/debian/pool/main/n/net-snmp/net-snmp_$(SNMPD_VERSION)-3.dsc
else
dget -u https://sonicstorage.blob.core.windows.net/debian/pool/main/n/net-snmp/net-snmp_$(SNMPD_VERSION_FULL).dsc dget -u https://sonicstorage.blob.core.windows.net/debian/pool/main/n/net-snmp/net-snmp_$(SNMPD_VERSION_FULL).dsc
endif
pushd net-snmp-$(SNMPD_VERSION) pushd net-snmp-$(SNMPD_VERSION)
git init git init
git add -f * git add -f *
git commit -m "unmodified snmpd source" git commit -m "unmodified snmpd source"
ifneq (,$(findstring 5.9,$(SNMPD_VERSION)))
# Looks like Debian did a binNMU (binary non-maintainer upload), so the latest dsc
# file that we can get doesn't actually have the exact version number that Debian's
# repos have.
DEBEMAIL="$(shell git config --get user.name) <$(shell git config --get user.email)>" dch --bin-nmu "Rebuild against perl 5.32.0"
dch -r ""
git add debian/changelog
git commit -m "fix package version"
endif
# Apply patches # Apply patches
stg init stg init
stg import -s ../patch-$(SNMPD_VERSION)/series stg import -s ../patch-$(SNMPD_VERSION)/series