pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/pkginstall Automatically add ${GAMES_USER} and ${GA...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f079ffad6d5c
branches:  trunk
changeset: 539337:f079ffad6d5c
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Mar 04 06:51:41 2008 +0000

description:
Automatically add ${GAMES_USER} and ${GAMES_GROUP} to PKG_USERS and
PKG_GROUPS when SETGIDGAMES == yes.

diffstat:

 mk/pkginstall/bsd.pkginstall.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 5640d616ef9d -r f079ffad6d5c mk/pkginstall/bsd.pkginstall.mk
--- a/mk/pkginstall/bsd.pkginstall.mk   Tue Mar 04 06:45:33 2008 +0000
+++ b/mk/pkginstall/bsd.pkginstall.mk   Tue Mar 04 06:51:41 2008 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index