summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-09-09 07:36:00 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-09-09 07:36:00 +0000
commit2848f30c271d1a6f3bbb4206fed014c8f5787420 (patch)
tree35ce78979f8db5a24631f278d3a5864d3f0edaab /eclass
parentun-deprecate until portage 2.0.51 is stable and we have proper working cascad... (diff)
downloadgentoo-2-2848f30c271d1a6f3bbb4206fed014c8f5787420.tar.gz
gentoo-2-2848f30c271d1a6f3bbb4206fed014c8f5787420.tar.bz2
gentoo-2-2848f30c271d1a6f3bbb4206fed014c8f5787420.zip
fix usermod usage; add comment for wrapper creation function; tidy
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games.eclass17
1 files changed, 10 insertions, 7 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index 46ebafeafc3e..2028255c95cf 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.73 2004/09/09 02:55:16 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.74 2004/09/09 07:36:00 mr_bones_ Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org
#
@@ -122,15 +122,15 @@ EOF
games_pkg_setup() {
enewgroup "${GAMES_GROUP}" 35
- [ "${GAMES_USER}" != "root" ] && \
- enewuser "${GAMES_USER}" 35 /bin/false /usr/games "${GAMES_GROUP}"
- [ "${GAMES_USER_DED}" != "root" ] && \
- enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}"
+ [ "${GAMES_USER}" != "root" ] \
+ && enewuser "${GAMES_USER}" 35 /bin/false /usr/games "${GAMES_GROUP}"
+ [ "${GAMES_USER_DED}" != "root" ] \
+ && enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}"
# 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 "${GAMES_USER_DED}" -l /bin/bash
+ [ "$(getent passwd ${GAMES_USER_DED} | cut -f7 -d:)" == "/bin/false" ] \
+ && usermod -s /bin/bash "${GAMES_USER_DED}"
}
games_src_compile() {
@@ -183,6 +183,9 @@ games_umod_unpack() {
}
# make a wrapper script ...
+# $1 == wrapper name
+# $2 == binary to run
+# $3 == directory to chdir before running binary
games_make_wrapper() {
local wrapper="$1" ; shift
local bin="$1" ; shift