summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-11-18 14:26:43 +0000
committerMike Frysinger <vapier@gentoo.org>2002-11-18 14:26:43 +0000
commita0cdb785cf9039188e626011fa93deb8fcd315cd (patch)
tree080d486344ce56666d3f49f9340aadede3291241 /eclass/games.eclass
parentBug 6601 - long overdue (diff)
downloadgentoo-2-a0cdb785cf9039188e626011fa93deb8fcd315cd.tar.gz
gentoo-2-a0cdb785cf9039188e626011fa93deb8fcd315cd.tar.bz2
gentoo-2-a0cdb785cf9039188e626011fa93deb8fcd315cd.zip
finalizations
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r--eclass/games.eclass12
1 files changed, 7 insertions, 5 deletions
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
}