udp-mib \
utilities \
-SNMP_TRANSPORTS_INCLUDED = Callback UDP
+SNMP_TRANSPORTS_INCLUDED = Callback UDP UDPIPv6
-SNMP_TRANSPORTS_EXCLUDED = TCP TCPv6 UDPv6 Unix
+SNMP_TRANSPORTS_EXCLUDED = TCP TCPIPv6 Unix
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
+ --enable-ipv6 \
--with-endianness=little \
--with-logfile=/var/log/snmpd.log \
--with-persistent-directory=/usr/lib/snmp/ \
--with-sys-location=Unknown \
--enable-applications \
--disable-debugging \
- --disable-ipv6 \
--disable-manuals \
--disable-mibs \
--disable-scripts \
PID_F=$RUN_D/snmpd.pid
RUN_C=$RUN_D/snmpd.conf
+snmpd_agent_add() {
+ local cfg="$1"
+
+ config_get agentaddress "$cfg" agentaddress
+ [ -n "$agentaddress" ] || return 0
+ echo "agentaddress $agentaddress" >> $RUN_C
+}
snmpd_system_add() {
local cfg="$1"
config_get syslocation "$cfg" sysLocation
config_load snmpd
+ config_foreach snmpd_agent_add agent
config_foreach snmpd_system_add system
config_foreach snmpd_com2sec_add com2sec
config_foreach snmpd_group_add group