From: Kamil Bienkiewicz Date: Thu, 19 Mar 2026 09:34:37 +0000 (+0100) Subject: net-snmp: add distro extend using /etc/os-release X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3892e96152c9aee53f7918b550a87e18bcbdf871;p=openwrt-packages.git net-snmp: add distro extend using /etc/os-release 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 --- diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 9f890b0e9..309962f5b 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -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 diff --git a/net/net-snmp/files/snmpd.conf b/net/net-snmp/files/snmpd.conf index 7e69947c2..69ddd69c5 100644 --- a/net/net-snmp/files/snmpd.conf +++ b/net/net-snmp/files/snmpd.conf @@ -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'