summaryrefslogtreecommitdiff
path: root/mk/platform/DragonFly.mk
diff options
context:
space:
mode:
authordholland <dholland>2010-07-08 04:57:36 +0000
committerdholland <dholland>2010-07-08 04:57:36 +0000
commit9e689c4c03b0ec62893440afe2981ccb6b505771 (patch)
tree2df7fde13e69eb07a9e22b7d3d36bc22d57f2fcf /mk/platform/DragonFly.mk
parentbc6606bbb8a4f12844793098582638f3c0d58e4e (diff)
downloadpkgsrc-9e689c4c03b0ec62893440afe2981ccb6b505771.tar.gz
Begin cleanup of setgid game infrastructure.
* Introduce USE_GAMESGROUP, which causes the games user and group to be made available. * Retain SETGIDGAME as an alias for USE_GAMESGROUP. Describe it as deprecated. * Always define GAMES_USER, GAMES_GROUP, GAMEMODE, GAMEDIRMODE, and GAMEDATAMODE, regardless of whether USE_GAMESGROUP is turned on or not. * Define these variables in defaults/mk.conf instead of separately in every platform/*.mk file. The definitions used to be the same for each of these platforms anyway, except for some where they were randomly missing or commented out for no clear reason, leading to broken game packages. * Handle all these variables properly when unprivileged. * Update the comments/documentation for these variables. * Describe GAMEOWN and GAMEGRP as deprecated. These need to be retained as aliases for GAMES_USER and GAMES_GROUP respectively for supporting packages that use bsd.*.mk but should otherwise not be used. * Add GAMEDATA_PERMS and GAMEDIR_PERMS using GAMEDATAMODE and GAMEDIRMODE respectively. * Fix a bug I noticed that was improperly mixing the "games" group and "games" user. Things this does *not* do: - get rid of GAMES_USER, for which there should ultimately be no need. - move the declaration/documentation/default value of USE_GAMESGROUP to a suitable place. (It is currently where SETGIDGAME was, which is suboptimal.) - touch any of the games, all of which need updating with at least s/SETGIDGAME/USE_GAMESGROUP/ and probably more. - update the guide to explain how to handle games properly. Also, it would be nice if using GAMES_GROUP without setting USE_GAMESGROUP=yes caused an error but as far as I know there isn't any particularly good way to arrange this right now. Note that these changes may alter the build/install behavior of broken game packages, e.g. some may silently become setgid when they weren't before or things like that. If you run into any of this file a PR. While one might arguably bump the PKGREVISION of all games or other packages using any of these variables as a precaution, that seems like a bad idea. Instead, I think I will be bumping each game once it itself has been fixed up to do everything the right way.
Diffstat (limited to 'mk/platform/DragonFly.mk')
-rw-r--r--mk/platform/DragonFly.mk15
1 files changed, 1 insertions, 14 deletions
diff --git a/mk/platform/DragonFly.mk b/mk/platform/DragonFly.mk
index 23ba0157af0..edca4dfdbcc 100644
--- a/mk/platform/DragonFly.mk
+++ b/mk/platform/DragonFly.mk
@@ -1,4 +1,4 @@
-# $NetBSD: DragonFly.mk,v 1.38 2009/12/16 19:48:09 joerg Exp $
+# $NetBSD: DragonFly.mk,v 1.39 2010/07/08 04:57:36 dholland Exp $
#
# Variable definitions for the DragonFly operating system.
@@ -84,16 +84,3 @@ PKG_HAVE_KQUEUE= # defined
# check for maximum command line length and set it in configure's environment,
# to avoid a test required by the libtool script that takes forever.
_OPSYS_MAX_CMDLEN_CMD= /sbin/sysctl -n kern.argmax
-
-# If games are to be installed setgid, then SETGIDGAME is set to 'yes'
-# (it defaults to 'no' as per defaults/mk.conf).
-# 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]))
-GAMES_USER= games
-GAMES_GROUP= games
-GAMEOWN= ${GAMES_USER}
-GAMEGRP= ${GAMES_GROUP}
-GAMEMODE= 2555
-GAMEDIRMODE= 0775
-.endif