summaryrefslogtreecommitdiff
path: root/sysutils/lsof/Makefile
diff options
context:
space:
mode:
authoragc <agc>2001-04-30 14:37:23 +0000
committeragc <agc>2001-04-30 14:37:23 +0000
commitc172629d6621bd8e668c1ad06de21dde711339e5 (patch)
tree3783bdaadfa9a3cddd031d96ba32c95f13d6e53d /sysutils/lsof/Makefile
parent11bc1b67ace5db6c9bd67bc6cb017fc57eb17cac (diff)
downloadpkgsrc-c172629d6621bd8e668c1ad06de21dde711339e5.tar.gz
Add a mk.conf variable LSOF_MORE_SECURE, which, if set to 1, will
mean that non-privileged users can only view their own open files. Fixes PR 12741, from Anne Bennett (anne@alcor.concordia.ca)
Diffstat (limited to 'sysutils/lsof/Makefile')
-rw-r--r--sysutils/lsof/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/lsof/Makefile b/sysutils/lsof/Makefile
index 69f26bff05f..32350fd7839 100644
--- a/sysutils/lsof/Makefile
+++ b/sysutils/lsof/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2001/03/07 16:07:31 agc Exp $
+# $NetBSD: Makefile,v 1.40 2001/04/30 14:37:23 agc Exp $
# FreeBSD Id: Makefile,v 1.19 1998/03/08 06:44:48 obrien Exp
#
@@ -21,6 +21,7 @@ HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./Configure
CONFIGURE_ARGS= -n ${LOWER_OPSYS}
CONFIGURE_ENV+= LSOF_CC="${CC} ${CFLAGS}"
+MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DLSOF_MORE_SECURE=${LSOF_MORE_SECURE}"
SRCBALL_NAME= ${DISTNAME:S/_W$//}
@@ -32,6 +33,8 @@ REAL_GROUP= -g kmem
MAKE_ENV+= CPPFLAGS=
.endif
+LSOF_MORE_SECURE?= 0
+
post-extract:
@(cd ${WRKDIR} ; \
EXPMD5=`${GREP} MD5 README.${SRCBALL_NAME} | ${SED} 's/^[ ]*//'` ; \