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.1.4.ebuild pam-1.1.3-r1.ebuild
Date: Fri, 02 Sep 2011 17:22:12
Message-Id: 20110902172034.7C9152004C@flycatcher.gentoo.org
1 flameeyes 11/09/02 17:20:34
2
3 Modified: ChangeLog
4 Added: pam-1.1.4.ebuild
5 Removed: pam-1.1.3-r1.ebuild
6 Log:
7 Version bump; remove 1.1.3-r1 since the patch is integrated with .4 and that is going to be the stable candidate. Closes bug #381485.
8
9 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.296 sys-libs/pam/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.296&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?rev=1.296&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/ChangeLog?r1=1.295&r2=1.296
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v
21 retrieving revision 1.295
22 retrieving revision 1.296
23 diff -u -r1.295 -r1.296
24 --- ChangeLog 14 Jun 2011 18:32:30 -0000 1.295
25 +++ ChangeLog 2 Sep 2011 17:20:34 -0000 1.296
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-libs/pam
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.295 2011/06/14 18:32:30 flameeyes Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.296 2011/09/02 17:20:34 flameeyes Exp $
31 +
32 +*pam-1.1.4 (02 Sep 2011)
33 +
34 + 02 Sep 2011; Diego E. Pettenò <flameeyes@g.o> -pam-1.1.3-r1.ebuild,
35 + -files/Linux-PAM-1.1.3-nis.patch, +pam-1.1.4.ebuild:
36 + Version bump; remove 1.1.3-r1 since the patch is integrated with .4 and that
37 + is going to be the stable candidate. Closes bug #381485.
38
39 14 Jun 2011; Diego E. Pettenò <flameeyes@g.o> pam-1.1.3-r1.ebuild:
40 Drop REQUIRED_USE as selinux support is still built fine without nis.
41
42
43
44 1.1 sys-libs/pam/pam-1.1.4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/pam/pam-1.1.4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: pam-1.1.4.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-1.1.4.ebuild,v 1.1 2011/09/02 17:20:34 flameeyes Exp $
54
55 EAPI="4"
56
57 inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use
58
59 MY_PN="Linux-PAM"
60 MY_P="${MY_PN}-${PV}"
61
62 HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/"
63 DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
64
65 SRC_URI="mirror://kernel/linux/libs/pam/library/${MY_P}.tar.bz2
66 mirror://kernel/linux/libs/pam/documentation/${MY_P}-docs.tar.bz2"
67
68 LICENSE="|| ( BSD GPL-2 )"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
71 IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
72
73 RDEPEND="nls? ( virtual/libintl )
74 cracklib? ( >=sys-libs/cracklib-2.8.3 )
75 audit? ( sys-process/audit )
76 selinux? ( >=sys-libs/libselinux-1.28 )
77 berkdb? ( sys-libs/db )
78 elibc_glibc? (
79 >=sys-libs/glibc-2.7
80 nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
81 )"
82 DEPEND="${RDEPEND}
83 >=sys-devel/libtool-2
84 sys-devel/flex
85 nls? ( sys-devel/gettext )
86 dev-util/pkgconfig"
87 PDEPEND="sys-auth/pambase
88 vim-syntax? ( app-vim/pam-syntax )"
89 RDEPEND="${RDEPEND}
90 !sys-auth/openpam
91 !sys-auth/pam_userdb"
92
93 S="${WORKDIR}/${MY_P}"
94
95 check_old_modules() {
96 local retval="0"
97
98 if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
99 eerror ""
100 eerror "Your current setup is using the pam_stack module."
101 eerror "This module is deprecated and no longer supported, and since version"
102 eerror "0.99 is no longer installed, nor provided by any other package."
103 eerror "The package will be built (to allow binary package builds), but will"
104 eerror "not be installed."
105 eerror "Please replace pam_stack usage with proper include directive usage,"
106 eerror "following the PAM Upgrade guide at the following URL"
107 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
108 eerror ""
109
110 retval=1
111 fi
112
113 if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
114 eerror ""
115 eerror "Your current setup is using one or more of the following modules,"
116 eerror "that are not built or supported anymore:"
117 eerror "pam_pwdb, pam_console"
118 eerror "If you are in real need for these modules, please contact the maintainers"
119 eerror "of PAM through http://bugs.gentoo.org/ providing information about its"
120 eerror "use cases."
121 eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
122 eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
123 eerror ""
124
125 retval=1
126 fi
127
128 return $retval
129 }
130
131 pkg_setup() {
132 check_old_modules
133 }
134
135 src_prepare() {
136 elibtoolize
137 }
138
139 src_configure() {
140 local myconf
141
142 if use hppa || use elibc_FreeBSD; then
143 myconf="${myconf} --disable-pie"
144 fi
145
146 # Disable automatic detection of libxcrypt; we _don't_ want the
147 # user to link libxcrypt in by default, since we won't track the
148 # dependency and allow to break PAM this way.
149 export ac_cv_header_xcrypt_h=no
150
151 econf \
152 --disable-dependency-tracking \
153 --enable-fast-install \
154 --libdir="${EPREFIX}"/usr/$(get_libdir) \
155 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
156 --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
157 --enable-securedir="${EPREFIX}"/$(get_libdir)/security \
158 --enable-isadir="${EPREFIX}"/$(get_libdir)/security \
159 $(use_enable nls) \
160 $(use_enable selinux) \
161 $(use_enable cracklib) \
162 $(use_enable audit) \
163 $(use_enable debug) \
164 $(use_enable berkdb db) \
165 $(use_enable nis) \
166 --with-db-uniquename=-$(db_findver sys-libs/db) \
167 --disable-prelude \
168 ${myconf}
169 }
170
171 src_compile() {
172 emake sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "emake failed"
173 }
174
175 src_test() {
176 # explicitly allow parallel-build during testing
177 emake sepermitlockdir="${EPREFIX}/var/run/sepermit" check || die "emake check failed"
178 }
179
180 src_install() {
181 local lib
182
183 emake DESTDIR="${D}" install \
184 sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "make install failed"
185
186 # Need to be suid
187 fperms u+s /sbin/unix_chkpwd
188
189 gen_usr_ldscript -a pam pamc pam_misc
190
191 # create extra symlinks just in case something depends on them...
192 for lib in pam pamc pam_misc; do
193 if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then
194 dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname)
195 fi
196 done
197
198 dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS
199
200 docinto modules
201 for dir in modules/pam_*; do
202 newdoc "${dir}"/README README."$(basename "${dir}")"
203 done
204
205 # Get rid of the .la files. We certainly don't need them for PAM
206 # modules, and libpam is installed as a shared object only, so we
207 # don't need them for static linking either.
208 find "${D}" -name '*.la' -delete
209 }
210
211 pkg_preinst() {
212 check_old_modules || die "deprecated PAM modules still used"
213 }
214
215 pkg_postinst() {
216 ewarn "Some software with pre-loaded PAM libraries might experience"
217 ewarn "warnings or failures related to missing symbols and/or versions"
218 ewarn "after any update. While unfortunate this is a limit of the"
219 ewarn "implementation of PAM and the software, and it requires you to"
220 ewarn "restart the software manually after the update."
221 ewarn ""
222 ewarn "You can get a list of such software running a command like"
223 ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
224 ewarn ""
225 ewarn "Alternatively, simply reboot your system."
226 if [ -x "${ROOT}"/var/log/tallylog ] ; then
227 elog ""
228 elog "Because of a bug present up to version 1.1.1-r2, you have"
229 elog "an executable /var/log/tallylog file. You can safely"
230 elog "correct it by running the command"
231 elog " chmod -x /var/log/tallylog"
232 elog ""
233 fi
234 }