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

(-)games.eclass.orig (-5 / +6 lines)
Lines 28-34 export GAMES_BINDIR=${GAMES_BINDIR:-${GA Link Here
28
export GAMES_ENVD="90games"
28
export GAMES_ENVD="90games"
29
# if you want to use a different user/group than games.games,
29
# if you want to use a different user/group than games.games,
30
# just add these two variables to your environment (aka /etc/profile)
30
# just add these two variables to your environment (aka /etc/profile)
31
export GAMES_USER=${GAMES_USER:-root}
31
export GAMES_USER=${GAMES_USER:-0}
32
export GAMES_USER_DED=${GAMES_USER_DED:-games}
32
export GAMES_USER_DED=${GAMES_USER_DED:-games}
33
export GAMES_GROUP=${GAMES_GROUP:-games}
33
export GAMES_GROUP=${GAMES_GROUP:-games}
34
34
Lines 85-94 prepgamesdirs() { Link Here
85
85
86
			# common trees should not be games owned #264872
86
			# common trees should not be games owned #264872
87
			if [[ ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then
87
			if [[ ${dir} == "${GAMES_PREFIX_OPT}" ]] ; then
88
				fowners root:root "${dir}"
88
				fowners 0:0 "${dir}"
89
				fperms 755 "${dir}"
89
				fperms 755 "${dir}"
90
				for d in $(get_libdir) bin ; do
90
				for d in $(get_libdir) bin ; do
91
					fowners root:root "${dir}/${d}"
91
					fowners 0:0 "${dir}/${d}"
92
					fperms 755 "${dir}/${d}"
92
					fperms 755 "${dir}/${d}"
93
				done
93
				done
94
			fi
94
			fi
Lines 125-133 games_pkg_setup() { Link Here
125
	[[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
125
	[[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
126
126
127
	enewgroup "${GAMES_GROUP}" 35
127
	enewgroup "${GAMES_GROUP}" 35
128
	[[ ${GAMES_USER} != "root" ]] \
128
	local superuser=$(egetent passwd 0 | cut -f1 -d:)
129
	[[ ${GAMES_USER} != 0 && ${GAMES_USER} != ${superuser} ]] \
129
		&& enewuser "${GAMES_USER}" 35 -1 "${GAMES_PREFIX}" "${GAMES_GROUP}"
130
		&& enewuser "${GAMES_USER}" 35 -1 "${GAMES_PREFIX}" "${GAMES_GROUP}"
130
	[[ ${GAMES_USER_DED} != "root" ]] \
131
	[[ ${GAMES_USER_DED} != 0 && ${GAMES_USER_DED} != ${superuser} ]] \
131
		&& enewuser "${GAMES_USER_DED}" 36 /bin/bash "${GAMES_PREFIX}" "${GAMES_GROUP}"
132
		&& enewuser "${GAMES_USER_DED}" 36 /bin/bash "${GAMES_PREFIX}" "${GAMES_GROUP}"
132
133
133
	# Dear portage team, we are so sorry.  Lots of love, games team.
134
	# Dear portage team, we are so sorry.  Lots of love, games team.

Return to bug 315779