summaryrefslogtreecommitdiff
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
commit7c719a52d113be96f0a456e69cfe202ef9a63303 (patch)
treee179c37a1dfe4f98027e366cbdfab8c4a02662c6 /eclass/games.eclass
parentun-deprecate until portage 2.0.51 is stable and we have proper working cascad... (diff)
downloadhistorical-7c719a52d113be96f0a456e69cfe202ef9a63303.tar.gz
historical-7c719a52d113be96f0a456e69cfe202ef9a63303.tar.bz2
historical-7c719a52d113be96f0a456e69cfe202ef9a63303.zip
fix usermod usage; add comment for wrapper creation function; tidy
Diffstat (limited to 'eclass/games.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