diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 66edc04377bea0..89b77c6b937575 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.5.2 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/net-snmp diff --git a/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch b/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch new file mode 100644 index 00000000000000..72fd6854e9609b --- /dev/null +++ b/net/net-snmp/patches/140-debian-makefile_trap_needs_agent.patch @@ -0,0 +1,18 @@ +Description: Add libnetsnmpagent link to libnetsnmptrapd + Causes a linking issue otherwise + https://github.com/net-snmp/net-snmp/issues/434 +Author: Craig Small +Reviewed-by: Craig Small +Last-Update: 2023-08-19 +--- +--- a/apps/Makefile.in ++++ b/apps/Makefile.in +@@ -235,7 +235,7 @@ snmppcap$(EXEEXT): snmppcap.$(OSUFFIX + $(LINK) ${CFLAGS} -o $@ snmppcap.$(OSUFFIX) ${LDFLAGS} ${USEAGENTLIBS} ${LIBS} -lpcap + + libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS) +- $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(MYSQL_LIBS) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS) ++ $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(MYSQL_LIBS) $(USELIBS) $(USEAGENTLIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS) + $(RANLIB) $@ + + snmpinforminstall: