diff options
author | Mike Frysinger <vapier@gentoo.org> | 2002-11-17 22:19:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2002-11-17 22:19:37 +0000 |
commit | 64b46f02dd94f130b8fb3cad58fa47a7bd11b048 (patch) | |
tree | 1870d68e249e7f5ea64fae65cba3848c849cbb04 /eclass | |
parent | new version of spicctrl (diff) | |
download | gentoo-2-64b46f02dd94f130b8fb3cad58fa47a7bd11b048.tar.gz gentoo-2-64b46f02dd94f130b8fb3cad58fa47a7bd11b048.tar.bz2 gentoo-2-64b46f02dd94f130b8fb3cad58fa47a7bd11b048.zip |
added prepgames
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 886cdd3d8798..8a831ea5a77e 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.8 2002/11/17 22:03:49 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.9 2002/11/17 22:19:37 vapier Exp $ # devlist: {bass,phoenix,vapier}@gentoo.org # This is the games ebuild for standardizing the install of games ... @@ -69,6 +69,14 @@ dogameslib.so() { gameswrapper lib.so $@; } gamesowners() { chown ${GAMES_USER}.${GAMES_ROOT} $@; } gamesperms() { chmod ug+r,o-rwx $@; } +prepgames() { + local GAMES_DIRS="${GAMES_PREFIX} ${GAMES_PREFIX_OPT} ${GAMES_DATADIR} \ + ${GAMES_SYSCONFDIR} ${GAMES_STATEDIR} ${GAMES_LIBDIR} \ + ${GAMES_BINDIR}" + + chown -R ${GAMES_USER}.${GAMES_ROOT} ${GAMES_DIRS} + chmod -R ug+r,o-rwx ${GAMES_DIRS} +} gamesenv() { echo "LDPATH=\"${GAMES_LIBDIR}\"" > /etc/env.d/${GAMES_ENVD} |