summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-02 17:20:17 +0000
committerrillig <rillig@pkgsrc.org>2006-07-02 17:20:17 +0000
commitf1d0653006f5dcbd783ae3822563e1c5b3e75073 (patch)
tree54a07f11a4ec93bd171ada4836e4dcda6f68d189 /security
parente935a626bfe97be2247b7ec0a3b7449c2688cffd (diff)
downloadpkgsrc-f1d0653006f5dcbd783ae3822563e1c5b3e75073.tar.gz
Fixed unprivileged builds.
Diffstat (limited to 'security')
-rw-r--r--security/nessus-plugins/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/security/nessus-plugins/Makefile b/security/nessus-plugins/Makefile
index e32d668549f..dc19e24e7f8 100644
--- a/security/nessus-plugins/Makefile
+++ b/security/nessus-plugins/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2006/04/25 12:45:57 salo Exp $
+# $NetBSD: Makefile,v 1.31 2006/07/02 17:20:17 rillig Exp $
.include "../../security/nessus/Makefile.common"
@@ -30,5 +30,11 @@ post-install:
cd ${PREFIX} && \
${FIND} lib/nessus/plugins -type f -print >>${WRKDIR}/PLIST
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(UNPRIVILEGED:M[Yy][Ee][Ss])
+CONFIGURE_ARGS+= --enable-install=${ROOT_USER}
+.endif
+
.include "../../security/nessus-core/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"