summaryrefslogtreecommitdiff
path: root/net/kismet
diff options
context:
space:
mode:
authorjlam <jlam>2007-07-04 20:54:31 +0000
committerjlam <jlam>2007-07-04 20:54:31 +0000
commit45233ac07a4c6f9e80f4f9350cbb54ee23d8bd54 (patch)
tree651c1d29a5b557efafa04d2bb6f2cb512a979f64 /net/kismet
parent35280f0e8d9eafc402818392c064afdf54d281f7 (diff)
downloadpkgsrc-45233ac07a4c6f9e80f4f9350cbb54ee23d8bd54.tar.gz
Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user. This change affects most packages that require special users or groups by making them use the specified unprivileged user and group instead. (1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to unprivileged.mk. These two variables are lists of other bmake variables that define package-specific users and groups. Packages that have user-settable variables for users and groups, e.g. apache and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP}, etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}. (2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
Diffstat (limited to 'net/kismet')
-rw-r--r--net/kismet/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/kismet/Makefile b/net/kismet/Makefile
index 0cc3db0ce22..8cbb1ca6553 100644
--- a/net/kismet/Makefile
+++ b/net/kismet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/01/17 23:47:22 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2007/07/04 20:54:50 jlam Exp $
DISTNAME= kismet-2006-04-R1
PKGNAME= kismet-2006.04.01
@@ -26,7 +26,9 @@ KISMET_USER?= kismet
KISMET_GROUP?= kismet
PKG_GROUPS= ${KISMET_GROUP}
PKG_USERS= ${KISMET_USER}:${KISMET_GROUP}::Kismet\ user:${VARBASE}/log/kismet
-BUILD_DEFS+= KISMET_USER KISMET_GROUP VARBASE
+PKG_GROUPS_VARS+= KISMET_GROUP
+PKG_USERS_VARS+= KISMET_USER
+BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= ${PKGBASE}
EGDIR= ${PREFIX}/share/examples/${PKGBASE}