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