From 3892e96152c9aee53f7918b550a87e18bcbdf871 Mon Sep 17 00:00:00 2001 From: Kamil Bienkiewicz Date: Thu, 19 Mar 2026 10:34:37 +0100 Subject: [PATCH] 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 --- net/net-snmp/Makefile | 2 +- net/net-snmp/files/snmpd.conf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 9f890b0e9e..309962f5b6 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 7e69947c22..69ddd69c55 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'