summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoradrianp <adrianp>2009-03-18 22:50:28 +0000
committeradrianp <adrianp>2009-03-18 22:50:28 +0000
commit114077a00e9a57cb639cc65afd470f8d5b672ee3 (patch)
tree788db027f9fde88b3ea80e418dadd2107344504b /net
parentadb99953401fbb47da4673857ec2e68ad6599082 (diff)
downloadpkgsrc-114077a00e9a57cb639cc65afd470f8d5b672ee3.tar.gz
Add two new options to help when running snmpd as an unpriveleged user
Diffstat (limited to 'net')
-rw-r--r--net/net-snmp/options.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/net-snmp/options.mk b/net/net-snmp/options.mk
index 42c827a1df3..e6da67b04e6 100644
--- a/net/net-snmp/options.mk
+++ b/net/net-snmp/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.7 2008/04/12 22:43:08 jlam Exp $
+# $NetBSD: options.mk,v 1.8 2009/03/18 22:50:28 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.net-snmp
-PKG_SUPPORTED_OPTIONS= ssl
+PKG_SUPPORTED_OPTIONS= ssl snmp-unprived snmp-nokmem
.include "../../mk/bsd.prefs.mk"
@@ -26,3 +26,11 @@ CONFIGURE_ARGS+= --with-openssl
.else
CONFIGURE_ARGS+= --without-openssl
.endif
+
+.if !empty(PKG_OPTIONS:Msnmp-nokmem)
+CONFIGURE_ARGS+= --without-kmem-usage
+.endif
+
+.if !empty(PKG_OPTIONS:Msnmp-unprived)
+CONFIGURE_ARGS+= --without-root-access
+.endif