Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 66511
Collapse All | Expand All

(-)/Volumes/Linux/usr/portage/eclass/games.eclass (-7 / +15 lines)
Lines 93-99 Link Here
93
dogameslib.so() { gameswrapper ${FUNCNAME/games} "$@"; }
93
dogameslib.so() { gameswrapper ${FUNCNAME/games} "$@"; }
94
newgamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }
94
newgamesbin() { gameswrapper ${FUNCNAME/games} "$@"; }
95
newgamessbin() { gameswrapper ${FUNCNAME/games} "$@"; }
95
newgamessbin() { gameswrapper ${FUNCNAME/games} "$@"; }
96
96
gamesownersr() { chown -R ${GAMES_USER}:${GAMES_GROUP} "$@"; }
97
gamesowners() { chown ${GAMES_USER}:${GAMES_GROUP} "$@"; }
97
gamesowners() { chown ${GAMES_USER}:${GAMES_GROUP} "$@"; }
98
gamesperms() { chmod u+rw,g+r-w,o-rwx "$@"; }
98
gamesperms() { chmod u+rw,g+r-w,o-rwx "$@"; }
99
prepgamesdirs() {
99
prepgamesdirs() {
Lines 101-109 Link Here
101
	for dir in ${GAMES_PREFIX} ${GAMES_PREFIX_OPT} ${GAMES_DATADIR} ${GAMES_SYSCONFDIR} \
101
	for dir in ${GAMES_PREFIX} ${GAMES_PREFIX_OPT} ${GAMES_DATADIR} ${GAMES_SYSCONFDIR} \
102
			${GAMES_STATEDIR} ${GAMES_LIBDIR} ${GAMES_BINDIR} "$@" ; do
102
			${GAMES_STATEDIR} ${GAMES_LIBDIR} ${GAMES_BINDIR} "$@" ; do
103
		(
103
		(
104
			gamesowners -R ${D}/${dir}
104
			local DDIR=`echo ${D}/${dir} | sed 's:/\{2,\}:/:g'`;
105
			find ${D}/${dir} -type d -print0 | xargs --null chmod 750
105
			gamesownersr ${DDIR}
106
			find ${D}/${dir} -type f -print0 | xargs --null chmod o-rwx,g+r
106
			find ${DDIR} -type d -print0 | xargs --null chmod 750
107
			find ${DDIR} -type f -print0 | xargs --null chmod o-rwx,g+r
107
		) >& /dev/null
108
		) >& /dev/null
108
	done
109
	done
109
	local f=""
110
	local f=""
Lines 132-139 Link Here
132
133
133
	# Dear carpaski and portage-dev team, we are so sorry.  Lots of love, games team
134
	# Dear carpaski and portage-dev team, we are so sorry.  Lots of love, games team
134
	# See Bug #61680
135
	# See Bug #61680
135
	[ "$(getent passwd ${GAMES_USER_DED} | cut -f7 -d:)" == "/bin/false" ] \
136
	if ! useq macos && ! useq ppc-macos ; then
136
		&& usermod -s /bin/bash "${GAMES_USER_DED}" 
137
		[ "$(getent passwd ${GAMES_USER_DED} | cut -f7 -d:)" == "/bin/false" ] \
138
			&& usermod -s /bin/bash "${GAMES_USER_DED}" 
139
	fi
137
}
140
}
138
141
139
games_src_compile() {
142
games_src_compile() {
Lines 147-153 Link Here
147
	ewarn "Remember, in order to play games, you have to"
150
	ewarn "Remember, in order to play games, you have to"
148
	ewarn "be in the '${GAMES_GROUP}' group."
151
	ewarn "be in the '${GAMES_GROUP}' group."
149
	echo
152
	echo
150
	einfo "See the usermod(8) manpage for more information."
153
	if useq macos ; then
154
		einfo "To add a user to the games group:"
155
		einfo "niutil -appendprop / /groups/games users <username>"	
156
	else
157
		einfo "See the usermod(8) manpage for more information."
158
	end
151
	echo
159
	echo
152
}
160
}
153
161

Return to bug 66511