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