summaryrefslogtreecommitdiff
path: root/mk/platform/FreeBSD.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 06:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 06:45:33 +0000
commit26a6bb9ac414018f199b2fa7ffdfebbe0b930679 (patch)
tree53927b9cc2c07e26be3e7581f09a05ed030ac452 /mk/platform/FreeBSD.mk
parent810c83eb14cc8e59d1c701703e0d49763ee7a0a5 (diff)
downloadpkgsrc-26a6bb9ac414018f199b2fa7ffdfebbe0b930679.tar.gz
+ Conditionally add GAMES_USER and GAMES_GROUP to the platform *.mk
files. These variables are currently usable if ${SETGIDGAME} == yes. These variables should be used when describing ownership of files and directories to the pkginstall framework, e.g. SPECIAL_PERMS= bin/foogame ${GAMES_USER} ${GAMES_GROUP} 2555 + Rename SETGID_GAME_PERMS to SETGID_GAMES_PERMS because the default group name is "games". + Define SETGID_GAMES_PERMS in terms of GAMES_USER and GAMES_GROUP so that these names are protected from the normal flow of unprivileged.mk. This fixes the +INSTALL scripts in "user-destdir" packages to correctly refer to the games:games instead of the user:group of the user that built the packages.
Diffstat (limited to 'mk/platform/FreeBSD.mk')
-rw-r--r--mk/platform/FreeBSD.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/platform/FreeBSD.mk b/mk/platform/FreeBSD.mk
index 0948d8bdba5..ee039414aa0 100644
--- a/mk/platform/FreeBSD.mk
+++ b/mk/platform/FreeBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: FreeBSD.mk,v 1.23 2007/10/19 13:41:35 rillig Exp $
+# $NetBSD: FreeBSD.mk,v 1.24 2008/03/04 06:45:34 jlam Exp $
#
# Variable definitions for the FreeBSD operating system.
@@ -89,8 +89,10 @@ _OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
# Set the group and mode to meaningful values in that case (defaults to
# BINOWN, BINGRP and BINMODE as per defaults/mk.conf).
.if !(empty(SETGIDGAME:M[yY][eE][sS]))
-GAMEOWN= games
-GAMEGRP= games
+GAMES_USER= games
+GAMES_GROUP= games
+GAMEOWN= ${GAMES_USER}
+GAMEGRP= ${GAMES_GROUP}
GAMEMODE= 2555
GAMEDIRMODE= 0775
.endif