1 |
vapier 11/11/26 07:36:46 |
2 |
|
3 |
Modified: games.eclass |
4 |
Log: |
5 |
use egetshell helper from user eclass |
6 |
|
7 |
Revision Changes Path |
8 |
1.144 eclass/games.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.144&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?rev=1.144&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/games.eclass?r1=1.143&r2=1.144 |
13 |
|
14 |
Index: games.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v |
17 |
retrieving revision 1.143 |
18 |
retrieving revision 1.144 |
19 |
diff -u -r1.143 -r1.144 |
20 |
--- games.eclass 22 Mar 2011 17:20:50 -0000 1.143 |
21 |
+++ games.eclass 26 Nov 2011 07:36:46 -0000 1.144 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.143 2011/03/22 17:20:50 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.144 2011/11/26 07:36:46 vapier Exp $ |
27 |
|
28 |
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@g.o |
29 |
# |
30 |
@@ -8,7 +8,7 @@ |
31 |
# you better have a *good* reason why you're *not* using games.eclass |
32 |
# in a games-* ebuild |
33 |
|
34 |
-inherit base multilib toolchain-funcs eutils |
35 |
+inherit base multilib toolchain-funcs eutils user |
36 |
|
37 |
case ${EAPI:-0} in |
38 |
0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;; |
39 |
@@ -134,7 +134,7 @@ |
40 |
# Dear portage team, we are so sorry. Lots of love, games team. |
41 |
# See Bug #61680 |
42 |
[[ ${USERLAND} != "GNU" ]] && return 0 |
43 |
- [[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \ |
44 |
+ [[ $(egetshell "${GAMES_USER_DED}") == "/bin/false" ]] \ |
45 |
&& usermod -s /bin/bash "${GAMES_USER_DED}" |
46 |
} |