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-libs/pam: ChangeLog pam-1.0.4.ebuild pam-1.0.2.ebuild pam-1.0.3.ebuild pam-0.99.9.0.ebuild
Date: Wed, 04 Mar 2009 01:24:23
Message-Id: E1Lebnv-00082t-Us@stork.gentoo.org
1 flameeyes 09/03/03 21:05:31
2
3 Modified: ChangeLog
4 Added: pam-1.0.4.ebuild
5 Removed: pam-1.0.2.ebuild pam-1.0.3.ebuild
6 pam-0.99.9.0.ebuild
7 Log:
8 Version bump, cleanup old versions. pam-1.0.4 is stable candidate.
9 (Portage version: 2.2_rc23/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.227 sys-libs/pam/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.227&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.227&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.226&r2=1.227
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v
21 retrieving revision 1.226
22 retrieving revision 1.227
23 diff -u -r1.226 -r1.227
24 --- ChangeLog 10 Dec 2008 10:37:32 -0000 1.226
25 +++ ChangeLog 3 Mar 2009 21:05:31 -0000 1.227
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-libs/pam
28 -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.226 2008/12/10 10:37:32 flameeyes Exp $
30 +# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.227 2009/03/03 21:05:31 flameeyes Exp $
32 +
33 +*pam-1.0.4 (03 Mar 2009)
34 +
35 + 03 Mar 2009; Diego E. Pettenò <flameeyes@g.o>
36 + -pam-0.99.9.0.ebuild, -pam-1.0.2.ebuild, -pam-1.0.3.ebuild,
37 + +pam-1.0.4.ebuild:
38 + Version bump, cleanup old versions. pam-1.0.4 is stable candidate.
39
40 *pam-1.0.3 (10 Dec 2008)
41
42
43
44
45 1.1 sys-libs/pam/pam-1.0.4.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.0.4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/pam/pam-1.0.4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: pam-1.0.4.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.0.4.ebuild,v 1.1 2009/03/03 21:05:31 flameeyes Exp $
55
56 WANT_AUTOCONF="latest"
57 WANT_AUTOMAKE="latest"
58
59 inherit libtool multilib eutils autotools pam toolchain-funcs flag-o-matic
60
61 MY_PN="Linux-PAM"
62 MY_P="${MY_PN}-${PV}"
63
64 HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/"
65 DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
66
67 SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2"
68
69 LICENSE="PAM"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
72 IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc"
73
74 RDEPEND="nls? ( virtual/libintl )
75 cracklib? ( >=sys-libs/cracklib-2.8.3 )
76 audit? ( sys-process/audit )
77 selinux? ( >=sys-libs/libselinux-1.28 )"
78 DEPEND="${RDEPEND}
79 sys-devel/flex
80 test? ( elibc_glibc? ( >=sys-libs/glibc-2.4 ) )
81 nls? ( sys-devel/gettext )"
82 PDEPEND="sys-auth/pambase
83 vim-syntax? ( app-vim/pam-syntax )"
84
85 S="${WORKDIR}/${MY_P}"
86
87 PROVIDE="virtual/pam"
88
89 check_old_modules() {
90 local retval="0"
91
92 if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
93 eerror ""
94 eerror "Your current setup is using the pam_stack module."
95 eerror "This module is deprecated and no longer supported, and since version"
96 eerror "0.99 is no longer installed, nor provided by any other package."
97 eerror "The package will be built (to allow binary package builds), but will"
98 eerror "not be installed."
99 eerror "Please replace pam_stack usage with proper include directive usage,"
100 eerror "following the PAM Upgrade guide at the following URL"
101 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
102 eerror ""
103 ebeep 15
104
105 retval=1
106 fi
107
108 if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|timestamp|console)'; then
109 eerror ""
110 eerror "Your current setup is using one or more of the following modules,"
111 eerror "that are not built or supported anymore:"
112 eerror "pam_pwdb, pam_timestamp, pam_console"
113 eerror "If you are in real need for these modules, please contact the maintainers"
114 eerror "of PAM through http://bugs.gentoo.org/ providing information about its"
115 eerror "use cases."
116 eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
117 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
118 eerror ""
119 ebeep 10
120
121 retval=1
122 fi
123
124 # Produce the warnings only during upgrade, for the following two
125 has_version '<sys-libs/pam-0.99' || return $retval
126
127 # This works only for those modules that are moved to sys-auth/$module, or the
128 # message will be wrong.
129 for module in pam_chroot pam_userdb pam_radius; do
130 if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q ${module}.so; then
131 ewarn ""
132 ewarn "Your current setup is using the ${module} module."
133 ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide this module"
134 ewarn "anymore; if you want to continue using this module, you should install"
135 ewarn "sys-auth/${module}."
136 ewarn ""
137 ebeep 5
138 fi
139 done
140
141 return $retval
142 }
143
144 pkg_setup() {
145 check_old_modules
146 }
147
148 src_unpack() {
149 unpack ${A}
150 cd "${S}"
151
152 mkdir -p doc/txts
153 for readme in modules/pam_*/README; do
154 cp -f "${readme}" doc/txts/README.$(dirname "${readme}" | \
155 sed -e 's|^modules/||')
156 done
157
158 epatch "${FILESDIR}/${MY_PN}-0.99.7.0-disable-regenerate-man.patch"
159 epatch "${FILESDIR}/${MY_PN}-0.99.8.1-xtests.patch"
160
161 # Remove NIS dependencies, see bug #235431
162 epatch "${FILESDIR}/${MY_PN}-1.0.2-noyp.patch"
163
164 AT_M4DIR="m4" eautoreconf
165
166 elibtoolize
167 }
168
169 src_compile() {
170 local myconf
171
172 if use hppa || use elibc_FreeBSD; then
173 myconf="${myconf} --disable-pie"
174 fi
175
176 # KEEP COMMENTED OUT! It seems like it fails to build with USE=debug!
177 # Do _not_ move this to $(use_enable) without checking if the
178 # configure.in has been fixed. As of 2009/03/03 it's still broken
179 # on upstream's CVS, and --disable-debug means --enable-debug too.
180 # if use debug; then
181 # myconf="${myconf} --enable-debug"
182 # fi
183
184 econf \
185 --libdir=/usr/$(get_libdir) \
186 --docdir=/usr/share/doc/${PF} \
187 --htmldir=/usr/share/doc/${PF}/html \
188 --enable-securedir=/$(get_libdir)/security \
189 --enable-isadir=/$(get_libdir)/security \
190 $(use_enable nls) \
191 $(use_enable selinux) \
192 $(use_enable cracklib) \
193 $(use_enable audit) \
194 --disable-db \
195 --disable-dependency-tracking \
196 --disable-prelude \
197 --disable-regenerate-man \
198 ${myconf} || die "econf failed"
199 emake sepermitlockdir="/var/run/sepermit" || die "emake failed"
200 }
201
202 src_install() {
203 emake DESTDIR="${D}" install \
204 sepermitlockdir="/var/run/sepermit" || die "make install failed"
205
206 # Need to be suid
207 fperms u+s /sbin/unix_chkpwd
208
209 dodir /$(get_libdir)
210 mv "${D}/usr/$(get_libdir)/libpam.so"* "${D}/$(get_libdir)/"
211 mv "${D}/usr/$(get_libdir)/libpamc.so"* "${D}/$(get_libdir)/"
212 mv "${D}/usr/$(get_libdir)/libpam_misc.so"* "${D}/$(get_libdir)/"
213 gen_usr_ldscript libpam.so libpamc.so libpam_misc.so
214
215 dodoc CHANGELOG ChangeLog README AUTHORS Copyright
216 docinto modules ; dodoc doc/txts/README.*
217
218 # Remove the wrongly installed manpages
219 rm "${D}"/usr/share/man/man8/pam_userdb.8*
220 use cracklib || rm "${D}"/usr/share/man/man8/pam_cracklib.8*
221
222 # Get rid of the .la files. We certainly don't need them for PAM
223 # modules, and libpam is installed as a shared object only, so we
224 # don't ned them for static linking either.
225 find "${D}" -name '*.la' -delete
226 }
227
228 pkg_preinst() {
229 check_old_modules || die "deprecated PAM modules still used"
230
231 pam_epam_expand "${D}"/etc/pam.d/*
232 }