From a0cdb785cf9039188e626011fa93deb8fcd315cd Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 18 Nov 2002 14:26:43 +0000 Subject: finalizations --- eclass/games.eclass | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'eclass/games.eclass') diff --git a/eclass/games.eclass b/eclass/games.eclass index 081b6ef571b3..69b50c77ca9a 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.11 2002/11/17 22:29:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.12 2002/11/18 14:26:43 vapier Exp $ # devlist: {bass,phoenix,vapier}@gentoo.org # This is the games ebuild for standardizing the install of games ... @@ -67,13 +67,16 @@ dogameslib() { gameswrapper lib $@; } dogameslib.a() { gameswrapper lib.a $@; } dogameslib.so() { gameswrapper lib.so $@; } -gamesowners() { chown ${GAMES_USER}.${GAMES_ROOT} $@; } +gamesowners() { chown ${GAMES_USER}.${GAMES_GROUP} $@; } gamesperms() { chmod ug+r,o-rwx $@; } prepgamesdirs() { for dir in ${GAMES_PREFIX} ${GAMES_PREFIX_OPT} ${GAMES_DATADIR} ${GAMES_SYSCONFDIR} \ ${GAMES_STATEDIR} ${GAMES_LIBDIR} ${GAMES_BINDIR} ; do - chown -R ${GAMES_USER}.${GAMES_ROOT} ${dir}/* >& /dev/null & -# chmod -R ug+r,o-rwx ${GAMES_DIRS} + ( + chown -R ${GAMES_USER}.${GAMES_GROUP} ${D}/${dir} + find ${D}/${dir} -type d -print0 | xargs --null chmod 750 + find ${D}/${dir} -type f -print0 | xargs --null chmod o-rwx + ) >& /dev/null done } @@ -83,6 +86,5 @@ gamesenv() { } games_pkg_postinst() { - prepgamesdirs gamesenv } -- cgit v1.2.3-65-gdbad