pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   dholland
Date:           Thu Jul  8 04:57:36 UTC 2010

Modified Files:
        pkgsrc/mk: unprivileged.mk
        pkgsrc/mk/defaults: mk.conf
        pkgsrc/mk/pkginstall: bsd.pkginstall.mk
        pkgsrc/mk/platform: AIX.mk BSDOS.mk Darwin.mk DragonFly.mk FreeBSD.mk
            Haiku.mk IRIX.mk Interix.mk Linux.mk NetBSD.mk OpenBSD.mk SunOS.mk
            UnixWare.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/mk/unprivileged.mk
cvs rdiff -u -r1.191 -r1.192 pkgsrc/mk/defaults/mk.conf
cvs rdiff -u -r1.50 -r1.51 pkgsrc/mk/pkginstall/bsd.pkginstall.mk
cvs rdiff -u -r1.34 -r1.35 pkgsrc/mk/platform/AIX.mk
cvs rdiff -u -r1.27 -r1.28 pkgsrc/mk/platform/BSDOS.mk
cvs rdiff -u -r1.42 -r1.43 pkgsrc/mk/platform/Darwin.mk
cvs rdiff -u -r1.38 -r1.39 pkgsrc/mk/platform/DragonFly.mk \
    pkgsrc/mk/platform/SunOS.mk
cvs rdiff -u -r1.26 -r1.27 pkgsrc/mk/platform/FreeBSD.mk
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mk/platform/Haiku.mk
cvs rdiff -u -r1.35 -r1.36 pkgsrc/mk/platform/IRIX.mk
cvs rdiff -u -r1.63 -r1.64 pkgsrc/mk/platform/Interix.mk
cvs rdiff -u -r1.39 -r1.40 pkgsrc/mk/platform/Linux.mk
cvs rdiff -u -r1.32 -r1.33 pkgsrc/mk/platform/NetBSD.mk
cvs rdiff -u -r1.29 -r1.30 pkgsrc/mk/platform/OpenBSD.mk
cvs rdiff -u -r1.28 -r1.29 pkgsrc/mk/platform/UnixWare.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index