1 |
vapier 08/11/23 15:04:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: shadow-4.1.2.2.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc14/cvs/Linux 2.6.27.4 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.209 sys-apps/shadow/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?rev=1.209&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?rev=1.209&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?r1=1.208&r2=1.209 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v |
19 |
retrieving revision 1.208 |
20 |
retrieving revision 1.209 |
21 |
diff -u -r1.208 -r1.209 |
22 |
--- ChangeLog 17 Nov 2008 22:49:54 -0000 1.208 |
23 |
+++ ChangeLog 23 Nov 2008 15:04:36 -0000 1.209 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sys-apps/shadow |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.208 2008/11/17 22:49:54 flameeyes Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.209 2008/11/23 15:04:36 vapier Exp $ |
29 |
+ |
30 |
+*shadow-4.1.2.2 (23 Nov 2008) |
31 |
+ |
32 |
+ 23 Nov 2008; Mike Frysinger <vapier@g.o> +shadow-4.1.2.2.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
17 Nov 2008; Diego E. Pettenò <flameeyes@g.o> |
36 |
files/shadow-4.1.1-audit.patch: |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-apps/shadow/shadow-4.1.2.2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/shadow-4.1.2.2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/shadow-4.1.2.2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: shadow-4.1.2.2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/shadow-4.1.2.2.ebuild,v 1.1 2008/11/23 15:04:36 vapier Exp $ |
50 |
|
51 |
inherit eutils libtool toolchain-funcs autotools pam multilib |
52 |
|
53 |
DESCRIPTION="Utilities to deal with user accounts" |
54 |
HOMEPAGE="http://shadow.pld.org.pl/ http://packages.qa.debian.org/s/shadow.html" |
55 |
SRC_URI="ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-${PV}.tar.bz2" |
56 |
|
57 |
LICENSE="BSD GPL-2" |
58 |
SLOT="0" |
59 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
60 |
IUSE="audit cracklib nls pam selinux skey" |
61 |
|
62 |
RDEPEND="audit? ( sys-process/audit ) |
63 |
cracklib? ( >=sys-libs/cracklib-2.7-r3 ) |
64 |
pam? ( virtual/pam ) |
65 |
!sys-apps/pam-login |
66 |
!app-admin/nologin |
67 |
skey? ( sys-auth/skey ) |
68 |
selinux? ( >=sys-libs/libselinux-1.28 ) |
69 |
nls? ( virtual/libintl )" |
70 |
DEPEND="${RDEPEND} |
71 |
nls? ( sys-devel/gettext )" |
72 |
RDEPEND="${RDEPEND} |
73 |
pam? ( >=sys-auth/pambase-20080219.1 )" |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
|
79 |
# tweak the default login.defs |
80 |
epatch "${FILESDIR}"/${PN}-4.0.17-login.defs.patch |
81 |
sed -i "s:@LIBDIR@:$(get_libdir):" etc/login.defs || die |
82 |
|
83 |
# Make user/group names more flexible #3485 / #22920 |
84 |
epatch "${FILESDIR}"/${PN}-4.0.13-dots-in-usernames.patch |
85 |
epatch "${FILESDIR}"/${PN}-4.0.13-long-groupnames.patch |
86 |
|
87 |
epatch "${FILESDIR}"/${PN}-4.1.2.1+openpam.patch #232586 |
88 |
|
89 |
eautoreconf |
90 |
|
91 |
elibtoolize |
92 |
epunt_cxx |
93 |
} |
94 |
|
95 |
src_compile() { |
96 |
tc-is-cross-compiler && export ac_cv_func_setpgrp_void=yes |
97 |
econf \ |
98 |
--enable-shared=no \ |
99 |
--enable-static=yes \ |
100 |
$(use_with audit) \ |
101 |
$(use_with cracklib libcrack) \ |
102 |
$(use_with pam libpam) \ |
103 |
$(use_with skey) \ |
104 |
$(use_with selinux) \ |
105 |
$(use_enable nls) \ |
106 |
|| die "bad configure" |
107 |
emake || die "compile problem" |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
emake DESTDIR="${D}" suidperms=4711 install || die "install problem" |
112 |
dosym useradd /usr/sbin/adduser |
113 |
|
114 |
# Remove libshadow and libmisc; see bug 37725 and the following |
115 |
# comment from shadow's README.linux: |
116 |
# Currently, libshadow.a is for internal use only, so if you see |
117 |
# -lshadow in a Makefile of some other package, it is safe to |
118 |
# remove it. |
119 |
rm -f "${D}"/{,usr/}$(get_libdir)/lib{misc,shadow}.{a,la} |
120 |
|
121 |
insinto /etc |
122 |
# Using a securetty with devfs device names added |
123 |
# (compat names kept for non-devfs compatibility) |
124 |
insopts -m0600 ; doins "${FILESDIR}"/securetty |
125 |
if ! use pam ; then |
126 |
insopts -m0600 |
127 |
doins etc/login.access etc/limits |
128 |
fi |
129 |
# Output arch-specific cruft |
130 |
case $(tc-arch) in |
131 |
ppc*) echo "hvc0" >> "${D}"/etc/securetty |
132 |
echo "hvsi0" >> "${D}"/etc/securetty |
133 |
echo "ttyPSC0" >> "${D}"/etc/securetty;; |
134 |
hppa) echo "ttyB0" >> "${D}"/etc/securetty;; |
135 |
arm) echo "ttyFB0" >> "${D}"/etc/securetty;; |
136 |
sh) echo "ttySC0" >> "${D}"/etc/securetty |
137 |
echo "ttySC1" >> "${D}"/etc/securetty;; |
138 |
esac |
139 |
|
140 |
# needed for 'adduser -D' |
141 |
insinto /etc/default |
142 |
insopts -m0600 |
143 |
doins "${FILESDIR}"/default/useradd |
144 |
|
145 |
# move passwd to / to help recover broke systems #64441 |
146 |
mv "${D}"/usr/bin/passwd "${D}"/bin/ |
147 |
dosym /bin/passwd /usr/bin/passwd |
148 |
|
149 |
cd "${S}" |
150 |
insinto /etc |
151 |
insopts -m0644 |
152 |
newins etc/login.defs login.defs |
153 |
|
154 |
if use pam ; then |
155 |
dopamd "${FILESDIR}/pam.d-include/"{su,passwd,shadow} |
156 |
|
157 |
newpamd "${FILESDIR}/login.pamd.2" login |
158 |
|
159 |
for x in chage chsh chfn chpasswd newusers \ |
160 |
user{add,del,mod} group{add,del,mod} ; do |
161 |
newpamd "${FILESDIR}"/pam.d-include/shadow ${x} |
162 |
done |
163 |
|
164 |
# comment out login.defs options that pam hates |
165 |
sed -i -f "${FILESDIR}"/login_defs_pam.sed \ |
166 |
"${D}"/etc/login.defs |
167 |
|
168 |
# remove manpages that pam will install for us |
169 |
# and/or don't apply when using pam |
170 |
find "${D}"/usr/share/man \ |
171 |
'(' -name 'limits.5*' -o -name 'suauth.5*' ')' \ |
172 |
-exec rm {} \; |
173 |
fi |
174 |
|
175 |
# Remove manpages that are handled by other packages |
176 |
find "${D}"/usr/share/man \ |
177 |
'(' -name id.1 -o -name passwd.5 -o -name getspnam.3 ')' \ |
178 |
-exec rm {} \; |
179 |
|
180 |
cd "${S}" |
181 |
dodoc ChangeLog NEWS TODO |
182 |
newdoc README README.download |
183 |
cd doc |
184 |
dodoc HOWTO README* WISHLIST *.txt |
185 |
} |
186 |
|
187 |
pkg_preinst() { |
188 |
rm -f "${ROOT}"/etc/pam.d/system-auth.new \ |
189 |
"${ROOT}/etc/login.defs.new" |
190 |
|
191 |
use pam && pam_epam_expand "${D}"/etc/pam.d/login |
192 |
} |
193 |
|
194 |
pkg_postinst() { |
195 |
# Enable shadow groups (we need ROOT=/ here, as grpconv only |
196 |
# operate on / ...). |
197 |
if [[ ${ROOT} == / && ! -f /etc/gshadow ]] ; then |
198 |
if grpck -r &>/dev/null; then |
199 |
grpconv |
200 |
else |
201 |
ewarn "Running 'grpck' returned errors. Please run it by hand, and then" |
202 |
ewarn "run 'grpconv' afterwards!" |
203 |
fi |
204 |
fi |
205 |
} |