mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Add LICENSE
- Add OPTION for logging snmptraps to MySQL - Add OPTION to restrict agentx access to a local socket only Feature safe: yes
This commit is contained in:
parent
c8e35e1ff4
commit
9b376c5b9c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293469
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user