Gentoo Archives: gentoo-commits

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