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.2.ebuild
Date: Sun, 25 May 2008 20:22:02
Message-Id: E1K0Mj9-0000nL-HA@stork.gentoo.org
1 vapier 08/05/25 20:21:59
2
3 Modified: ChangeLog
4 Added: shadow-4.1.2.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_pre5.spank.spunk)
8
9 Revision Changes Path
10 1.203 sys-apps/shadow/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?rev=1.203&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?rev=1.203&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/ChangeLog?r1=1.202&r2=1.203
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v
19 retrieving revision 1.202
20 retrieving revision 1.203
21 diff -u -r1.202 -r1.203
22 --- ChangeLog 17 May 2008 14:20:52 -0000 1.202
23 +++ ChangeLog 25 May 2008 20:21:59 -0000 1.203
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.202 2008/05/17 14:20:52 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/shadow/ChangeLog,v 1.203 2008/05/25 20:21:59 vapier Exp $
29 +
30 +*shadow-4.1.2 (25 May 2008)
31 +
32 + 25 May 2008; Mike Frysinger <vapier@g.o> +shadow-4.1.2.ebuild:
33 + Version bump.
34
35 17 May 2008; nixnut <nixnut@g.o> shadow-4.1.0-r1.ebuild:
36 Added ~ppc wrt bug 210769
37
38
39
40 1.1 sys-apps/shadow/shadow-4.1.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/shadow-4.1.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/shadow/shadow-4.1.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: shadow-4.1.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.ebuild,v 1.1 2008/05/25 20:21:59 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 # Does not work with OpenPAM (yet?)
63 RDEPEND="audit? ( sys-process/audit )
64 cracklib? ( >=sys-libs/cracklib-2.7-r3 )
65 pam? ( >=sys-libs/pam-0.99 )
66 !sys-apps/pam-login
67 !app-admin/nologin
68 skey? ( sys-auth/skey )
69 selinux? ( >=sys-libs/libselinux-1.28 )
70 nls? ( virtual/libintl )"
71 DEPEND="${RDEPEND}
72 nls? ( sys-devel/gettext )"
73 RDEPEND="${RDEPEND}
74 pam? ( >=sys-auth/pambase-20080219.1 )"
75
76 src_unpack() {
77 unpack ${A}
78 cd "${S}"
79
80 # tweak the default login.defs
81 epatch "${FILESDIR}"/${PN}-4.0.17-login.defs.patch
82 sed -i "s:@LIBDIR@:$(get_libdir):" etc/login.defs || die
83
84 # Make user/group names more flexible #3485 / #22920
85 epatch "${FILESDIR}"/${PN}-4.0.13-dots-in-usernames.patch
86 epatch "${FILESDIR}"/${PN}-4.0.13-long-groupnames.patch
87
88 elibtoolize
89 epunt_cxx
90 }
91
92 src_compile() {
93 tc-is-cross-compiler && export ac_cv_func_setpgrp_void=yes
94 econf \
95 --disable-desrpc \
96 --with-libcrypt \
97 --enable-shared=no \
98 --enable-static=yes \
99 $(use_with audit) \
100 $(use_with cracklib libcrack) \
101 $(use_with pam libpam) \
102 $(use_with skey) \
103 $(use_with selinux) \
104 $(use_enable nls) \
105 || die "bad configure"
106 emake || die "compile problem"
107 }
108
109 src_install() {
110 emake DESTDIR="${D}" suidperms=4711 install || die "install problem"
111 dosym useradd /usr/sbin/adduser
112
113 # Remove libshadow and libmisc; see bug 37725 and the following
114 # comment from shadow's README.linux:
115 # Currently, libshadow.a is for internal use only, so if you see
116 # -lshadow in a Makefile of some other package, it is safe to
117 # remove it.
118 rm -f "${D}"/{,usr/}$(get_libdir)/lib{misc,shadow}.{a,la}
119
120 insinto /etc
121 # Using a securetty with devfs device names added
122 # (compat names kept for non-devfs compatibility)
123 insopts -m0600 ; doins "${FILESDIR}"/securetty
124 if ! use pam ; then
125 insopts -m0600
126 doins etc/login.access etc/limits
127 fi
128 # Output arch-specific cruft
129 case $(tc-arch) in
130 ppc*) echo "hvc0" >> "${D}"/etc/securetty
131 echo "hvsi0" >> "${D}"/etc/securetty
132 echo "ttyPSC0" >> "${D}"/etc/securetty;;
133 hppa) echo "ttyB0" >> "${D}"/etc/securetty;;
134 arm) echo "ttyFB0" >> "${D}"/etc/securetty;;
135 sh) echo "ttySC0" >> "${D}"/etc/securetty
136 echo "ttySC1" >> "${D}"/etc/securetty;;
137 esac
138
139 # needed for 'adduser -D'
140 insinto /etc/default
141 insopts -m0600
142 doins "${FILESDIR}"/default/useradd
143
144 # move passwd to / to help recover broke systems #64441
145 mv "${D}"/usr/bin/passwd "${D}"/bin/
146 dosym /bin/passwd /usr/bin/passwd
147
148 cd "${S}"
149 insinto /etc
150 insopts -m0644
151 newins etc/login.defs login.defs
152
153 if use pam ; then
154 dopamd "${FILESDIR}/pam.d-include/"{su,passwd,shadow}
155
156 newpamd "${FILESDIR}/login.pamd.2" login
157
158 for x in chage chsh chfn chpasswd newusers \
159 user{add,del,mod} group{add,del,mod} ; do
160 newpamd "${FILESDIR}"/pam.d-include/shadow ${x}
161 done
162
163 # comment out login.defs options that pam hates
164 gawk -f "${FILESDIR}"/login_defs.awk \
165 lib/getdef.c etc/login.defs \
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 }
206
207
208
209 --
210 gentoo-commits@l.g.o mailing list