1 |
vapier 11/10/31 17:39:53 |
2 |
|
3 |
Modified: user.eclass portability.eclass |
4 |
Log: |
5 |
drop unused funcs |
6 |
|
7 |
Revision Changes Path |
8 |
1.4 eclass/user.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?rev=1.4&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?rev=1.4&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/user.eclass?r1=1.3&r2=1.4 |
13 |
|
14 |
Index: user.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/user.eclass,v |
17 |
retrieving revision 1.3 |
18 |
retrieving revision 1.4 |
19 |
diff -u -r1.3 -r1.4 |
20 |
--- user.eclass 27 Oct 2011 07:49:53 -0000 1.3 |
21 |
+++ user.eclass 31 Oct 2011 17:39:52 -0000 1.4 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2011 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.3 2011/10/27 07:49:53 vapier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.4 2011/10/31 17:39:52 vapier Exp $ |
27 |
|
28 |
# @ECLASS: user.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -389,55 +389,3 @@ |
31 |
esac |
32 |
export SANDBOX_ON="${oldsandbox}" |
33 |
} |
34 |
- |
35 |
-# Gets the home directory for the specified user |
36 |
-# it's a wrap around egetent as the position of the home directory in the line |
37 |
-# varies depending on the os used. |
38 |
-# |
39 |
-# To use that, inherit eutils, not portability! |
40 |
-egethome() { |
41 |
- local pos |
42 |
- |
43 |
- case ${CHOST} in |
44 |
- *-darwin*|*-freebsd*|*-dragonfly*) |
45 |
- pos=9 |
46 |
- ;; |
47 |
- *) # Linux, NetBSD, OpenBSD, etc... |
48 |
- pos=6 |
49 |
- ;; |
50 |
- esac |
51 |
- |
52 |
- egetent passwd $1 | cut -d: -f${pos} |
53 |
-} |
54 |
- |
55 |
-# Gets the shell for the specified user |
56 |
-# it's a wrap around egetent as the position of the home directory in the line |
57 |
-# varies depending on the os used. |
58 |
-# |
59 |
-# To use that, inherit eutils, not portability! |
60 |
-egetshell() { |
61 |
- local pos |
62 |
- |
63 |
- case ${CHOST} in |
64 |
- *-darwin*|*-freebsd*|*-dragonfly*) |
65 |
- pos=10 |
66 |
- ;; |
67 |
- *) # Linux, NetBSD, OpenBSD, etc... |
68 |
- pos=7 |
69 |
- ;; |
70 |
- esac |
71 |
- |
72 |
- egetent passwd "$1" | cut -d: -f${pos} |
73 |
-} |
74 |
- |
75 |
-# Returns true if specified user has a shell that precludes logins |
76 |
-# on whichever operating system. |
77 |
-is-login-disabled() { |
78 |
- |
79 |
- case $(egetshell "$1") in |
80 |
- /bin/false|/usr/bin/false|/sbin/nologin|/usr/sbin/nologin) |
81 |
- return 0 ;; |
82 |
- *) |
83 |
- return 1 ;; |
84 |
- esac |
85 |
-} |
86 |
|
87 |
|
88 |
|
89 |
1.19 eclass/portability.eclass |
90 |
|
91 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/portability.eclass?rev=1.19&view=markup |
92 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/portability.eclass?rev=1.19&content-type=text/plain |
93 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/portability.eclass?r1=1.18&r2=1.19 |
94 |
|
95 |
Index: portability.eclass |
96 |
=================================================================== |
97 |
RCS file: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v |
98 |
retrieving revision 1.18 |
99 |
retrieving revision 1.19 |
100 |
diff -u -r1.18 -r1.19 |
101 |
--- portability.eclass 27 Oct 2011 07:16:08 -0000 1.18 |
102 |
+++ portability.eclass 31 Oct 2011 17:39:52 -0000 1.19 |
103 |
@@ -1,6 +1,6 @@ |
104 |
# Copyright 1999-2005 Gentoo Foundation |
105 |
# Distributed under the terms of the GNU General Public License v2 |
106 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.18 2011/10/27 07:16:08 vapier Exp $ |
107 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.19 2011/10/31 17:39:52 vapier Exp $ |
108 |
# |
109 |
# Author: Diego Pettenò <flameeyes@g.o> |
110 |
# |
111 |
@@ -8,8 +8,6 @@ |
112 |
# |
113 |
# NB: If you add anything, please comment it! |
114 |
|
115 |
-inherit user |
116 |
- |
117 |
# treecopy orig1 orig2 orig3 .... dest |
118 |
# |
119 |
# mimic cp --parents copy, but working on BSD userland as well |
120 |
@@ -129,3 +127,8 @@ |
121 |
echo "${point// /\040} ${node// /\040} ${fs%% *} ${opts// /\040}" |
122 |
done |
123 |
} |
124 |
+ |
125 |
+_dead_portability_user_funcs() { die "if you really need this, please file a bug for base-system@g.o"; } |
126 |
+egethome() { _dead_portability_user_funcs; } |
127 |
+egetshell() { _dead_portability_user_funcs; } |
128 |
+is-login-disabled() { _dead_portability_user_funcs; } |