diff options
author | Mike Frysinger <vapier@gentoo.org> | 2002-11-06 05:53:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2002-11-06 05:53:33 +0000 |
commit | 7c1833f70dad2c34a2e83debcc5b43520cdf4d92 (patch) | |
tree | 40d551c4f347d53f6a7df9ca61e756ecbffa44fc /eclass/games.eclass | |
parent | Updated dependancies so it will only build with gcc3 (diff) | |
download | gentoo-2-7c1833f70dad2c34a2e83debcc5b43520cdf4d92.tar.gz gentoo-2-7c1833f70dad2c34a2e83debcc5b43520cdf4d92.tar.bz2 gentoo-2-7c1833f70dad2c34a2e83debcc5b43520cdf4d92.zip |
more
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r-- | eclass/games.eclass | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 78f3049d7d7b..d706535346b3 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.4 2002/11/05 19:55:30 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.5 2002/11/06 05:53:33 vapier Exp $ # devlist: {bass,phoenix,vapier}@gentoo.org # This is the games ebuild for standardizing the install of games ... @@ -10,11 +10,17 @@ ECLASS=games INHERITED="$INHERITED $ECLASS" +EXPORT_FUNCTIONS pkg_postinst + export GAMES_PREFIX="/usr/games" +export GAMES_PREFIX_OPT="/opt/${PN}" export GAMES_DATADIR="/usr/share/games/${PN}" export GAMES_SYSCONFDIR="/etc/games/${PN}" export GAMES_STATEDIR="/var/games" -export GAMES_PREFIX_OPT="/opt/${PN}" +export GAMES_LIBDIR="/usr/games/lib" +export GAMES_BINDIR="/usr/games/bin" +export GAMES_ENVD="90games" +export GAMES_USER="root" export GAMES_GROUP="games" egameconf() { @@ -34,7 +40,7 @@ egameconf() { } gameswrapper() { - local olddtree=${DESTTREE} + local oldtree=${DESTTREE} into ${GAMES_PREFIX} local cmd="do$1"; shift ${cmd} $@ @@ -46,3 +52,11 @@ dogamesbin() { gameswrapper sbin $@; } dogamelib() { gameswrapper lib $@; } dogamelib.a() { gameswrapper lib.a $@; } dogamelib.so() { gameswrapper lib.so $@; } + +gameowners() { chown ${GAMES_USER}.${GAMES_ROOT} $@; } +gameperms() { chmod ug+r,o-rwx $@; } + +games_pkg_postinst() { + echo "LDPATH=\"${GAMES_LIBDIR}\"" > /etc/env.d/${GAMES_ENVD} + echo "PATH=\"${GAMES_BINDIR}\"" >> /etc/env.d/${GAMES_ENVD} +} |