--- /Volumes/Linux/usr/portage/eclass/games.eclass Fri Sep 24 06:35:43 2004 +++ games.eclass Wed Oct 6 20:40:50 2004 @@ -93,7 +93,7 @@ dogameslib.so() { gameswrapper ${FUNCNAME/games} "$@"; } newgamesbin() { gameswrapper ${FUNCNAME/games} "$@"; } newgamessbin() { gameswrapper ${FUNCNAME/games} "$@"; } - +gamesownersr() { chown -R ${GAMES_USER}:${GAMES_GROUP} "$@"; } gamesowners() { chown ${GAMES_USER}:${GAMES_GROUP} "$@"; } gamesperms() { chmod u+rw,g+r-w,o-rwx "$@"; } prepgamesdirs() { @@ -101,9 +101,10 @@ for dir in ${GAMES_PREFIX} ${GAMES_PREFIX_OPT} ${GAMES_DATADIR} ${GAMES_SYSCONFDIR} \ ${GAMES_STATEDIR} ${GAMES_LIBDIR} ${GAMES_BINDIR} "$@" ; do ( - gamesowners -R ${D}/${dir} - find ${D}/${dir} -type d -print0 | xargs --null chmod 750 - find ${D}/${dir} -type f -print0 | xargs --null chmod o-rwx,g+r + local DDIR=`echo ${D}/${dir} | sed 's:/\{2,\}:/:g'`; + gamesownersr ${DDIR} + find ${DDIR} -type d -print0 | xargs --null chmod 750 + find ${DDIR} -type f -print0 | xargs --null chmod o-rwx,g+r ) >& /dev/null done local f="" @@ -132,8 +133,10 @@ # Dear carpaski and portage-dev team, we are so sorry. Lots of love, games team # See Bug #61680 - [ "$(getent passwd ${GAMES_USER_DED} | cut -f7 -d:)" == "/bin/false" ] \ - && usermod -s /bin/bash "${GAMES_USER_DED}" + if ! useq macos && ! useq ppc-macos ; then + [ "$(getent passwd ${GAMES_USER_DED} | cut -f7 -d:)" == "/bin/false" ] \ + && usermod -s /bin/bash "${GAMES_USER_DED}" + fi } games_src_compile() { @@ -147,7 +150,12 @@ ewarn "Remember, in order to play games, you have to" ewarn "be in the '${GAMES_GROUP}' group." echo - einfo "See the usermod(8) manpage for more information." + if useq macos ; then + einfo "To add a user to the games group:" + einfo "niutil -appendprop / /groups/games users " + else + einfo "See the usermod(8) manpage for more information." + end echo }