diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2012-03-18 03:50:26 +0800 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2012-03-18 03:50:26 +0800 |
commit | 9b376c5b9c6b40f0c2042fc9aeaf85d40161fc4a (patch) | |
tree | 1a467fd23e1b1a3060efb0284b4c60375445afd7 /net-mgmt | |
parent | c8e35e1ff4b58ea0cecbf78acddaba90734ff231 (diff) | |
download | freebsd-ports-gnome-9b376c5b9c6b40f0c2042fc9aeaf85d40161fc4a.tar.gz freebsd-ports-gnome-9b376c5b9c6b40f0c2042fc9aeaf85d40161fc4a.tar.zst freebsd-ports-gnome-9b376c5b9c6b40f0c2042fc9aeaf85d40161fc4a.zip |
- Add LICENSE
- Add OPTION for logging snmptraps to MySQL
- Add OPTION to restrict agentx access to a local socket only
Feature safe: yes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index e3e8bd0f16ec..a930a8190434 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -16,6 +16,8 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION} MAINTAINER= zi@FreeBSD.org COMMENT= An extendable SNMP implementation +LICENSE= BSD + OPTIONS= IPV6 "Build with IPv6 support" on \ MFD_REWRITES "Build with 64-bit Interface Counters" off \ PERL "Install additional perl modules" on \ @@ -24,6 +26,8 @@ OPTIONS= IPV6 "Build with IPv6 support" on \ DUMMY "Enable dummy values as placeholders" on \ TKMIB "Install graphical MIB browser" off \ DMALLOC "Enable dmalloc debug memory allocator" off \ + MYSQL "Enable logging of traps to MySQL" off \ + AX_SOCKONLY "Disable UDP/TCP transports for agentx" off \ UNPRIVILEGED "Allow unprivileged users to execute net-snmp" off .include <bsd.port.options.mk> @@ -114,6 +118,17 @@ LIB_DEPENDS+= dmalloc:${PORTSDIR}/devel/dmalloc CONFIGURE_ARGS+=--with-dmalloc=${LOCALBASE} .endif +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CFLAGS+= -I${LOCALBASE}/include +CONFIGURE_ARGS+=--with-mysql +CONFIGURE_ENV+= MYSQLCONFIG=${LOCALBASE}/bin/mysql_config +.endif + +.if defined(WITH_AX_SOCKONLY) +CONFIGURE_ARGS+=--enable-agentx-dom-sock-only +.endif + .if defined(WITH_IPV6) CONFIGURE_ARGS+=--enable-ipv6 # --with-transport="UDPIPv6 TCPIPv6" --with-modules=mibII/ipv6" |