diff options
author | zi <zi@FreeBSD.org> | 2013-08-14 00:34:57 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2013-08-14 00:34:57 +0800 |
commit | b3d8ee348079d69931484229665b0976b785f22c (patch) | |
tree | 586e32fedbea54a49025ddf8772b5ab16d2c025a | |
parent | 068a58cbd1c5dbb6c68d991966d9a3e27acf9856 (diff) | |
download | freebsd-ports-gnome-b3d8ee348079d69931484229665b0976b785f22c.tar.gz freebsd-ports-gnome-b3d8ee348079d69931484229665b0976b785f22c.tar.zst freebsd-ports-gnome-b3d8ee348079d69931484229665b0976b785f22c.zip |
- Make SMUX an easily editable option, default to ON
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index f8575cd303c4..b833b73bde65 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -16,8 +16,8 @@ LICENSE= BSD LICENSE_FILE= ${WRKSRC}/COPYING OPTIONS_DEFINE= IPV6 MFD_REWRITES PERL PERL_EMBEDDED PYTHON DUMMY TKMIB \ - DMALLOC MYSQL AX_SOCKONLY UNPRIVILEGED -OPTIONS_DEFAULT=IPV6 PERL PERL_EMBEDDED DUMMY + DMALLOC MYSQL AX_SOCKONLY UNPRIVILEGED SMUX +OPTIONS_DEFAULT=IPV6 PERL PERL_EMBEDDED DUMMY SMUX MFD_REWRITES_DESC= Build with 64-bit Interface Counters PERL_EMBEDDED_DESC= Build embedded perl @@ -26,6 +26,7 @@ TKMIB_DESC= Install graphical MIB browser DMALLOC_DESC= Enable dmalloc debug memory allocator AX_SOCKONLY_DESC= Disable UDP/TCP transports for agentx UNPRIVILEGED_DESC= Allow unprivileged users to execute net-snmp +SMUX_DESC= Build with SNMP multiplexing (SMUX) support .include <bsd.port.options.mk> @@ -148,7 +149,7 @@ NET_SNMP_SYS_CONTACT?= nobody@nowhere.invalid NET_SNMP_SYS_LOCATION?= somewhere NET_SNMP_LOGFILE?= /var/log/snmpd.log NET_SNMP_PERSISTENTDIR?=/var/net-snmp -NET_SNMP_WITH_MIB_MODULE_LIST+= host disman/event-mib smux mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio +NET_SNMP_WITH_MIB_MODULE_LIST+= host disman/event-mib mibII/mta_sendmail mibII/tcpTable ucd-snmp/diskio .if ${OSVERSION} >= 700028 NET_SNMP_WITH_MIB_MODULE_LIST+= sctp-mib @@ -163,6 +164,12 @@ CONFIGURE_ARGS+=--enable-mfd-rewrites NET_SNMP_WITH_MIB_MODULE_LIST+= if-mib .endif +.if ${PORT_OPTIONS:MSMUX} +NET_SNMP_WITH_MIB_MODULE_LIST+= smux +.else +NET_SNMP_WITHOUT_MIB_MODULE_LIST+= smux +.endif + .if defined(NET_SNMP_WITH_MIB_MODULE_LIST) && \ !empty(NET_SNMP_WITH_MIB_MODULE_LIST) CONFIGURE_ARGS+=--with-mib-modules="${NET_SNMP_WITH_MIB_MODULE_LIST}" |