1 |
commit: 229987ac804f7f86db7075faa2bc217088ee5899 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 15 05:39:14 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 15 05:39:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=229987ac |
7 |
|
8 |
sys-libs/pam: drop older version |
9 |
|
10 |
sys-libs/pam/files/pam-1.1.8-doc-install.patch | 142 ----------------- |
11 |
sys-libs/pam/files/pam-1.1.8-fix-compat.patch | 21 --- |
12 |
sys-libs/pam/files/pam-1.1.8-innetgr.patch | 54 ------- |
13 |
sys-libs/pam/pam-1.1.8-r99.ebuild | 205 ------------------------- |
14 |
4 files changed, 422 deletions(-) |
15 |
|
16 |
diff --git a/sys-libs/pam/files/pam-1.1.8-doc-install.patch b/sys-libs/pam/files/pam-1.1.8-doc-install.patch |
17 |
deleted file mode 100644 |
18 |
index bdd5b9d..0000000 |
19 |
--- a/sys-libs/pam/files/pam-1.1.8-doc-install.patch |
20 |
+++ /dev/null |
21 |
@@ -1,142 +0,0 @@ |
22 |
-https://bugs.gentoo.org/473650 |
23 |
-https://fedorahosted.org/linux-pam/ticket/31 |
24 |
- |
25 |
-fix doc installs when doing out of tree builds |
26 |
- |
27 |
---- a/doc/adg/Makefile.in |
28 |
-+++ b/doc/adg/Makefile.in |
29 |
-@@ -463,17 +463,17 @@ install-data-local: |
30 |
- $(mkinstalldirs) $(DESTDIR)$(docdir) |
31 |
- $(mkinstalldirs) $(DESTDIR)$(pdfdir) |
32 |
- $(mkinstalldirs) $(DESTDIR)$(htmldir) |
33 |
-- test -f html/Linux-PAM_ADG.html || exit 0; \ |
34 |
-+ test -f html/Linux-PAM_ADG.html -o -f $(srcdir)/html/Linux-PAM_ADG.html || exit 0; \ |
35 |
- $(install_sh_DATA) html/Linux-PAM_ADG.html html/adg-*.html \ |
36 |
- $(DESTDIR)$(htmldir)/ || \ |
37 |
- $(install_sh_DATA) $(srcdir)/html/Linux-PAM_ADG.html \ |
38 |
-- $(srcdir)/html/sag-*.html \ |
39 |
-+ $(srcdir)/html/adg-*.html \ |
40 |
- $(DESTDIR)$(htmldir)/ |
41 |
-- test -f Linux-PAM_ADG.txt || exit 0; \ |
42 |
-+ test -f Linux-PAM_ADG.txt -o -f $(srcdir)/Linux-PAM_ADG.txt || exit 0; \ |
43 |
- $(install_sh_DATA) Linux-PAM_ADG.txt $(DESTDIR)$(docdir)/ || \ |
44 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.txt \ |
45 |
- $(DESTDIR)$(docdir)/ |
46 |
-- test -f Linux-PAM_ADG.pdf || exit 0; \ |
47 |
-+ test -f Linux-PAM_ADG.pdf -o -f $(srcdir)/Linux-PAM_ADG.pdf || exit 0; \ |
48 |
- $(install_sh_DATA) Linux-PAM_ADG.pdf $(DESTDIR)$(pdfdir)/ || \ |
49 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.pdf \ |
50 |
- $(DESTDIR)$(pdfdir)/ |
51 |
-@@ -486,18 +486,18 @@ uninstall-local: |
52 |
- |
53 |
- releasedocs: all |
54 |
- $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html |
55 |
-- test -f html/Linux-PAM_ADG.html || exit 0; \ |
56 |
-+ test -f html/Linux-PAM_ADG.html -o -f $(srcdir)/html/Linux-PAM_ADG.html || exit 0; \ |
57 |
- cp -ap html/Linux-PAM_ADG.html html/adg-*.html \ |
58 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/ || \ |
59 |
- cp -ap $(srcdir)/html/Linux-PAM_ADG.html \ |
60 |
- $(srcdir)/html/adg-*.html \ |
61 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/ |
62 |
-- test -f Linux-PAM_ADG.txt || exit 0; \ |
63 |
-+ test -f Linux-PAM_ADG.txt -o -f $(srcdir)/Linux-PAM_ADG.txt || exit 0; \ |
64 |
- cp -p Linux-PAM_ADG.txt \ |
65 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/ || \ |
66 |
- cp -p $(srcdir)/Linux-PAM_ADG.txt \ |
67 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/ |
68 |
-- test -f Linux-PAM_ADG.pdf || exit 0; \ |
69 |
-+ test -f Linux-PAM_ADG.pdf -o -f $(srcdir)/Linux-PAM_ADG.pdf || exit 0; \ |
70 |
- cp -p Linux-PAM_ADG.pdf \ |
71 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/ || \ |
72 |
- cp -p $(srcdir)/Linux-PAM_ADG.pdf \ |
73 |
---- a/doc/mwg/Makefile.in |
74 |
-+++ b/doc/mwg/Makefile.in |
75 |
-@@ -463,17 +463,17 @@ install-data-local: |
76 |
- $(mkinstalldirs) $(DESTDIR)$(docdir) |
77 |
- $(mkinstalldirs) $(DESTDIR)$(pdfdir) |
78 |
- $(mkinstalldirs) $(DESTDIR)$(htmldir) |
79 |
-- test -f html/Linux-PAM_MWG.html || exit 0; \ |
80 |
-+ test -f html/Linux-PAM_MWG.html -o -f $(srcdir)/html/Linux-PAM_MWG.html || exit 0; \ |
81 |
- $(install_sh_DATA) html/Linux-PAM_MWG.html html/mwg-*.html \ |
82 |
- $(DESTDIR)$(htmldir)/ || \ |
83 |
- $(install_sh_DATA) $(srcdir)/html/Linux-PAM_MWG.html \ |
84 |
-- $(srcdir)/html/sag-*.html \ |
85 |
-+ $(srcdir)/html/mwg-*.html \ |
86 |
- $(DESTDIR)$(htmldir)/ |
87 |
-- test -f Linux-PAM_MWG.txt || exit 0; \ |
88 |
-+ test -f Linux-PAM_MWG.txt -o -f $(srcdir)/Linux-PAM_MWG.txt || exit 0; \ |
89 |
- $(install_sh_DATA) Linux-PAM_MWG.txt $(DESTDIR)$(docdir)/ || \ |
90 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_MWG.txt \ |
91 |
- $(DESTDIR)$(docdir)/ |
92 |
-- test -f Linux-PAM_MWG.pdf || exit 0; \ |
93 |
-+ test -f Linux-PAM_MWG.pdf -o -f $(srcdir)/Linux-PAM_MWG.pdf || exit 0; \ |
94 |
- $(install_sh_DATA) Linux-PAM_MWG.pdf $(DESTDIR)$(pdfdir)/ || \ |
95 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_MWG.pdf \ |
96 |
- $(DESTDIR)$(pdfdir)/ |
97 |
-@@ -486,18 +486,18 @@ uninstall-local: |
98 |
- |
99 |
- releasedocs: all |
100 |
- $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html |
101 |
-- test -f html/Linux-PAM_MWG.html || exit 0; \ |
102 |
-+ test -f html/Linux-PAM_MWG.html -o -f $(srcdir)/html/Linux-PAM_MWG.html || exit 0; \ |
103 |
- cp -ap html/Linux-PAM_MWG.html html/mwg-*.html \ |
104 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html/ || \ |
105 |
- cp -ap $(srcdir)/html/Linux-PAM_MWG.html \ |
106 |
- $(srcdir)/html/mwg-*.html \ |
107 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html/ |
108 |
-- test -f Linux-PAM_MWG.txt || exit 0; \ |
109 |
-+ test -f Linux-PAM_MWG.txt -o -f $(srcdir)/Linux-PAM_MWG.txt || exit 0; \ |
110 |
- cp -p Linux-PAM_MWG.txt \ |
111 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/ || \ |
112 |
- cp -p $(srcdir)/Linux-PAM_MWG.txt \ |
113 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/ |
114 |
-- test -f Linux-PAM_MWG.pdf || exit 0; \ |
115 |
-+ test -f Linux-PAM_MWG.pdf -o -f $(srcdir)/Linux-PAM_MWG.pdf || exit 0; \ |
116 |
- cp -p Linux-PAM_MWG.pdf \ |
117 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/ || \ |
118 |
- cp -p $(srcdir)/Linux-PAM_MWG.pdf \ |
119 |
---- a/doc/sag/Makefile.in |
120 |
-+++ b/doc/sag/Makefile.in |
121 |
-@@ -463,17 +463,17 @@ install-data-local: |
122 |
- $(mkinstalldirs) $(DESTDIR)$(docdir) |
123 |
- $(mkinstalldirs) $(DESTDIR)$(pdfdir) |
124 |
- $(mkinstalldirs) $(DESTDIR)$(htmldir) |
125 |
-- test -f html/Linux-PAM_SAG.html || exit 0; \ |
126 |
-+ test -f html/Linux-PAM_SAG.html -o -f $(srcdir)/html/Linux-PAM_SAG.html || exit 0; \ |
127 |
- $(install_sh_DATA) html/Linux-PAM_SAG.html html/sag-*.html \ |
128 |
- $(DESTDIR)$(htmldir)/ || \ |
129 |
- $(install_sh_DATA) $(srcdir)/html/Linux-PAM_SAG.html \ |
130 |
- $(srcdir)/html/sag-*.html \ |
131 |
- $(DESTDIR)$(htmldir)/ |
132 |
-- test -f Linux-PAM_SAG.txt || exit 0; \ |
133 |
-+ test -f Linux-PAM_SAG.txt -o -f $(srcdir)/Linux-PAM_SAG.txt || exit 0; \ |
134 |
- $(install_sh_DATA) Linux-PAM_SAG.txt $(DESTDIR)$(docdir)/ || \ |
135 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_SAG.txt \ |
136 |
- $(DESTDIR)$(docdir)/ |
137 |
-- test -f Linux-PAM_SAG.pdf || exit 0; \ |
138 |
-+ test -f Linux-PAM_SAG.pdf -o -f $(srcdir)/Linux-PAM_SAG.pdf || exit 0; \ |
139 |
- $(install_sh_DATA) Linux-PAM_SAG.pdf $(DESTDIR)$(pdfdir)/ || \ |
140 |
- $(install_sh_DATA) $(srcdir)/Linux-PAM_SAG.pdf \ |
141 |
- $(DESTDIR)$(pdfdir)/ |
142 |
-@@ -486,18 +486,18 @@ uninstall-local: |
143 |
- |
144 |
- releasedocs: all |
145 |
- $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html |
146 |
-- test -f html/Linux-PAM_SAG.html || exit 0; \ |
147 |
-+ test -f html/Linux-PAM_SAG.html -o -f $(srcdir)/html/Linux-PAM_SAG.html || exit 0; \ |
148 |
- cp -ap html/Linux-PAM_SAG.html html/sag-*.html \ |
149 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html/ || \ |
150 |
- cp -ap $(srcdir)/html/Linux-PAM_SAG.html \ |
151 |
- $(srcdir)/html/sag-*.html \ |
152 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html/ |
153 |
-- test -f Linux-PAM_SAG.txt || exit 0; \ |
154 |
-+ test -f Linux-PAM_SAG.txt -o -f $(srcdir)/Linux-PAM_SAG.txt || exit 0; \ |
155 |
- cp -p Linux-PAM_SAG.txt \ |
156 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/ || \ |
157 |
- cp -p $(srcdir)/Linux-PAM_SAG.txt \ |
158 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/ |
159 |
-- test -f Linux-PAM_SAG.pdf || exit 0; \ |
160 |
-+ test -f Linux-PAM_SAG.pdf -o -f $(srcdir)/Linux-PAM_SAG.pdf || exit 0; \ |
161 |
- cp -p Linux-PAM_SAG.pdf \ |
162 |
- $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/ || \ |
163 |
- cp -p $(srcdir)/Linux-PAM_SAG.pdf \ |
164 |
|
165 |
diff --git a/sys-libs/pam/files/pam-1.1.8-fix-compat.patch b/sys-libs/pam/files/pam-1.1.8-fix-compat.patch |
166 |
deleted file mode 100644 |
167 |
index 332f609..0000000 |
168 |
--- a/sys-libs/pam/files/pam-1.1.8-fix-compat.patch |
169 |
+++ /dev/null |
170 |
@@ -1,21 +0,0 @@ |
171 |
---- a/modules/pam_lastlog/pam_lastlog.c |
172 |
-+++ b/modules/pam_lastlog/pam_lastlog.c |
173 |
-@@ -10,6 +10,7 @@ |
174 |
- |
175 |
- #include "config.h" |
176 |
- |
177 |
-+#include <paths.h> |
178 |
- #include <fcntl.h> |
179 |
- #include <time.h> |
180 |
- #include <errno.h> |
181 |
-@@ -48,6 +49,10 @@ |
182 |
- |
183 |
- #ifndef _PATH_BTMP |
184 |
- # define _PATH_BTMP "/var/log/btmp" |
185 |
-+#endif |
186 |
-+ |
187 |
-+#ifndef __GLIBC__ |
188 |
-+#define logwtmp(args...) |
189 |
- #endif |
190 |
- |
191 |
- /* XXX - time before ignoring lock. Is 1 sec enough? */ |
192 |
|
193 |
diff --git a/sys-libs/pam/files/pam-1.1.8-innetgr.patch b/sys-libs/pam/files/pam-1.1.8-innetgr.patch |
194 |
deleted file mode 100644 |
195 |
index a94fa3d..0000000 |
196 |
--- a/sys-libs/pam/files/pam-1.1.8-innetgr.patch |
197 |
+++ /dev/null |
198 |
@@ -1,54 +0,0 @@ |
199 |
---- Linux-PAM-1.1.3.orig/modules/pam_group/pam_group.c |
200 |
-+++ Linux-PAM-1.1.3/modules/pam_group/pam_group.c |
201 |
-@@ -658,10 +658,13 @@ |
202 |
- continue; |
203 |
- } |
204 |
- /* If buffer starts with @, we are using netgroups */ |
205 |
-+#ifdef HAVE_INNETGR |
206 |
- if (buffer[0] == '@') |
207 |
- good &= innetgr (&buffer[1], NULL, user, NULL); |
208 |
- /* otherwise, if the buffer starts with %, it's a UNIX group */ |
209 |
-- else if (buffer[0] == '%') |
210 |
-+ else |
211 |
-+#endif |
212 |
-+ if (buffer[0] == '%') |
213 |
- good &= pam_modutil_user_in_group_nam_nam(pamh, user, &buffer[1]); |
214 |
- else |
215 |
- good &= logic_field(pamh,user, buffer, count, is_same); |
216 |
---- Linux-PAM-1.1.3.orig/modules/pam_succeed_if/pam_succeed_if.c |
217 |
-+++ Linux-PAM-1.1.3/modules/pam_succeed_if/pam_succeed_if.c |
218 |
-@@ -233,16 +233,20 @@ |
219 |
- static int |
220 |
- evaluate_innetgr(const char *host, const char *user, const char *group) |
221 |
- { |
222 |
-+#ifdef HAVE_INNETGR |
223 |
- if (innetgr(group, host, user, NULL) == 1) |
224 |
- return PAM_SUCCESS; |
225 |
-+#endif |
226 |
- return PAM_AUTH_ERR; |
227 |
- } |
228 |
- /* Return PAM_SUCCESS if the (host,user) is NOT in the netgroup. */ |
229 |
- static int |
230 |
- evaluate_notinnetgr(const char *host, const char *user, const char *group) |
231 |
- { |
232 |
-+#ifdef HAVE_INNETGR |
233 |
- if (innetgr(group, host, user, NULL) == 0) |
234 |
- return PAM_SUCCESS; |
235 |
-+#endif |
236 |
- return PAM_AUTH_ERR; |
237 |
- } |
238 |
- |
239 |
---- Linux-PAM-1.1.3.orig/modules/pam_time/pam_time.c |
240 |
-+++ Linux-PAM-1.1.3/modules/pam_time/pam_time.c |
241 |
-@@ -554,9 +554,11 @@ |
242 |
- continue; |
243 |
- } |
244 |
- /* If buffer starts with @, we are using netgroups */ |
245 |
-+#ifdef HAVE_INNETGR |
246 |
- if (buffer[0] == '@') |
247 |
- good &= innetgr (&buffer[1], NULL, user, NULL); |
248 |
- else |
249 |
-+#endif |
250 |
- good &= logic_field(pamh, user, buffer, count, is_same); |
251 |
- D(("with user: %s", good ? "passes":"fails" )); |
252 |
- |
253 |
|
254 |
diff --git a/sys-libs/pam/pam-1.1.8-r99.ebuild b/sys-libs/pam/pam-1.1.8-r99.ebuild |
255 |
deleted file mode 100644 |
256 |
index 83deafe..0000000 |
257 |
--- a/sys-libs/pam/pam-1.1.8-r99.ebuild |
258 |
+++ /dev/null |
259 |
@@ -1,205 +0,0 @@ |
260 |
-# Copyright 1999-2016 Gentoo Foundation |
261 |
-# Distributed under the terms of the GNU General Public License v2 |
262 |
-# $Id$ |
263 |
- |
264 |
-EAPI=5 |
265 |
- |
266 |
-inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use |
267 |
- |
268 |
-MY_PN="Linux-PAM" |
269 |
-MY_P="${MY_PN}-${PV}" |
270 |
- |
271 |
-HOMEPAGE="https://fedorahosted.org/linux-pam/" |
272 |
-DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
273 |
- |
274 |
-SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2 |
275 |
- http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2" |
276 |
- |
277 |
-LICENSE="|| ( BSD GPL-2 )" |
278 |
-SLOT="0" |
279 |
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86" |
280 |
-IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_musl elibc_glibc debug berkdb nis" |
281 |
- |
282 |
-RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
283 |
- cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] ) |
284 |
- audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] ) |
285 |
- selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
286 |
- berkdb? ( >=sys-libs/db-4.8.30-r1[${MULTILIB_USEDEP}] ) |
287 |
- elibc_glibc? ( |
288 |
- >=sys-libs/glibc-2.7 |
289 |
- nis? ( || ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] <sys-libs/glibc-2.14 ) ) |
290 |
- )" |
291 |
-DEPEND="${RDEPEND} |
292 |
- >=sys-devel/libtool-2 |
293 |
- >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}] |
294 |
- nls? ( sys-devel/gettext ) |
295 |
- >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]" |
296 |
-PDEPEND="sys-auth/pambase |
297 |
- vim-syntax? ( app-vim/pam-syntax )" |
298 |
-RDEPEND="${RDEPEND} |
299 |
- !<sys-apps/openrc-0.11.8 |
300 |
- !sys-auth/openpam |
301 |
- !sys-auth/pam_userdb |
302 |
- abi_x86_32? ( |
303 |
- !<=app-emulation/emul-linux-x86-baselibs-20140508-r7 |
304 |
- !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
305 |
- )" |
306 |
- |
307 |
-S="${WORKDIR}/${MY_P}" |
308 |
- |
309 |
-check_old_modules() { |
310 |
- local retval="0" |
311 |
- |
312 |
- if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then |
313 |
- eerror "" |
314 |
- eerror "Your current setup is using the pam_stack module." |
315 |
- eerror "This module is deprecated and no longer supported, and since version" |
316 |
- eerror "0.99 is no longer installed, nor provided by any other package." |
317 |
- eerror "The package will be built (to allow binary package builds), but will" |
318 |
- eerror "not be installed." |
319 |
- eerror "Please replace pam_stack usage with proper include directive usage," |
320 |
- eerror "following the PAM Upgrade guide at the following URL" |
321 |
- eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
322 |
- eerror "" |
323 |
- |
324 |
- retval=1 |
325 |
- fi |
326 |
- |
327 |
- if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then |
328 |
- eerror "" |
329 |
- eerror "Your current setup is using one or more of the following modules," |
330 |
- eerror "that are not built or supported anymore:" |
331 |
- eerror "pam_pwdb, pam_console" |
332 |
- eerror "If you are in real need for these modules, please contact the maintainers" |
333 |
- eerror "of PAM through http://bugs.gentoo.org/ providing information about its" |
334 |
- eerror "use cases." |
335 |
- eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" |
336 |
- eerror " http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
337 |
- eerror "" |
338 |
- |
339 |
- retval=1 |
340 |
- fi |
341 |
- |
342 |
- return $retval |
343 |
-} |
344 |
- |
345 |
-pkg_pretend() { |
346 |
- # do not error out, this is just a warning, one could build a binpkg |
347 |
- # with old modules enabled. |
348 |
- check_old_modules |
349 |
-} |
350 |
- |
351 |
-src_prepare() { |
352 |
- epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650 |
353 |
- epatch "${FILESDIR}"/${PN}-1.1.8-fix-compat.patch |
354 |
- epatch "${FILESDIR}"/${PN}-1.1.8-innetgr.patch |
355 |
- |
356 |
- # disable insecure modules (musl-libc doesn't implement the functions anyway) |
357 |
- use elibc_musl && sed -e 's/pam_rhosts//g' -i modules/Makefile.am modules/Makefile.in |
358 |
- elibtoolize |
359 |
-} |
360 |
- |
361 |
-multilib_src_configure() { |
362 |
- # Disable automatic detection of libxcrypt; we _don't_ want the |
363 |
- # user to link libxcrypt in by default, since we won't track the |
364 |
- # dependency and allow to break PAM this way. |
365 |
- export ac_cv_header_xcrypt_h=no |
366 |
- |
367 |
- # Disable automatic detection of libcrypt |
368 |
- use elibc_musl && export ac_cv_search_crypt=no |
369 |
- |
370 |
- local myconf=( |
371 |
- --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html |
372 |
- --libdir="${EPREFIX}"/usr/$(get_libdir) \ |
373 |
- --enable-securedir="${EPREFIX}"/$(get_libdir)/security |
374 |
- --enable-isadir="${EPREFIX}"/$(get_libdir)/security |
375 |
- $(use_enable nls) |
376 |
- $(use_enable selinux) |
377 |
- $(use_enable cracklib) |
378 |
- $(use_enable audit) |
379 |
- $(use_enable debug) |
380 |
- $(use_enable berkdb db) |
381 |
- $(use_enable nis) |
382 |
- --with-db-uniquename=-$(db_findver sys-libs/db) |
383 |
- --disable-prelude |
384 |
- ) |
385 |
- |
386 |
- if use hppa || use elibc_FreeBSD; then |
387 |
- myconf+=( --disable-pie ) |
388 |
- fi |
389 |
- |
390 |
- ECONF_SOURCE=${S} \ |
391 |
- econf "${myconf[@]}" |
392 |
-} |
393 |
- |
394 |
-multilib_src_compile() { |
395 |
- emake sepermitlockdir="${EPREFIX}/run/sepermit" |
396 |
-} |
397 |
- |
398 |
-multilib_src_install() { |
399 |
- emake DESTDIR="${D}" install \ |
400 |
- sepermitlockdir="${EPREFIX}/run/sepermit" |
401 |
- |
402 |
- local prefix |
403 |
- if multilib_is_native_abi; then |
404 |
- prefix= |
405 |
- gen_usr_ldscript -a pam pamc pam_misc |
406 |
- else |
407 |
- prefix=/usr |
408 |
- fi |
409 |
- |
410 |
- # create extra symlinks just in case something depends on them... |
411 |
- local lib |
412 |
- for lib in pam pamc pam_misc; do |
413 |
- if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then |
414 |
- dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname) |
415 |
- fi |
416 |
- done |
417 |
-} |
418 |
- |
419 |
-DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS ) |
420 |
- |
421 |
-multilib_src_install_all() { |
422 |
- einstalldocs |
423 |
- prune_libtool_files --all |
424 |
- |
425 |
- # Need to be suid |
426 |
- fperms u+s /sbin/unix_chkpwd |
427 |
- |
428 |
- docinto modules |
429 |
- for dir in modules/pam_*; do |
430 |
- newdoc "${dir}"/README README."$(basename "${dir}")" |
431 |
- done |
432 |
- |
433 |
- if use selinux; then |
434 |
- dodir /usr/lib/tmpfiles.d |
435 |
- cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF |
436 |
-d /run/sepermit 0755 root root |
437 |
-EOF |
438 |
- fi |
439 |
-} |
440 |
- |
441 |
-pkg_preinst() { |
442 |
- check_old_modules || die "deprecated PAM modules still used" |
443 |
-} |
444 |
- |
445 |
-pkg_postinst() { |
446 |
- ewarn "Some software with pre-loaded PAM libraries might experience" |
447 |
- ewarn "warnings or failures related to missing symbols and/or versions" |
448 |
- ewarn "after any update. While unfortunate this is a limit of the" |
449 |
- ewarn "implementation of PAM and the software, and it requires you to" |
450 |
- ewarn "restart the software manually after the update." |
451 |
- ewarn "" |
452 |
- ewarn "You can get a list of such software running a command like" |
453 |
- ewarn " lsof / | egrep -i 'del.*libpam\\.so'" |
454 |
- ewarn "" |
455 |
- ewarn "Alternatively, simply reboot your system." |
456 |
- if [[ -x "${EROOT}"/var/log/tallylog ]] ; then |
457 |
- elog "" |
458 |
- elog "Because of a bug present up to version 1.1.1-r2, you have" |
459 |
- elog "an executable /var/log/tallylog file. You can safely" |
460 |
- elog "correct it by running the command" |
461 |
- elog " chmod -x /var/log/tallylog" |
462 |
- elog "" |
463 |
- fi |
464 |
-} |