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