Gentoo Archives: gentoo-commits

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