Subject: Re: SETGIDGAME and id games
To: Jan Schaumann <jschauma@netmeister.org>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 05/12/2004 13:13:51
On Tue, 11 May 2004, Jan Schaumann wrote:
: Another issue that snj@ brought up: many of these games install
: scorefiles into /var/games. That's obviously outside of ${PREFIX} and
: we may want to consider providing a default location.
: ${PREFIX}/share/games, maybe? Other ideas?
No, they belong in /var. That's why SUPPORT_FILES and OWN_DIRS exist.
I already fixed something along these lines two weeks ago; see
pkgsrc/games/xbill. The introduction of:
USE_PKGINSTALL= YES
PKG_GROUPS= games
MAKE_DIRS_PERMS+= /var/games ${BINOWN} games 0775
SUPPORT_FILES_PERMS+= ${PREFIX}/share/examples/xbill.scores /var/games/xbill.scores ${BINOWN} games 0664
makes it work flawlessly on any system, whether or not it has a group
"games". The MAKE_DIRS_PERMS and SUPPORT_FILES_PERMS changes take place in
the package-internal INSTALL and DEINSTALL scripts, thus allowing a binary
package to manipulate files in /var.
Please don't put any additional changing data in ${PREFIX}. The fact that
pkgsrc does that now for some things by default (like postgresql) is very,
very bad. It should be possible to mount ${PREFIX} read-only and still have
everything work fine.
Runtime-changing data belongs in /var, period.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com>