diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-03-19 00:05:08 +0800 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2015-03-19 00:05:08 +0800 |
commit | b9261c015467726094ee513044dcddff959da34d (patch) | |
tree | 67ef03f03094777a641990d9d725f7e4f99ab41b | |
parent | 13a028b3c3569024283a08f499aa79c641d4f6b7 (diff) | |
download | freebsd-ports-gnome-b9261c015467726094ee513044dcddff959da34d.tar.gz freebsd-ports-gnome-b9261c015467726094ee513044dcddff959da34d.tar.zst freebsd-ports-gnome-b9261c015467726094ee513044dcddff959da34d.zip |
On head do not build deprecated IPV6-MIB implementations in mibII/ipv6.c,
now superseeded by the INET-XXX-MIB versions. And no need for _WANT_IFADDR
hack now.
This fixes build on head, since cuts away the main kvm(3) abuser from
net-snmp.
Discussion: http://sourceforge.net/p/net-snmp/mailman/message/33539005/
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Approved by: zi
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index e232e4208b05..c96468c7e272 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -3,7 +3,7 @@ PORTNAME= snmp PORTVERSION= 5.7.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- @@ -155,10 +155,14 @@ NET_SNMP_WITH_MIB_MODULE_LIST+= sctp-mib CONFIGURE_ARGS+= --with-libs="-lssp_nonshared" .endif -.if ${OSVERSION} >= 1000000 +.if ${OSVERSION} >= 1000000 && ${OSVERSION} < 1100062 CFLAGS+= -D_WANT_IFADDR .endif +.if ${OSVERSION} >= 1100062 +CONFIGURE_ARGS+= --with-out-mib-modules="mibII/ipv6" +.endif + .if ${PORT_OPTIONS:MMFD_REWRITES} CONFIGURE_ARGS+=--enable-mfd-rewrites NET_SNMP_WITH_MIB_MODULE_LIST+= if-mib |