net-snmp: add distro extend using /etc/os-release
authorKamil Bienkiewicz <redacted>
Thu, 19 Mar 2026 09:34:37 +0000 (10:34 +0100)
committerFlorian Eckert <redacted>
Tue, 24 Mar 2026 06:30:51 +0000 (07:30 +0100)
Read PRETTY_NAME from /etc/os-release via /bin/sh for distro output.

Bump PKG_RELEASE to account for the package configuration change.

Signed-off-by: Kamil Bienkiewicz <redacted>
net/net-snmp/Makefile
net/net-snmp/files/snmpd.conf

index 9f890b0e9efe992a2ea022e14fdd24c9d8e5babe..309962f5b62fcd802c3606fed725c0e5f00104a9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=net-snmp
 PKG_VERSION:=5.9.4
-PKG_RELEASE:=7
+PKG_RELEASE:=9
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/net-snmp
index 7e69947c2284663579823fe46f32be2369199891..69ddd69c55a8611b4f4ee997f818a2eeae902123 100644 (file)
@@ -93,6 +93,11 @@ config exec
        option args     /proc/sys/fs/file-nr
 #      option miboid   1.2.3.4
 
+config extend
+       option name     distro
+       option prog     /bin/sh
+       option args     "-c '. /etc/os-release; echo \"$PRETTY_NAME\"'"
+
 config engineid
 #      option engineid 'LEDE'
        option engineidtype '3'
git clone https://git.99rst.org/PROJECT