aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2013-11-23 08:15:03 +0800
committerzi <zi@FreeBSD.org>2013-11-23 08:15:03 +0800
commitd5333112fabd4ad43b4f9eeac2d593a2141038cf (patch)
tree9b49ccde6773a3fa971cb34c8baf18bd897f6dc2 /net-mgmt
parent195ea067738e8b83428f740f2178a801020001bc (diff)
downloadfreebsd-ports-gnome-d5333112fabd4ad43b4f9eeac2d593a2141038cf.tar.gz
freebsd-ports-gnome-d5333112fabd4ad43b4f9eeac2d593a2141038cf.tar.zst
freebsd-ports-gnome-d5333112fabd4ad43b4f9eeac2d593a2141038cf.zip
- Fix FreeBSD 11 support
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp/Makefile4
-rw-r--r--net-mgmt/net-snmp/files/patch-Makefile.in11
-rw-r--r--net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c10
-rw-r--r--net-mgmt/net-snmp/pkg-plist1
4 files changed, 16 insertions, 10 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 8c77b9f088f4..33777920902d 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -158,6 +158,10 @@ NET_SNMP_WITH_MIB_MODULE_LIST+= sctp-mib
CONFIGURE_ARGS+= --with-libs="-lssp_nonshared"
.endif
+.if ${OSVERSION} >= 1000000
+CFLAGS+= -D_WANT_IFADDR
+.endif
+
.if ${PORT_OPTIONS:MMFD_REWRITES}
CONFIGURE_ARGS+=--enable-mfd-rewrites
NET_SNMP_WITH_MIB_MODULE_LIST+= if-mib
diff --git a/net-mgmt/net-snmp/files/patch-Makefile.in b/net-mgmt/net-snmp/files/patch-Makefile.in
new file mode 100644
index 000000000000..d05757edaac1
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2013-11-22 12:27:23.000000000 -0800
++++ Makefile.in 2013-11-22 12:28:30.000000000 -0800
+@@ -20,7 +20,7 @@
+ INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
+ darwin.h darwin7.h darwin8.h darwin9.h darwin10.h dragonfly.h dynix.h \
+ freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h \
+- freebsd7.h freebsd8.h freebsd9.h freebsd10.h freebsd.h \
++ freebsd7.h freebsd8.h freebsd9.h freebsd10.h freebsd11.h freebsd.h \
+ generic.h \
+ hpux.h irix.h linux.h mingw32.h mips.h netbsd.h osf5.h \
+ openbsd.h openbsd5.h openbsd4.h \
diff --git a/net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c b/net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c
deleted file mode 100644
index 3094fe075b7f..000000000000
--- a/net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- agent/mibgroup/mibII/ipv6.c.orig 2012-10-10 00:28:58.000000000 +0200
-+++ agent/mibgroup/mibII/ipv6.c 2013-11-19 21:01:33.000000000 +0100
-@@ -55,6 +55,7 @@
- #endif
- #include <net/if.h>
- #if HAVE_NET_IF_VAR_H
-+#define _WANT_IFADDR
- #include <net/if_var.h>
- #endif
- #if HAVE_NET_IF_DL_H
diff --git a/net-mgmt/net-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist
index 5c04607ebd41..69d14e699ace 100644
--- a/net-mgmt/net-snmp/pkg-plist
+++ b/net-mgmt/net-snmp/pkg-plist
@@ -183,6 +183,7 @@ include/net-snmp/system/freebsd7.h
include/net-snmp/system/freebsd8.h
include/net-snmp/system/freebsd9.h
include/net-snmp/system/freebsd10.h
+include/net-snmp/system/freebsd11.h
include/net-snmp/system/generic.h
include/net-snmp/system/hpux.h
include/net-snmp/system/irix.h