summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2006-04-19 19:38:23 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2006-04-19 19:38:23 +0000
commit130b23c525091a2d612245d4826d556ef6457535 (patch)
tree671cc84920d16dde69a9192272827a4f6832b8dc /eclass
parentDo not install .svn directories, bug #119597. (diff)
downloadgentoo-2-130b23c525091a2d612245d4826d556ef6457535.tar.gz
gentoo-2-130b23c525091a2d612245d4826d556ef6457535.tar.bz2
gentoo-2-130b23c525091a2d612245d4826d556ef6457535.zip
built_with_use check before adding group/user in games_pkg_setup
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games.eclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 90f775d6ab53..16318de22991 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.110 2006/04/15 17:18:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.111 2006/04/19 19:38:23 mr_bones_ Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -138,12 +138,6 @@ EOF
games_pkg_setup() {
[[ ${GAMES_CHECK_LICENSE} == "yes" ]] && check_license ${LICENSE}
- enewgroup "${GAMES_GROUP}" 35
- [[ ${GAMES_USER} != "root" ]] \
- && enewuser "${GAMES_USER}" 35 -1 /usr/games "${GAMES_GROUP}"
- [[ ${GAMES_USER_DED} != "root" ]] \
- && enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}"
-
# Make sure SDL was built in a certain way
if [[ -n ${GAMES_USE_SDL} ]] ; then
if built_with_use -o media-libs/libsdl ${GAMES_USE_SDL} ; then
@@ -154,6 +148,12 @@ games_pkg_setup() {
fi
fi
+ enewgroup "${GAMES_GROUP}" 35
+ [[ ${GAMES_USER} != "root" ]] \
+ && enewuser "${GAMES_USER}" 35 -1 /usr/games "${GAMES_GROUP}"
+ [[ ${GAMES_USER_DED} != "root" ]] \
+ && enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}"
+
# Dear portage team, we are so sorry. Lots of love, games team.
# See Bug #61680
[[ ${USERLAND} != "GNU" ]] && return 0