aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2015-02-18 00:44:00 +0800
committerzi <zi@FreeBSD.org>2015-02-18 00:44:00 +0800
commitb3ccbb3e5ff01e1bae11227f4a00a8fa4fb45508 (patch)
treeb3fdf6dc2503ddb7596809cd1c159b60bafa6e0a /net-mgmt
parent67afa5aa2b0d1c72b9e4176edccd1e83c5e59fb4 (diff)
downloadfreebsd-ports-gnome-b3ccbb3e5ff01e1bae11227f4a00a8fa4fb45508.tar.gz
freebsd-ports-gnome-b3ccbb3e5ff01e1bae11227f4a00a8fa4fb45508.tar.zst
freebsd-ports-gnome-b3ccbb3e5ff01e1bae11227f4a00a8fa4fb45508.zip
- Add JAIL OPTION to build with options that are happy for running snmpd within a jail(8)
PR: 197763 Submitted by: Athanasios Douitsis <aduitsis@gmail.com>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 97e738908e09..4f1aabf4b4ac 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -16,7 +16,7 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= IPV6 MFD_REWRITES PERL PERL_EMBEDDED PYTHON DUMMY TKMIB \
- MYSQL AX_SOCKONLY UNPRIVILEGED SMUX DOCS
+ MYSQL AX_SOCKONLY UNPRIVILEGED SMUX DOCS JAIL
OPTIONS_DEFAULT=IPV6 PERL PERL_EMBEDDED DUMMY SMUX
MFD_REWRITES_DESC= Build with 64-bit Interface Counters
@@ -27,6 +27,7 @@ TKMIB_DESC= Install graphical MIB browser
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
+JAIL_DESC= Options for running snmpd within a jail(8)
MAKE_JOBS_UNSAFE= yes
@@ -163,6 +164,12 @@ CONFIGURE_ARGS+=--enable-mfd-rewrites
NET_SNMP_WITH_MIB_MODULE_LIST+= if-mib
.endif
+.if ${PORT_OPTIONS:MJAIL}
+NET_SNMP_WITHOUT_MIB_MODULE_LIST+= host
+NET_SNMP_WITHOUT_MIB_MODULE_LIST+= ucd-snmp/memory
+CONFIGURE_ARGS+= --without-kmem-usage
+.endif
+
.if ${PORT_OPTIONS:MSMUX}
NET_SNMP_WITH_MIB_MODULE_LIST+= smux
.else