diff options
Diffstat (limited to 'package/net-snmp')
-rw-r--r-- | package/net-snmp/Makefile | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/package/net-snmp/Makefile b/package/net-snmp/Makefile index cc4a8b5d6..ddb103bbe 100644 --- a/package/net-snmp/Makefile +++ b/package/net-snmp/Makefile @@ -12,26 +12,33 @@ PKG_SECTION:= net/misc PKG_DEPENDS:= libnetsnmp libelf PKG_BUILDDEP+= libelf PKG_NOPARALLEL:= 1 -PKG_URL:= http://www.net-snmp.org +PKG_URL:= http://www.net-snmp.org/ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} PKG_DESCR_UTILS:= SNMP utilities PKG_DEPENDS_UTILS:= libnetsnmp libelf - PKG_DESCR_LIBS:= SNMP library PKG_DEPENDS_LIBS:= libelf PKG_SECTION_LIBS:= libs +PKG_FLAVOURS:= WITH_IPV6 +PKGFD_WITH_IPV6:= enable IPv6 support + include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,SNMPD,snmpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) $(eval $(call PKG_template,SNMP_UTILS,snmp-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_UTILS},${PKG_DESCR_UTILS},${PKG_SECTION})) $(eval $(call PKG_template,LIBNETSNMP,libnetsnmp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_LIBS},${PKG_DESCR_LIBS},${PKG_SECTION_LIBS})) -SNMP_TRANSPORTS_INCLUDED= UDP TCP Callback Unix -SNMP_TRANSPORTS_EXCLUDED= TCPIPv6 UDPIPv6 Alias -TLDFLAGS+= -pthread +SNMP_TRANSPORTS_INCLUDED:= UDP TCP Callback Unix +SNMP_TRANSPORTS_EXCLUDED:= Alias +ifneq (${ADK_PACKAGE_NET_SNMP_WITH_IPV6},) +SNMP_TRANSPORTS_INCLUDED+= TCPIPv6 UDPIPv6 +else +SNMP_TRANSPORTS_EXCLUDED:= TCPIPv6 UDPIPv6 +endif +TLDFLAGS+= -pthread CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \ --with-persistent-directory=/usr/lib/snmp/ \ --with-default-snmp-version=3 \ @@ -53,6 +60,12 @@ CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \ --without-rpm \ --without-zlib +ifneq (${ADK_PACKAGE_NET_SNMP_WITH_IPV6},) +CONFIGURE_ARGS+= --enable-ipv6 +else +CONFIGURE_ARGS+= --disable-ipv6 +endif + FAKE_FLAGS+= INSTALL_PREFIX="${WRKINST}" post-install: |