From e4165b44525131cc03399774a5f5ca4853b4679f Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Fri, 29 Sep 2017 04:28:18 +0300 Subject: [PATCH] net-snmp: avoid duplicate section names It seems that UCI can't handle duplicate section names in a single config file, even if they use different types. After the previous commit, running `uci export` results in the following error: uci: Parse error (section of different type overwrites prior section with same name) at line 17, byte 23 Append a 6 to the com2sec6 section names to solve this. Fixes: 0e1c8b4ccc2c ("net-snmp: snmpd: listen on IPv6 by default") Signed-off-by: Stijn Tintel --- net/net-snmp/Makefile | 2 +- net/net-snmp/files/snmpd.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 104a4d54a7..0237a54da5 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.7.3 -PKG_RELEASE:=8 +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 b119059840..e18864d539 100644 --- a/net/net-snmp/files/snmpd.conf +++ b/net/net-snmp/files/snmpd.conf @@ -14,12 +14,12 @@ config com2sec private option source localhost option community private -config com2sec6 public +config com2sec6 public6 option secname ro option source default option community public -config com2sec6 private +config com2sec6 private6 option secname rw option source localhost option community private