summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-11-19 20:15:54 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-11-19 20:15:54 +0000
commit970da3e65853bed6b6896c0f963a5715b9ad435f (patch)
tree8c8f6a945eab3c94aca463494a7ed94338d5b45d /net-mgmt/net-snmp
parent- Add p5-Geo-JSON 0.005 (diff)
Add support for FreeBSD 11.
PR: ports/183594 Approved by: maintainer timeout (17 days)
Notes
Notes: svn path=/head/; revision=334348
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile2
-rw-r--r--net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c10
-rw-r--r--net-mgmt/net-snmp/files/patch-include-net-snmp-system-freebsd21
3 files changed, 32 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 884a4a50c7af..8c77b9f088f4 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -150,7 +150,7 @@ NET_SNMP_LOGFILE?= /var/log/snmpd.log
NET_SNMP_PERSISTENTDIR?=/var/net-snmp
NET_SNMP_WITH_MIB_MODULE_LIST+= host disman/event-mib mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio
-.if ${OSVERSION} >= 700028 && ${OSVERSION} < 1100000
+.if ${OSVERSION} >= 700028
NET_SNMP_WITH_MIB_MODULE_LIST+= sctp-mib
.endif
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
new file mode 100644
index 000000000000..3094fe075b7f
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-agent-mibgroup-mibII-ipv6.c
@@ -0,0 +1,10 @@
+--- 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/files/patch-include-net-snmp-system-freebsd b/net-mgmt/net-snmp/files/patch-include-net-snmp-system-freebsd
new file mode 100644
index 000000000000..cd3464d2bfdb
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-include-net-snmp-system-freebsd
@@ -0,0 +1,21 @@
+--- include/net-snmp/system/freebsd9.h.orig
++++ include/net-snmp/system/freebsd9.h
+@@ -1,3 +1,3 @@
+ /* freebsd9 is a superset of freebsd8 */
+ #include "freebsd8.h"
+-#define freebsd9 freebsd9
++#define freebsd8 freebsd8
+--- include/net-snmp/system/freebsd10.h.orig
++++ include/net-snmp/system/freebsd10.h
+@@ -1,3 +1,3 @@
+-/* freebsd9 is a superset of freebsd10 */
++/* freebsd10 is a superset of freebsd9 */
+ #include "freebsd9.h"
+-#define freebsd10 freebsd10
++#define freebsd9 freebsd9
+--- include/net-snmp/system/freebsd11.h.orig
++++ include/net-snmp/system/freebsd11.h
+@@ -0,0 +1,3 @@
++/* freebsd11 is a superset of freebsd10 */
++#include "freebsd10.h"
++#define freebsd10 freebsd10