summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 06:51:41 +0000
committerjlam <jlam>2008-03-04 06:51:41 +0000
commit5797bfbd52d9b106c2e38ccceb177a47bad034f3 (patch)
tree5260e1c0fa1c8968a4e96e67b7d4305f13d83a6e
parentf357f16945a548269dc226551899cb002e1e2ad0 (diff)
downloadpkgsrc-5797bfbd52d9b106c2e38ccceb177a47bad034f3.tar.gz
Automatically add ${GAMES_USER} and ${GAMES_GROUP} to PKG_USERS and
PKG_GROUPS when SETGIDGAMES == yes.
-rw-r--r--mk/pkginstall/bsd.pkginstall.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/pkginstall/bsd.pkginstall.mk b/mk/pkginstall/bsd.pkginstall.mk
index 4fa046604b1..b7f2081f95e 100644
--- a/mk/pkginstall/bsd.pkginstall.mk
+++ b/mk/pkginstall/bsd.pkginstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.45 2008/03/04 06:45:33 jlam Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.46 2008/03/04 06:51:41 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -203,6 +203,12 @@ _PKG_USER_SHELL?= ${NOLOGIN}
FILES_SUBST+= PKG_USER_HOME=${_PKG_USER_HOME:Q}
FILES_SUBST+= PKG_USER_SHELL=${_PKG_USER_SHELL:Q}
+# If SETGIDGAME == yes, then we need the "games" user and group.
+.if defined(SETGIDGAME) && !empty(SETGIDGAME:M[yY][eE][sS])
+PKG_GROUPS+= ${GAMES_USER}
+PKG_USERS+= ${GAMES_USER}:${GAMES_GROUP}
+.endif
+
# Interix is very special in that users and groups cannot have the
# same name. Interix.mk tries to work around this by overriding
# some specific package defaults. If we get here and there's still a