aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2011-10-29 21:42:49 +0800
committerbeat <beat@FreeBSD.org>2011-10-29 21:42:49 +0800
commit2f099b4040e64843ce9d17eb434e9a2ba6bdfa64 (patch)
tree322d049fe08405f72b03dc1535158391af8d5e96 /net-mgmt
parent3e37dc839d59763c7a896139427a8b2d761d7114 (diff)
downloadfreebsd-ports-gnome-2f099b4040e64843ce9d17eb434e9a2ba6bdfa64.tar.gz
freebsd-ports-gnome-2f099b4040e64843ce9d17eb434e9a2ba6bdfa64.tar.zst
freebsd-ports-gnome-2f099b4040e64843ce9d17eb434e9a2ba6bdfa64.zip
- Fix build on FreeBSD 10
Approved by: portmgr (miwi)
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp/Makefile1
-rw-r--r--net-mgmt/net-snmp/files/patch-freebsd10.h5
-rw-r--r--net-mgmt/net-snmp/files/patch-sctpScalars.h2
-rw-r--r--net-mgmt/net-snmp/files/patch-sctpTables.h2
-rw-r--r--net-mgmt/net-snmp/files/patch-sctpTables_common.h2
5 files changed, 9 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 350e546b6a43..a55fe298ebe2 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -31,6 +31,7 @@ GNU_CONFIGURE= yes
USE_RC_SUBR= snmpd.sh snmptrapd.sh
USE_OPENSSL= yes
USE_LDCONFIG= yes
+WITH_FBSD10_FIX= yes
WANT_PERL= yes
CONFIGURE_ENV+= PERLPROG="${PERL}" PSPROG="${PS_CMD}" SED="${SED}"
diff --git a/net-mgmt/net-snmp/files/patch-freebsd10.h b/net-mgmt/net-snmp/files/patch-freebsd10.h
new file mode 100644
index 000000000000..c9daffdc9eb7
--- /dev/null
+++ b/net-mgmt/net-snmp/files/patch-freebsd10.h
@@ -0,0 +1,5 @@
+--- include/net-snmp/system/freebsd10.h.orig 2009-09-11 10:02:17.000000000 -0400
++++ include/net-snmp/system/freebsd10.h 2009-09-11 10:02:17.000000000 -0400
+@@ -0,0 +1,2 @@
++#include "freebsd9.h"
++#define freebsd9 freebsd9
diff --git a/net-mgmt/net-snmp/files/patch-sctpScalars.h b/net-mgmt/net-snmp/files/patch-sctpScalars.h
index 05538e0ddb0c..50f3b80ff7e7 100644
--- a/net-mgmt/net-snmp/files/patch-sctpScalars.h
+++ b/net-mgmt/net-snmp/files/patch-sctpScalars.h
@@ -5,7 +5,7 @@
#if defined( linux )
config_require(sctp-mib/sctpScalars_linux)
-#elif defined( freebsd8 ) || defined ( freebsd7 )
-+#elif defined( freebsd9 ) || defined( freebsd8 ) || defined ( freebsd7 )
++#elif defined( freebsd10 ) || defined( freebsd9 ) || defined( freebsd8 ) || defined ( freebsd7 )
config_require(sctp-mib/sctpScalars_freebsd)
#else
/*
diff --git a/net-mgmt/net-snmp/files/patch-sctpTables.h b/net-mgmt/net-snmp/files/patch-sctpTables.h
index d92fa6e0720f..50b055b71ea4 100644
--- a/net-mgmt/net-snmp/files/patch-sctpTables.h
+++ b/net-mgmt/net-snmp/files/patch-sctpTables.h
@@ -5,7 +5,7 @@
config_require(sctp-mib/sctpTables_linux)
config_require(util_funcs/get_pid_from_inode)
-#elif defined( freebsd7 ) || defined( freebsd8 )
-+#elif defined( freebsd7 ) || defined( freebsd8 ) || defined( freebsd9 )
++#elif defined( freebsd7 ) || defined( freebsd8 ) || defined( freebsd9 ) || defined( freebsd10 )
config_require(sctp-mib/sctpTables_freebsd)
#else
config_error(SCTP-MIB is not available in tihs environment)
diff --git a/net-mgmt/net-snmp/files/patch-sctpTables_common.h b/net-mgmt/net-snmp/files/patch-sctpTables_common.h
index 448ccee37ee7..82c45c0c35dc 100644
--- a/net-mgmt/net-snmp/files/patch-sctpTables_common.h
+++ b/net-mgmt/net-snmp/files/patch-sctpTables_common.h
@@ -5,7 +5,7 @@
#define SCTP_TABLES_COMMON_H
-#if defined(freebsd8) || defined(freebsd7)
-+#if defined(freebsd9) || defined(freebsd8) || defined(freebsd7)
++#if defined(freebsd10) || defined(freebsd9) || defined(freebsd8) || defined(freebsd7)
#define netsnmp_table_registration_info_free SNMP_FREE
#endif