pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/net-snmp Add two new options to help when running ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f1c06266eb1
branches:  trunk
changeset: 556289:0f1c06266eb1
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Wed Mar 18 22:50:28 2009 +0000

description:
Add two new options to help when running snmpd as an unpriveleged user

diffstat:

 net/net-snmp/options.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 141642c1fc07 -r 0f1c06266eb1 net/net-snmp/options.mk
--- a/net/net-snmp/options.mk   Wed Mar 18 21:58:26 2009 +0000
+++ b/net/net-snmp/options.mk   Wed Mar 18 22:50:28 2009 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index