Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/pam/files/, sys-libs/pam/
Date: Wed, 30 Mar 2016 23:49:01
Message-Id: 1459381663.a0819b4caa858b34434c1d21217ffea94d76215b.vapier@gentoo
1 commit: a0819b4caa858b34434c1d21217ffea94d76215b
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 30 22:54:28 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 30 23:47:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0819b4c
7
8 sys-libs/pam: drop old <1.2.1 versions
9
10 sys-libs/pam/Manifest | 7 -
11 .../pam/files/Linux-PAM-1.1.5+glibc-2.16.patch | 20 ---
12 .../pam/files/Linux-PAM-1.1.6+glibc-2.16.patch | 29 ---
13 sys-libs/pam/files/Linux-PAM-1.1.6-destdir.patch | 48 -----
14 sys-libs/pam/files/pam-1.1.8-CVE-2013-7041.patch | 54 ------
15 sys-libs/pam/files/pam-1.1.8-CVE-2014-2583.patch | 58 ------
16 sys-libs/pam/files/pam-1.1.8-doc-install.patch | 142 ---------------
17 sys-libs/pam/pam-1.1.5.ebuild | 186 -------------------
18 sys-libs/pam/pam-1.1.6-r2.ebuild | 197 --------------------
19 sys-libs/pam/pam-1.1.8-r1.ebuild | 183 -------------------
20 sys-libs/pam/pam-1.1.8-r2.ebuild | 198 ---------------------
21 sys-libs/pam/pam-1.1.8-r3.ebuild | 195 --------------------
22 sys-libs/pam/pam-1.1.8.ebuild | 181 -------------------
23 sys-libs/pam/pam-1.2.0.ebuild | 194 --------------------
24 14 files changed, 1692 deletions(-)
25
26 diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest
27 index 8cc152f..598cac7 100644
28 --- a/sys-libs/pam/Manifest
29 +++ b/sys-libs/pam/Manifest
30 @@ -1,9 +1,2 @@
31 -DIST Linux-PAM-1.1.5-docs.tar.bz2 498228 SHA256 e4b10ffebe2e5cc355bd37c4e17a2288eb90d1396b06961738a7e7ef848c754c SHA512 6209b3d1936e0c0aef3a7bf24d497b867995261ad227f7d0c4b28796c0b1f9262c99e3e12d7e1d37e286af39367f6e2d79e06915dff77c65b547d62ee8772c5b WHIRLPOOL a26c778be99b21c6701260871ffd7348f7a302c5e4358b8419e9436131b83650bdf0f5bc1d845dba419bab6c50c89733bea4518f619b7b75d66b2f02408c3df1
32 -DIST Linux-PAM-1.1.5.tar.bz2 1123524 SHA256 65def4df04254dc4c5156859d36c34ad6d7afbcf3adbf2780530ebc4dbf2a116 SHA512 c898c3db3da1856b1b16c2bfe19963c30696345982253888c2edf85317cf82ab4daaf9d105a162975d4cfd818b7bbca3d0e63ea7267af435e8f88b8fdc83ddd0 WHIRLPOOL 29ad881f6b1d908fb84e8d5802cceff70838bd0e29f6c700ad64d3c5d43c189f0c122fdddfa4333f008a8ef2828bb0e2fd68cdd479b43efac9456b6d6a5bb25a
33 -DIST Linux-PAM-1.1.6-docs.tar.bz2 147359 SHA256 0244321b1c4b8a71064d984880566890cc809b1c77bdd0550f121fa7d8450497 SHA512 f158116c2a3d604a9195d96263f094a1c9c0e2ba78b54e0f8a92bfa73955d8cec36d68b985eb70f1bf0958fc54be5590b61669b3b777ba6bd2138bc156cec782 WHIRLPOOL 73b42d795b3ca06c3a22ea8a91258da9bd4662e72de8a72751eec3824524a44e13dbc13a7c0e79256429f583d21c2764512363921d5709e61752e391f8227577
34 -DIST Linux-PAM-1.1.6.tar.bz2 1147538 SHA256 bab887d6280f47fc3963df3b95735a27a16f0f663636163ddf3acab5f1149fc2 SHA512 f68e3a0d648441eef7589efe0fad65c621d030a9425635f461f2882a5129240830a55d5a5b81d02b439c633870a96f61b4c4dea22d0eacfdd583f4fac353928a WHIRLPOOL 619214ecf859e1fc4e6f59e37045e370b98bae57ceeaed3f6a5e0732fc0caba41c040bea926830b678f6e5c243d73a607daea438f55cf28d339ce458eded7db5
35 -DIST Linux-PAM-1.1.8-docs.tar.bz2 147887 SHA256 c4bb6a0e8307d2ab5611457fecf20fcbd6cdfff51dea524f0f06c74e4f3b4ff8 SHA512 36aa99996f8cc0640686d2af40845e18ad4b48183f18de9e1495427550ad5b61e2f59e25f6d5e8df1277cd3f171fd69bf6c49fe7c5b31f0b290e3641b65521e8 WHIRLPOOL c4b373e59fac30a29c2b16f01419492c72fae2ceb15b157418bba4899b75cf4b97bac4559b688ef8d5a231cc972f72654c4e10d63a0b72a0d6573388f7125f87
36 -DIST Linux-PAM-1.1.8.tar.bz2 1148944 SHA256 c4b1f23a236d169e2496fea20721578d864ba00f7242d2b41d81050ac87a1e55 SHA512 245785ab4e187ceaab6393967352c8d2a2319c64e1e83285d0251cc02995dc2edab8e3001301b6d9f6774c441b7557d9caf4dfdf94c7cd5d44aa53ae759d9e5d WHIRLPOOL b4ec7baeb57b9d987086fe3e007e08e8b9c92b2ff86a94f8003a87c8448925835808661cd719d2445570aa8dd1c20fcbbe8bd465d73f4af8cd7edde0f650a734
37 DIST Linux-PAM-1.2.0-docs.tar.bz2 490586 SHA256 3bc9ae398f759e372dbf4065ceed2df8b1ac5ab62c6688cb5f7849ce773df2c3 SHA512 028b7f9d6b0a5cf38f063e0f82ac3d0955e1e41d77c9f3fc803363d9ea710d71366e0a91f31b418cac397bb6639442de908fa00f02cd94cf612496d1b43c7e4c WHIRLPOOL 9a329b610d840c904050b2261e5ce34ac54232b0c7d51c12ee45c9e758ab6659ea8562e032fa9815c2beab0cfa1ea455dbfbf3cdef39d30d299a8bc5286f7a14
38 -DIST Linux-PAM-1.2.0.tar.bz2 1278831 SHA256 cd8beac5961e942e9c73b32a3cd1a3457755f8fb35d07c9ec64511e19e135ea4 SHA512 26b9ec0f8c7fcc00a04696a2208fc00dabb070593f1a420c81e2855cd2eb26ebcc993f80ccbb6a2aac88dd402b670e7800e1722c56451dfc71521c76a2f0bf9a WHIRLPOOL b3327394bb99ff02d9efba43655a2f5bfd4acbf0c75630fde19634ff575cce3fef614c188d538529673526fd88488a5493b19af30c6f69064824cbc1aad3d766
39 DIST Linux-PAM-1.2.1.tar.bz2 1279523 SHA256 342b1211c0d3b203a7df2540a5b03a428a087bd8a48c17e49ae268f992b334d9 SHA512 4572aa1eaf5a1312410c74b5ed055b2592c5efe2bb82f59981da4e9e93555ad40aee3a89f446d9dc6c6af79efc04c33f739f66db9edc07e02479475a14e426da WHIRLPOOL 562917945b3b3a407955cc5bf5cd251ff7e257a94055d7cfbf06d5c2619b58d61624f16848de3512ddf61636ad8618315de3f7bd8e4e51b3b7d109adfa212c8a
40
41 diff --git a/sys-libs/pam/files/Linux-PAM-1.1.5+glibc-2.16.patch b/sys-libs/pam/files/Linux-PAM-1.1.5+glibc-2.16.patch
42 deleted file mode 100644
43 index 114d3e4..0000000
44 --- a/sys-libs/pam/files/Linux-PAM-1.1.5+glibc-2.16.patch
45 +++ /dev/null
46 @@ -1,20 +0,0 @@
47 ---- a/modules/pam_unix/pam_unix_acct.c 2011-06-21 11:04:56.000000000 +0200
48 -+++ b/modules/pam_unix/pam_unix_acct.c 2012-07-05 16:04:35.643727485 +0200
49 -@@ -41,6 +41,7 @@
50 - #include <string.h>
51 - #include <unistd.h>
52 - #include <sys/types.h>
53 -+#include <sys/resource.h>
54 - #include <syslog.h>
55 - #include <pwd.h>
56 - #include <shadow.h>
57 ---- a/modules/pam_unix/pam_unix_passwd.c 2012-07-16 11:49:25.954638105 -0500
58 -+++ b/modules/pam_unix/pam_unix_passwd.c 2012-07-16 11:50:04.408635441 -0500
59 -@@ -46,6 +46,7 @@
60 - #include <unistd.h>
61 - #include <errno.h>
62 - #include <sys/types.h>
63 -+#include <sys/resource.h>
64 - #include <pwd.h>
65 - #include <syslog.h>
66 - #include <shadow.h>
67
68 diff --git a/sys-libs/pam/files/Linux-PAM-1.1.6+glibc-2.16.patch b/sys-libs/pam/files/Linux-PAM-1.1.6+glibc-2.16.patch
69 deleted file mode 100644
70 index cddda35..0000000
71 --- a/sys-libs/pam/files/Linux-PAM-1.1.6+glibc-2.16.patch
72 +++ /dev/null
73 @@ -1,29 +0,0 @@
74 -From 18da0c4763f5e079f8b2df45fa462b0b70b6fd3a Mon Sep 17 00:00:00 2001
75 -From: "Jory A. Pratt" <anarchy@g.o>
76 -Date: Sun, 7 Oct 2012 11:44:17 -0700
77 -Subject: [PATCH] Fix building with GLIBC 2.16 and SELinux.
78 -MIME-Version: 1.0
79 -Content-Type: text/plain; charset=UTF-8
80 -Content-Transfer-Encoding: 8bit
81 -
82 -
83 -Signed-off-by: Diego Elio Pettenò <flameeyes@×××××××××.eu>
84 ----
85 - modules/pam_unix/pam_unix_passwd.c | 1 +
86 - 1 file modificato, 1 inserzione(+)
87 -
88 -diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
89 -index 9e1302d..b5f5ae9 100644
90 ---- a/modules/pam_unix/pam_unix_passwd.c
91 -+++ b/modules/pam_unix/pam_unix_passwd.c
92 -@@ -46,6 +46,7 @@
93 - #include <unistd.h>
94 - #include <errno.h>
95 - #include <sys/types.h>
96 -+#include <sys/resource.h>
97 - #include <pwd.h>
98 - #include <syslog.h>
99 - #include <shadow.h>
100 ---
101 -1.7.12
102 -
103
104 diff --git a/sys-libs/pam/files/Linux-PAM-1.1.6-destdir.patch b/sys-libs/pam/files/Linux-PAM-1.1.6-destdir.patch
105 deleted file mode 100644
106 index 6859ccb..0000000
107 --- a/sys-libs/pam/files/Linux-PAM-1.1.6-destdir.patch
108 +++ /dev/null
109 @@ -1,48 +0,0 @@
110 -From d7e6b921cd34f7ad8fc4d05065c75d13ba330896 Mon Sep 17 00:00:00 2001
111 -From: Tomas Mraz <tmraz@×××××××××××××.org>
112 -Date: Fri, 17 Aug 2012 14:46:40 +0200
113 -Subject: [PATCH] Add missing $(DESTDIR) when making directories on install.
114 -MIME-Version: 1.0
115 -Content-Type: text/plain; charset=UTF-8
116 -Content-Transfer-Encoding: 8bit
117 -
118 -modules/pam_namespace/Makefile.am: Add missing $(DESTDIR) when making
119 -$(namespaceddir) on install.
120 -modules/pam_sepermit/Makefile.am: Add missing $(DESTDIR) when making
121 -$(sepermitlockdir) on install.
122 -
123 -Signed-off-by: Diego Elio Pettenò <flameeyes@×××××××××.eu>
124 ----
125 - modules/pam_namespace/Makefile.am | 2 +-
126 - modules/pam_sepermit/Makefile.am | 2 +-
127 - 2 files changed, 2 insertions(+), 2 deletions(-)
128 -
129 -diff --git a/modules/pam_namespace/Makefile.am b/modules/pam_namespace/Makefile.am
130 -index a28f196..ebb00f3 100644
131 ---- a/modules/pam_namespace/Makefile.am
132 -+++ b/modules/pam_namespace/Makefile.am
133 -@@ -40,7 +40,7 @@ if HAVE_UNSHARE
134 - secureconf_SCRIPTS = namespace.init
135 -
136 - install-data-local:
137 -- mkdir -p $(namespaceddir)
138 -+ mkdir -p $(DESTDIR)$(namespaceddir)
139 - endif
140 -
141 -
142 -diff --git a/modules/pam_sepermit/Makefile.am b/modules/pam_sepermit/Makefile.am
143 -index cfc5594..bc82275 100644
144 ---- a/modules/pam_sepermit/Makefile.am
145 -+++ b/modules/pam_sepermit/Makefile.am
146 -@@ -35,7 +35,7 @@ if HAVE_LIBSELINUX
147 - securelib_LTLIBRARIES = pam_sepermit.la
148 -
149 - install-data-local:
150 -- mkdir -p $(sepermitlockdir)
151 -+ mkdir -p $(DESTDIR)$(sepermitlockdir)
152 - endif
153 - if ENABLE_REGENERATE_MAN
154 - noinst_DATA = README pam_sepermit.8 sepermit.conf.5
155 ---
156 -1.7.8.6
157 -
158
159 diff --git a/sys-libs/pam/files/pam-1.1.8-CVE-2013-7041.patch b/sys-libs/pam/files/pam-1.1.8-CVE-2013-7041.patch
160 deleted file mode 100644
161 index 338aa96..0000000
162 --- a/sys-libs/pam/files/pam-1.1.8-CVE-2013-7041.patch
163 +++ /dev/null
164 @@ -1,54 +0,0 @@
165 -https://bugs.gentoo.org/493432
166 -
167 -From 57a1e2b274d0a6376d92ada9926e5c5741e7da20 Mon Sep 17 00:00:00 2001
168 -From: "Dmitry V. Levin" <ldv@××××××××.org>
169 -Date: Fri, 24 Jan 2014 22:18:32 +0000
170 -Subject: [PATCH] pam_userdb: fix password hash comparison
171 -
172 -Starting with commit Linux-PAM-0-77-28-g0b3e583 that introduced hashed
173 -passwords support in pam_userdb, hashes are compared case-insensitively.
174 -This bug leads to accepting hashes for completely different passwords in
175 -addition to those that should be accepted.
176 -
177 -Additionally, commit Linux-PAM-1_1_6-13-ge2a8187 that added support for
178 -modern password hashes with different lengths and settings, did not
179 -update the hash comparison accordingly, which leads to accepting
180 -computed hashes longer than stored hashes when the latter is a prefix
181 -of the former.
182 -
183 -* modules/pam_userdb/pam_userdb.c (user_lookup): Reject the computed
184 -hash whose length differs from the stored hash length.
185 -Compare computed and stored hashes case-sensitively.
186 -Fixes CVE-2013-7041.
187 -
188 -Bug-Debian: http://bugs.debian.org/731368
189 ----
190 - modules/pam_userdb/pam_userdb.c | 9 ++++++---
191 - 1 file changed, 6 insertions(+), 3 deletions(-)
192 -
193 -diff --git a/modules/pam_userdb/pam_userdb.c b/modules/pam_userdb/pam_userdb.c
194 -index de8b5b1..ff040e6 100644
195 ---- a/modules/pam_userdb/pam_userdb.c
196 -+++ b/modules/pam_userdb/pam_userdb.c
197 -@@ -222,12 +222,15 @@ user_lookup (pam_handle_t *pamh, const char *database, const char *cryptmode,
198 - } else {
199 - cryptpw = crypt (pass, data.dptr);
200 -
201 -- if (cryptpw) {
202 -- compare = strncasecmp (data.dptr, cryptpw, data.dsize);
203 -+ if (cryptpw && strlen(cryptpw) == (size_t)data.dsize) {
204 -+ compare = memcmp(data.dptr, cryptpw, data.dsize);
205 - } else {
206 - compare = -2;
207 - if (ctrl & PAM_DEBUG_ARG) {
208 -- pam_syslog(pamh, LOG_INFO, "crypt() returned NULL");
209 -+ if (cryptpw)
210 -+ pam_syslog(pamh, LOG_INFO, "lengths of computed and stored hashes differ");
211 -+ else
212 -+ pam_syslog(pamh, LOG_INFO, "crypt() returned NULL");
213 - }
214 - };
215 -
216 ---
217 -2.4.0
218 -
219
220 diff --git a/sys-libs/pam/files/pam-1.1.8-CVE-2014-2583.patch b/sys-libs/pam/files/pam-1.1.8-CVE-2014-2583.patch
221 deleted file mode 100644
222 index 7965b77..0000000
223 --- a/sys-libs/pam/files/pam-1.1.8-CVE-2014-2583.patch
224 +++ /dev/null
225 @@ -1,58 +0,0 @@
226 -https://bugs.gentoo.org/505604
227 -
228 -From 9dcead87e6d7f66d34e7a56d11a30daca367dffb Mon Sep 17 00:00:00 2001
229 -From: "Dmitry V. Levin" <ldv@××××××××.org>
230 -Date: Wed, 26 Mar 2014 22:17:23 +0000
231 -Subject: [PATCH] pam_timestamp: fix potential directory traversal issue
232 - (ticket #27)
233 -
234 -pam_timestamp uses values of PAM_RUSER and PAM_TTY as components of
235 -the timestamp pathname it creates, so extra care should be taken to
236 -avoid potential directory traversal issues.
237 -
238 -* modules/pam_timestamp/pam_timestamp.c (check_tty): Treat
239 -"." and ".." tty values as invalid.
240 -(get_ruser): Treat "." and ".." ruser values, as well as any ruser
241 -value containing '/', as invalid.
242 -
243 -Fixes CVE-2014-2583.
244 -
245 -Reported-by: Sebastian Krahmer <krahmer@××××.de>
246 ----
247 - modules/pam_timestamp/pam_timestamp.c | 13 ++++++++++++-
248 - 1 file changed, 12 insertions(+), 1 deletion(-)
249 -
250 -diff --git a/modules/pam_timestamp/pam_timestamp.c b/modules/pam_timestamp/pam_timestamp.c
251 -index 5193733..b3f08b1 100644
252 ---- a/modules/pam_timestamp/pam_timestamp.c
253 -+++ b/modules/pam_timestamp/pam_timestamp.c
254 -@@ -158,7 +158,7 @@ check_tty(const char *tty)
255 - tty = strrchr(tty, '/') + 1;
256 - }
257 - /* Make sure the tty wasn't actually a directory (no basename). */
258 -- if (strlen(tty) == 0) {
259 -+ if (!strlen(tty) || !strcmp(tty, ".") || !strcmp(tty, "..")) {
260 - return NULL;
261 - }
262 - return tty;
263 -@@ -243,6 +243,17 @@ get_ruser(pam_handle_t *pamh, char *ruserbuf, size_t ruserbuflen)
264 - if (pwd != NULL) {
265 - ruser = pwd->pw_name;
266 - }
267 -+ } else {
268 -+ /*
269 -+ * This ruser is used by format_timestamp_name as a component
270 -+ * of constructed timestamp pathname, so ".", "..", and '/'
271 -+ * are disallowed to avoid potential path traversal issues.
272 -+ */
273 -+ if (!strcmp(ruser, ".") ||
274 -+ !strcmp(ruser, "..") ||
275 -+ strchr(ruser, '/')) {
276 -+ ruser = NULL;
277 -+ }
278 - }
279 - if (ruser == NULL || strlen(ruser) >= ruserbuflen) {
280 - *ruserbuf = '\0';
281 ---
282 -2.4.0
283 -
284
285 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
286 deleted file mode 100644
287 index bdd5b9d..0000000
288 --- a/sys-libs/pam/files/pam-1.1.8-doc-install.patch
289 +++ /dev/null
290 @@ -1,142 +0,0 @@
291 -https://bugs.gentoo.org/473650
292 -https://fedorahosted.org/linux-pam/ticket/31
293 -
294 -fix doc installs when doing out of tree builds
295 -
296 ---- a/doc/adg/Makefile.in
297 -+++ b/doc/adg/Makefile.in
298 -@@ -463,17 +463,17 @@ install-data-local:
299 - $(mkinstalldirs) $(DESTDIR)$(docdir)
300 - $(mkinstalldirs) $(DESTDIR)$(pdfdir)
301 - $(mkinstalldirs) $(DESTDIR)$(htmldir)
302 -- test -f html/Linux-PAM_ADG.html || exit 0; \
303 -+ test -f html/Linux-PAM_ADG.html -o -f $(srcdir)/html/Linux-PAM_ADG.html || exit 0; \
304 - $(install_sh_DATA) html/Linux-PAM_ADG.html html/adg-*.html \
305 - $(DESTDIR)$(htmldir)/ || \
306 - $(install_sh_DATA) $(srcdir)/html/Linux-PAM_ADG.html \
307 -- $(srcdir)/html/sag-*.html \
308 -+ $(srcdir)/html/adg-*.html \
309 - $(DESTDIR)$(htmldir)/
310 -- test -f Linux-PAM_ADG.txt || exit 0; \
311 -+ test -f Linux-PAM_ADG.txt -o -f $(srcdir)/Linux-PAM_ADG.txt || exit 0; \
312 - $(install_sh_DATA) Linux-PAM_ADG.txt $(DESTDIR)$(docdir)/ || \
313 - $(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.txt \
314 - $(DESTDIR)$(docdir)/
315 -- test -f Linux-PAM_ADG.pdf || exit 0; \
316 -+ test -f Linux-PAM_ADG.pdf -o -f $(srcdir)/Linux-PAM_ADG.pdf || exit 0; \
317 - $(install_sh_DATA) Linux-PAM_ADG.pdf $(DESTDIR)$(pdfdir)/ || \
318 - $(install_sh_DATA) $(srcdir)/Linux-PAM_ADG.pdf \
319 - $(DESTDIR)$(pdfdir)/
320 -@@ -486,18 +486,18 @@ uninstall-local:
321 -
322 - releasedocs: all
323 - $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html
324 -- test -f html/Linux-PAM_ADG.html || exit 0; \
325 -+ test -f html/Linux-PAM_ADG.html -o -f $(srcdir)/html/Linux-PAM_ADG.html || exit 0; \
326 - cp -ap html/Linux-PAM_ADG.html html/adg-*.html \
327 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/ || \
328 - cp -ap $(srcdir)/html/Linux-PAM_ADG.html \
329 - $(srcdir)/html/adg-*.html \
330 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/html/
331 -- test -f Linux-PAM_ADG.txt || exit 0; \
332 -+ test -f Linux-PAM_ADG.txt -o -f $(srcdir)/Linux-PAM_ADG.txt || exit 0; \
333 - cp -p Linux-PAM_ADG.txt \
334 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/ || \
335 - cp -p $(srcdir)/Linux-PAM_ADG.txt \
336 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/
337 -- test -f Linux-PAM_ADG.pdf || exit 0; \
338 -+ test -f Linux-PAM_ADG.pdf -o -f $(srcdir)/Linux-PAM_ADG.pdf || exit 0; \
339 - cp -p Linux-PAM_ADG.pdf \
340 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/adg/ || \
341 - cp -p $(srcdir)/Linux-PAM_ADG.pdf \
342 ---- a/doc/mwg/Makefile.in
343 -+++ b/doc/mwg/Makefile.in
344 -@@ -463,17 +463,17 @@ install-data-local:
345 - $(mkinstalldirs) $(DESTDIR)$(docdir)
346 - $(mkinstalldirs) $(DESTDIR)$(pdfdir)
347 - $(mkinstalldirs) $(DESTDIR)$(htmldir)
348 -- test -f html/Linux-PAM_MWG.html || exit 0; \
349 -+ test -f html/Linux-PAM_MWG.html -o -f $(srcdir)/html/Linux-PAM_MWG.html || exit 0; \
350 - $(install_sh_DATA) html/Linux-PAM_MWG.html html/mwg-*.html \
351 - $(DESTDIR)$(htmldir)/ || \
352 - $(install_sh_DATA) $(srcdir)/html/Linux-PAM_MWG.html \
353 -- $(srcdir)/html/sag-*.html \
354 -+ $(srcdir)/html/mwg-*.html \
355 - $(DESTDIR)$(htmldir)/
356 -- test -f Linux-PAM_MWG.txt || exit 0; \
357 -+ test -f Linux-PAM_MWG.txt -o -f $(srcdir)/Linux-PAM_MWG.txt || exit 0; \
358 - $(install_sh_DATA) Linux-PAM_MWG.txt $(DESTDIR)$(docdir)/ || \
359 - $(install_sh_DATA) $(srcdir)/Linux-PAM_MWG.txt \
360 - $(DESTDIR)$(docdir)/
361 -- test -f Linux-PAM_MWG.pdf || exit 0; \
362 -+ test -f Linux-PAM_MWG.pdf -o -f $(srcdir)/Linux-PAM_MWG.pdf || exit 0; \
363 - $(install_sh_DATA) Linux-PAM_MWG.pdf $(DESTDIR)$(pdfdir)/ || \
364 - $(install_sh_DATA) $(srcdir)/Linux-PAM_MWG.pdf \
365 - $(DESTDIR)$(pdfdir)/
366 -@@ -486,18 +486,18 @@ uninstall-local:
367 -
368 - releasedocs: all
369 - $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html
370 -- test -f html/Linux-PAM_MWG.html || exit 0; \
371 -+ test -f html/Linux-PAM_MWG.html -o -f $(srcdir)/html/Linux-PAM_MWG.html || exit 0; \
372 - cp -ap html/Linux-PAM_MWG.html html/mwg-*.html \
373 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html/ || \
374 - cp -ap $(srcdir)/html/Linux-PAM_MWG.html \
375 - $(srcdir)/html/mwg-*.html \
376 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/html/
377 -- test -f Linux-PAM_MWG.txt || exit 0; \
378 -+ test -f Linux-PAM_MWG.txt -o -f $(srcdir)/Linux-PAM_MWG.txt || exit 0; \
379 - cp -p Linux-PAM_MWG.txt \
380 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/ || \
381 - cp -p $(srcdir)/Linux-PAM_MWG.txt \
382 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/
383 -- test -f Linux-PAM_MWG.pdf || exit 0; \
384 -+ test -f Linux-PAM_MWG.pdf -o -f $(srcdir)/Linux-PAM_MWG.pdf || exit 0; \
385 - cp -p Linux-PAM_MWG.pdf \
386 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/mwg/ || \
387 - cp -p $(srcdir)/Linux-PAM_MWG.pdf \
388 ---- a/doc/sag/Makefile.in
389 -+++ b/doc/sag/Makefile.in
390 -@@ -463,17 +463,17 @@ install-data-local:
391 - $(mkinstalldirs) $(DESTDIR)$(docdir)
392 - $(mkinstalldirs) $(DESTDIR)$(pdfdir)
393 - $(mkinstalldirs) $(DESTDIR)$(htmldir)
394 -- test -f html/Linux-PAM_SAG.html || exit 0; \
395 -+ test -f html/Linux-PAM_SAG.html -o -f $(srcdir)/html/Linux-PAM_SAG.html || exit 0; \
396 - $(install_sh_DATA) html/Linux-PAM_SAG.html html/sag-*.html \
397 - $(DESTDIR)$(htmldir)/ || \
398 - $(install_sh_DATA) $(srcdir)/html/Linux-PAM_SAG.html \
399 - $(srcdir)/html/sag-*.html \
400 - $(DESTDIR)$(htmldir)/
401 -- test -f Linux-PAM_SAG.txt || exit 0; \
402 -+ test -f Linux-PAM_SAG.txt -o -f $(srcdir)/Linux-PAM_SAG.txt || exit 0; \
403 - $(install_sh_DATA) Linux-PAM_SAG.txt $(DESTDIR)$(docdir)/ || \
404 - $(install_sh_DATA) $(srcdir)/Linux-PAM_SAG.txt \
405 - $(DESTDIR)$(docdir)/
406 -- test -f Linux-PAM_SAG.pdf || exit 0; \
407 -+ test -f Linux-PAM_SAG.pdf -o -f $(srcdir)/Linux-PAM_SAG.pdf || exit 0; \
408 - $(install_sh_DATA) Linux-PAM_SAG.pdf $(DESTDIR)$(pdfdir)/ || \
409 - $(install_sh_DATA) $(srcdir)/Linux-PAM_SAG.pdf \
410 - $(DESTDIR)$(pdfdir)/
411 -@@ -486,18 +486,18 @@ uninstall-local:
412 -
413 - releasedocs: all
414 - $(mkinstalldirs) $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html
415 -- test -f html/Linux-PAM_SAG.html || exit 0; \
416 -+ test -f html/Linux-PAM_SAG.html -o -f $(srcdir)/html/Linux-PAM_SAG.html || exit 0; \
417 - cp -ap html/Linux-PAM_SAG.html html/sag-*.html \
418 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html/ || \
419 - cp -ap $(srcdir)/html/Linux-PAM_SAG.html \
420 - $(srcdir)/html/sag-*.html \
421 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/html/
422 -- test -f Linux-PAM_SAG.txt || exit 0; \
423 -+ test -f Linux-PAM_SAG.txt -o -f $(srcdir)/Linux-PAM_SAG.txt || exit 0; \
424 - cp -p Linux-PAM_SAG.txt \
425 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/ || \
426 - cp -p $(srcdir)/Linux-PAM_SAG.txt \
427 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/
428 -- test -f Linux-PAM_SAG.pdf || exit 0; \
429 -+ test -f Linux-PAM_SAG.pdf -o -f $(srcdir)/Linux-PAM_SAG.pdf || exit 0; \
430 - cp -p Linux-PAM_SAG.pdf \
431 - $(top_builddir)/Linux-PAM-$(VERSION)/doc/sag/ || \
432 - cp -p $(srcdir)/Linux-PAM_SAG.pdf \
433
434 diff --git a/sys-libs/pam/pam-1.1.5.ebuild b/sys-libs/pam/pam-1.1.5.ebuild
435 deleted file mode 100644
436 index 0995597..0000000
437 --- a/sys-libs/pam/pam-1.1.5.ebuild
438 +++ /dev/null
439 @@ -1,186 +0,0 @@
440 -# Copyright 1999-2012 Gentoo Foundation
441 -# Distributed under the terms of the GNU General Public License v2
442 -# $Id$
443 -
444 -EAPI="4"
445 -
446 -inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use
447 -
448 -MY_PN="Linux-PAM"
449 -MY_P="${MY_PN}-${PV}"
450 -
451 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
452 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
453 -
454 -SRC_URI="https://fedorahosted.org/releases/l/i/linux-pam/${MY_P}.tar.bz2
455 - https://fedorahosted.org/releases/l/i/linux-pam/${MY_P}-docs.tar.bz2"
456 -
457 -LICENSE="|| ( BSD GPL-2 )"
458 -SLOT="0"
459 -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
460 -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
461 -
462 -RDEPEND="nls? ( virtual/libintl )
463 - cracklib? ( >=sys-libs/cracklib-2.8.3 )
464 - audit? ( sys-process/audit )
465 - selinux? ( >=sys-libs/libselinux-1.28 )
466 - berkdb? ( sys-libs/db )
467 - elibc_glibc? (
468 - >=sys-libs/glibc-2.7
469 - nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
470 - )"
471 -DEPEND="${RDEPEND}
472 - >=sys-devel/libtool-2
473 - sys-devel/flex
474 - nls? ( sys-devel/gettext )
475 - virtual/pkgconfig"
476 -PDEPEND="sys-auth/pambase
477 - vim-syntax? ( app-vim/pam-syntax )"
478 -RDEPEND="${RDEPEND}
479 - !sys-auth/openpam
480 - !sys-auth/pam_userdb"
481 -
482 -S="${WORKDIR}/${MY_P}"
483 -
484 -check_old_modules() {
485 - local retval="0"
486 -
487 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
488 - eerror ""
489 - eerror "Your current setup is using the pam_stack module."
490 - eerror "This module is deprecated and no longer supported, and since version"
491 - eerror "0.99 is no longer installed, nor provided by any other package."
492 - eerror "The package will be built (to allow binary package builds), but will"
493 - eerror "not be installed."
494 - eerror "Please replace pam_stack usage with proper include directive usage,"
495 - eerror "following the PAM Upgrade guide at the following URL"
496 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
497 - eerror ""
498 -
499 - retval=1
500 - fi
501 -
502 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
503 - eerror ""
504 - eerror "Your current setup is using one or more of the following modules,"
505 - eerror "that are not built or supported anymore:"
506 - eerror "pam_pwdb, pam_console"
507 - eerror "If you are in real need for these modules, please contact the maintainers"
508 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
509 - eerror "use cases."
510 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
511 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
512 - eerror ""
513 -
514 - retval=1
515 - fi
516 -
517 - return $retval
518 -}
519 -
520 -pkg_setup() {
521 - check_old_modules
522 -}
523 -
524 -src_prepare() {
525 - epatch "${FILESDIR}"/${MY_P}+glibc-2.16.patch
526 -
527 - elibtoolize
528 -}
529 -
530 -src_configure() {
531 - local myconf
532 -
533 - if use hppa || use elibc_FreeBSD; then
534 - myconf="${myconf} --disable-pie"
535 - fi
536 -
537 - # Disable automatic detection of libxcrypt; we _don't_ want the
538 - # user to link libxcrypt in by default, since we won't track the
539 - # dependency and allow to break PAM this way.
540 - export ac_cv_header_xcrypt_h=no
541 -
542 - econf \
543 - --disable-dependency-tracking \
544 - --enable-fast-install \
545 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
546 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
547 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
548 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security \
549 - --enable-isadir="${EPREFIX}"/$(get_libdir)/security \
550 - $(use_enable nls) \
551 - $(use_enable selinux) \
552 - $(use_enable cracklib) \
553 - $(use_enable audit) \
554 - $(use_enable debug) \
555 - $(use_enable berkdb db) \
556 - $(use_enable nis) \
557 - --with-db-uniquename=-$(db_findver sys-libs/db) \
558 - --disable-prelude \
559 - ${myconf}
560 -}
561 -
562 -src_compile() {
563 - emake sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "emake failed"
564 -}
565 -
566 -src_test() {
567 - # explicitly allow parallel-build during testing
568 - emake sepermitlockdir="${EPREFIX}/var/run/sepermit" check || die "emake check failed"
569 -}
570 -
571 -src_install() {
572 - local lib
573 -
574 - emake DESTDIR="${D}" install \
575 - sepermitlockdir="${EPREFIX}/var/run/sepermit" || die "make install failed"
576 -
577 - # Need to be suid
578 - fperms u+s /sbin/unix_chkpwd
579 -
580 - gen_usr_ldscript -a pam pamc pam_misc
581 -
582 - # create extra symlinks just in case something depends on them...
583 - for lib in pam pamc pam_misc; do
584 - if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then
585 - dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname)
586 - fi
587 - done
588 -
589 - dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS
590 -
591 - docinto modules
592 - for dir in modules/pam_*; do
593 - newdoc "${dir}"/README README."$(basename "${dir}")"
594 - done
595 -
596 - # Get rid of the .la files. We certainly don't need them for PAM
597 - # modules, and libpam is installed as a shared object only, so we
598 - # don't need them for static linking either.
599 - find "${D}" -name '*.la' -delete
600 -}
601 -
602 -pkg_preinst() {
603 - check_old_modules || die "deprecated PAM modules still used"
604 -}
605 -
606 -pkg_postinst() {
607 - ewarn "Some software with pre-loaded PAM libraries might experience"
608 - ewarn "warnings or failures related to missing symbols and/or versions"
609 - ewarn "after any update. While unfortunate this is a limit of the"
610 - ewarn "implementation of PAM and the software, and it requires you to"
611 - ewarn "restart the software manually after the update."
612 - ewarn ""
613 - ewarn "You can get a list of such software running a command like"
614 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
615 - ewarn ""
616 - ewarn "Alternatively, simply reboot your system."
617 - if [ -x "${ROOT}"/var/log/tallylog ] ; then
618 - elog ""
619 - elog "Because of a bug present up to version 1.1.1-r2, you have"
620 - elog "an executable /var/log/tallylog file. You can safely"
621 - elog "correct it by running the command"
622 - elog " chmod -x /var/log/tallylog"
623 - elog ""
624 - fi
625 -}
626
627 diff --git a/sys-libs/pam/pam-1.1.6-r2.ebuild b/sys-libs/pam/pam-1.1.6-r2.ebuild
628 deleted file mode 100644
629 index d3e0f23..0000000
630 --- a/sys-libs/pam/pam-1.1.6-r2.ebuild
631 +++ /dev/null
632 @@ -1,197 +0,0 @@
633 -# Copyright 1999-2014 Gentoo Foundation
634 -# Distributed under the terms of the GNU General Public License v2
635 -# $Id$
636 -
637 -EAPI=5
638 -
639 -inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use autotools
640 -
641 -MY_PN="Linux-PAM"
642 -MY_P="${MY_PN}-${PV}"
643 -
644 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
645 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
646 -
647 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
648 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
649 -
650 -LICENSE="|| ( BSD GPL-2 )"
651 -SLOT="0"
652 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
653 -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
654 -
655 -RDEPEND="nls? ( virtual/libintl )
656 - cracklib? ( >=sys-libs/cracklib-2.8.3 )
657 - audit? ( sys-process/audit )
658 - selinux? ( >=sys-libs/libselinux-1.28 )
659 - berkdb? ( sys-libs/db )
660 - elibc_glibc? (
661 - >=sys-libs/glibc-2.7
662 - nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
663 - )"
664 -DEPEND="${RDEPEND}
665 - >=sys-devel/libtool-2
666 - sys-devel/flex
667 - nls? ( sys-devel/gettext )
668 - virtual/pkgconfig"
669 -PDEPEND="sys-auth/pambase
670 - vim-syntax? ( app-vim/pam-syntax )"
671 -RDEPEND="${RDEPEND}
672 - !<sys-apps/openrc-0.11.8
673 - !sys-auth/openpam
674 - !sys-auth/pam_userdb"
675 -
676 -S="${WORKDIR}/${MY_P}"
677 -
678 -check_old_modules() {
679 - local retval="0"
680 -
681 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
682 - eerror ""
683 - eerror "Your current setup is using the pam_stack module."
684 - eerror "This module is deprecated and no longer supported, and since version"
685 - eerror "0.99 is no longer installed, nor provided by any other package."
686 - eerror "The package will be built (to allow binary package builds), but will"
687 - eerror "not be installed."
688 - eerror "Please replace pam_stack usage with proper include directive usage,"
689 - eerror "following the PAM Upgrade guide at the following URL"
690 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
691 - eerror ""
692 -
693 - retval=1
694 - fi
695 -
696 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
697 - eerror ""
698 - eerror "Your current setup is using one or more of the following modules,"
699 - eerror "that are not built or supported anymore:"
700 - eerror "pam_pwdb, pam_console"
701 - eerror "If you are in real need for these modules, please contact the maintainers"
702 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
703 - eerror "use cases."
704 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
705 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
706 - eerror ""
707 -
708 - retval=1
709 - fi
710 -
711 - return $retval
712 -}
713 -
714 -pkg_pretend() {
715 - # do not error out, this is just a warning, one could build a binpkg
716 - # with old modules enabled.
717 - check_old_modules
718 -}
719 -
720 -src_prepare() {
721 - epatch "${FILESDIR}"/${MY_P}-destdir.patch
722 - epatch "${FILESDIR}"/${MY_P}+glibc-2.16.patch
723 -
724 - eautoreconf
725 - elibtoolize
726 -}
727 -
728 -src_configure() {
729 - local myconf
730 -
731 - if use hppa || use elibc_FreeBSD; then
732 - myconf="${myconf} --disable-pie"
733 - fi
734 -
735 - # Disable automatic detection of libxcrypt; we _don't_ want the
736 - # user to link libxcrypt in by default, since we won't track the
737 - # dependency and allow to break PAM this way.
738 - export ac_cv_header_xcrypt_h=no
739 -
740 - econf \
741 - --enable-fast-install \
742 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
743 - --docdir="${EPREFIX}"/usr/share/doc/${PF} \
744 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
745 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security \
746 - --enable-isadir="${EPREFIX}"/$(get_libdir)/security \
747 - $(use_enable nls) \
748 - $(use_enable selinux) \
749 - $(use_enable cracklib) \
750 - $(use_enable audit) \
751 - $(use_enable debug) \
752 - $(use_enable berkdb db) \
753 - $(use_enable nis) \
754 - --with-db-uniquename=-$(db_findver sys-libs/db) \
755 - --disable-prelude \
756 - ${myconf}
757 -}
758 -
759 -src_compile() {
760 - emake sepermitlockdir="${EPREFIX}/run/sepermit"
761 -}
762 -
763 -src_test() {
764 - # explicitly allow parallel-build during testing
765 - emake sepermitlockdir="${EPREFIX}/run/sepermit" check
766 -}
767 -
768 -src_install() {
769 - local lib
770 -
771 - emake DESTDIR="${D}" install \
772 - sepermitlockdir="${EPREFIX}/run/sepermit"
773 -
774 - # Need to be suid
775 - fperms u+s /sbin/unix_chkpwd
776 -
777 - gen_usr_ldscript -a pam pamc pam_misc
778 -
779 - # create extra symlinks just in case something depends on them...
780 - for lib in pam pamc pam_misc; do
781 - if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then
782 - dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname)
783 - fi
784 - done
785 -
786 - dodoc CHANGELOG ChangeLog README AUTHORS Copyright NEWS
787 -
788 - docinto modules
789 - for dir in modules/pam_*; do
790 - newdoc "${dir}"/README README."$(basename "${dir}")"
791 - done
792 -
793 - # Get rid of the .la files. We certainly don't need them for PAM
794 - # modules, and libpam is installed as a shared object only, so we
795 - # don't need them for static linking either.
796 - find "${D}" -name '*.la' -delete
797 -
798 - if use selinux; then
799 - dodir /usr/lib/tmpfiles.d
800 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
801 -d /run/sepermit 0755 root root
802 -EOF
803 - fi
804 -}
805 -
806 -pkg_preinst() {
807 - check_old_modules || die "deprecated PAM modules still used"
808 -}
809 -
810 -pkg_postinst() {
811 - ewarn "Some software with pre-loaded PAM libraries might experience"
812 - ewarn "warnings or failures related to missing symbols and/or versions"
813 - ewarn "after any update. While unfortunate this is a limit of the"
814 - ewarn "implementation of PAM and the software, and it requires you to"
815 - ewarn "restart the software manually after the update."
816 - ewarn ""
817 - ewarn "You can get a list of such software running a command like"
818 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
819 - ewarn ""
820 - ewarn "Alternatively, simply reboot your system."
821 - if [ -x "${ROOT}"/var/log/tallylog ] ; then
822 - elog ""
823 - elog "Because of a bug present up to version 1.1.1-r2, you have"
824 - elog "an executable /var/log/tallylog file. You can safely"
825 - elog "correct it by running the command"
826 - elog " chmod -x /var/log/tallylog"
827 - elog ""
828 - fi
829 -}
830
831 diff --git a/sys-libs/pam/pam-1.1.8-r1.ebuild b/sys-libs/pam/pam-1.1.8-r1.ebuild
832 deleted file mode 100644
833 index 7c63473..0000000
834 --- a/sys-libs/pam/pam-1.1.8-r1.ebuild
835 +++ /dev/null
836 @@ -1,183 +0,0 @@
837 -# Copyright 1999-2014 Gentoo Foundation
838 -# Distributed under the terms of the GNU General Public License v2
839 -# $Id$
840 -
841 -EAPI=5
842 -
843 -inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use autotools-utils
844 -
845 -MY_PN="Linux-PAM"
846 -MY_P="${MY_PN}-${PV}"
847 -
848 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
849 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
850 -
851 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
852 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
853 -
854 -LICENSE="|| ( BSD GPL-2 )"
855 -SLOT="0"
856 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
857 -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
858 -
859 -RDEPEND="nls? ( virtual/libintl )
860 - cracklib? ( >=sys-libs/cracklib-2.8.3 )
861 - audit? ( sys-process/audit )
862 - selinux? ( >=sys-libs/libselinux-1.28 )
863 - berkdb? ( sys-libs/db )
864 - elibc_glibc? (
865 - >=sys-libs/glibc-2.7
866 - nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
867 - )"
868 -DEPEND="${RDEPEND}
869 - >=sys-devel/libtool-2
870 - sys-devel/flex
871 - nls? ( sys-devel/gettext )
872 - virtual/pkgconfig"
873 -PDEPEND="sys-auth/pambase
874 - vim-syntax? ( app-vim/pam-syntax )"
875 -RDEPEND="${RDEPEND}
876 - !<sys-apps/openrc-0.11.8
877 - !sys-auth/openpam
878 - !sys-auth/pam_userdb"
879 -
880 -S="${WORKDIR}/${MY_P}"
881 -
882 -check_old_modules() {
883 - local retval="0"
884 -
885 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
886 - eerror ""
887 - eerror "Your current setup is using the pam_stack module."
888 - eerror "This module is deprecated and no longer supported, and since version"
889 - eerror "0.99 is no longer installed, nor provided by any other package."
890 - eerror "The package will be built (to allow binary package builds), but will"
891 - eerror "not be installed."
892 - eerror "Please replace pam_stack usage with proper include directive usage,"
893 - eerror "following the PAM Upgrade guide at the following URL"
894 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
895 - eerror ""
896 -
897 - retval=1
898 - fi
899 -
900 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
901 - eerror ""
902 - eerror "Your current setup is using one or more of the following modules,"
903 - eerror "that are not built or supported anymore:"
904 - eerror "pam_pwdb, pam_console"
905 - eerror "If you are in real need for these modules, please contact the maintainers"
906 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
907 - eerror "use cases."
908 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
909 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
910 - eerror ""
911 -
912 - retval=1
913 - fi
914 -
915 - return $retval
916 -}
917 -
918 -pkg_pretend() {
919 - # do not error out, this is just a warning, one could build a binpkg
920 - # with old modules enabled.
921 - check_old_modules
922 -}
923 -
924 -src_prepare() {
925 - epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650
926 -
927 - elibtoolize
928 -}
929 -
930 -src_configure() {
931 - # Disable automatic detection of libxcrypt; we _don't_ want the
932 - # user to link libxcrypt in by default, since we won't track the
933 - # dependency and allow to break PAM this way.
934 - export ac_cv_header_xcrypt_h=no
935 -
936 - local myeconfargs=(
937 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
938 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
939 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
940 - --enable-isadir="${EPREFIX}"/$(get_libdir)/security
941 - $(use_enable nls)
942 - $(use_enable selinux)
943 - $(use_enable cracklib)
944 - $(use_enable audit)
945 - $(use_enable debug)
946 - $(use_enable berkdb db)
947 - $(use_enable nis)
948 - --with-db-uniquename=-$(db_findver sys-libs/db)
949 - --disable-prelude
950 - )
951 -
952 - if use hppa || use elibc_FreeBSD; then
953 - myeconfargs+=( --disable-pie )
954 - fi
955 -
956 - autotools-utils_src_configure
957 -}
958 -
959 -src_compile() {
960 - autotools-utils_src_compile sepermitlockdir="${EPREFIX}/run/sepermit"
961 -}
962 -
963 -DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
964 -
965 -src_install() {
966 - autotools-utils_src_install sepermitlockdir="${EPREFIX}/run/sepermit"
967 -
968 - # Need to be suid
969 - fperms u+s /sbin/unix_chkpwd
970 -
971 - gen_usr_ldscript -a pam pamc pam_misc
972 -
973 - # create extra symlinks just in case something depends on them...
974 - local lib
975 - for lib in pam pamc pam_misc; do
976 - if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then
977 - dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname)
978 - fi
979 - done
980 -
981 - docinto modules
982 - for dir in modules/pam_*; do
983 - newdoc "${dir}"/README README."$(basename "${dir}")"
984 - done
985 -
986 - prune_libtool_files --all
987 -
988 - if use selinux; then
989 - dodir /usr/lib/tmpfiles.d
990 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
991 -d /run/sepermit 0755 root root
992 -EOF
993 - fi
994 -}
995 -
996 -pkg_preinst() {
997 - check_old_modules || die "deprecated PAM modules still used"
998 -}
999 -
1000 -pkg_postinst() {
1001 - ewarn "Some software with pre-loaded PAM libraries might experience"
1002 - ewarn "warnings or failures related to missing symbols and/or versions"
1003 - ewarn "after any update. While unfortunate this is a limit of the"
1004 - ewarn "implementation of PAM and the software, and it requires you to"
1005 - ewarn "restart the software manually after the update."
1006 - ewarn ""
1007 - ewarn "You can get a list of such software running a command like"
1008 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
1009 - ewarn ""
1010 - ewarn "Alternatively, simply reboot your system."
1011 - if [ -x "${EROOT}"/var/log/tallylog ] ; then
1012 - elog ""
1013 - elog "Because of a bug present up to version 1.1.1-r2, you have"
1014 - elog "an executable /var/log/tallylog file. You can safely"
1015 - elog "correct it by running the command"
1016 - elog " chmod -x /var/log/tallylog"
1017 - elog ""
1018 - fi
1019 -}
1020
1021 diff --git a/sys-libs/pam/pam-1.1.8-r2.ebuild b/sys-libs/pam/pam-1.1.8-r2.ebuild
1022 deleted file mode 100644
1023 index a202896..0000000
1024 --- a/sys-libs/pam/pam-1.1.8-r2.ebuild
1025 +++ /dev/null
1026 @@ -1,198 +0,0 @@
1027 -# Copyright 1999-2014 Gentoo Foundation
1028 -# Distributed under the terms of the GNU General Public License v2
1029 -# $Id$
1030 -
1031 -EAPI=5
1032 -
1033 -inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use
1034 -
1035 -MY_PN="Linux-PAM"
1036 -MY_P="${MY_PN}-${PV}"
1037 -
1038 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
1039 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
1040 -
1041 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
1042 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
1043 -
1044 -LICENSE="|| ( BSD GPL-2 )"
1045 -SLOT="0"
1046 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
1047 -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
1048 -
1049 -RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
1050 - cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] )
1051 - audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
1052 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
1053 - berkdb? ( >=sys-libs/db-4.8.30-r1[${MULTILIB_USEDEP}] )
1054 - elibc_glibc? (
1055 - >=sys-libs/glibc-2.7
1056 - nis? ( || ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] <sys-libs/glibc-2.14 ) )
1057 - )"
1058 -DEPEND="${RDEPEND}
1059 - >=sys-devel/libtool-2
1060 - >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
1061 - nls? ( sys-devel/gettext )
1062 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
1063 -PDEPEND="sys-auth/pambase
1064 - vim-syntax? ( app-vim/pam-syntax )"
1065 -RDEPEND="${RDEPEND}
1066 - !<sys-apps/openrc-0.11.8
1067 - !sys-auth/openpam
1068 - !sys-auth/pam_userdb
1069 - abi_x86_32? (
1070 - !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
1071 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1072 - )"
1073 -
1074 -S="${WORKDIR}/${MY_P}"
1075 -
1076 -check_old_modules() {
1077 - local retval="0"
1078 -
1079 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
1080 - eerror ""
1081 - eerror "Your current setup is using the pam_stack module."
1082 - eerror "This module is deprecated and no longer supported, and since version"
1083 - eerror "0.99 is no longer installed, nor provided by any other package."
1084 - eerror "The package will be built (to allow binary package builds), but will"
1085 - eerror "not be installed."
1086 - eerror "Please replace pam_stack usage with proper include directive usage,"
1087 - eerror "following the PAM Upgrade guide at the following URL"
1088 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1089 - eerror ""
1090 -
1091 - retval=1
1092 - fi
1093 -
1094 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
1095 - eerror ""
1096 - eerror "Your current setup is using one or more of the following modules,"
1097 - eerror "that are not built or supported anymore:"
1098 - eerror "pam_pwdb, pam_console"
1099 - eerror "If you are in real need for these modules, please contact the maintainers"
1100 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
1101 - eerror "use cases."
1102 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
1103 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1104 - eerror ""
1105 -
1106 - retval=1
1107 - fi
1108 -
1109 - return $retval
1110 -}
1111 -
1112 -pkg_pretend() {
1113 - # do not error out, this is just a warning, one could build a binpkg
1114 - # with old modules enabled.
1115 - check_old_modules
1116 -}
1117 -
1118 -src_prepare() {
1119 - epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650
1120 -
1121 - elibtoolize
1122 -}
1123 -
1124 -multilib_src_configure() {
1125 - # Disable automatic detection of libxcrypt; we _don't_ want the
1126 - # user to link libxcrypt in by default, since we won't track the
1127 - # dependency and allow to break PAM this way.
1128 - export ac_cv_header_xcrypt_h=no
1129 -
1130 - local myconf=(
1131 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
1132 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
1133 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
1134 - --enable-isadir="${EPREFIX}"/$(get_libdir)/security
1135 - $(use_enable nls)
1136 - $(use_enable selinux)
1137 - $(use_enable cracklib)
1138 - $(use_enable audit)
1139 - $(use_enable debug)
1140 - $(use_enable berkdb db)
1141 - $(use_enable nis)
1142 - --with-db-uniquename=-$(db_findver sys-libs/db)
1143 - --disable-prelude
1144 - )
1145 -
1146 - if use hppa || use elibc_FreeBSD; then
1147 - myconf+=( --disable-pie )
1148 - fi
1149 -
1150 - ECONF_SOURCE=${S} \
1151 - econf "${myconf[@]}"
1152 -}
1153 -
1154 -multilib_src_compile() {
1155 - emake sepermitlockdir="${EPREFIX}/run/sepermit"
1156 -}
1157 -
1158 -multilib_src_install() {
1159 - emake DESTDIR="${D}" install \
1160 - sepermitlockdir="${EPREFIX}/run/sepermit"
1161 -
1162 - local prefix
1163 - if multilib_is_native_abi; then
1164 - prefix=
1165 - gen_usr_ldscript -a pam pamc pam_misc
1166 - else
1167 - prefix=/usr
1168 - fi
1169 -
1170 - # create extra symlinks just in case something depends on them...
1171 - local lib
1172 - for lib in pam pamc pam_misc; do
1173 - if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then
1174 - dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname)
1175 - fi
1176 - done
1177 -}
1178 -
1179 -DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
1180 -
1181 -multilib_src_install_all() {
1182 - einstalldocs
1183 - prune_libtool_files --all
1184 -
1185 - # Need to be suid
1186 - fperms u+s /sbin/unix_chkpwd
1187 -
1188 - docinto modules
1189 - for dir in modules/pam_*; do
1190 - newdoc "${dir}"/README README."$(basename "${dir}")"
1191 - done
1192 -
1193 - if use selinux; then
1194 - dodir /usr/lib/tmpfiles.d
1195 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
1196 -d /run/sepermit 0755 root root
1197 -EOF
1198 - fi
1199 -}
1200 -
1201 -pkg_preinst() {
1202 - check_old_modules || die "deprecated PAM modules still used"
1203 -}
1204 -
1205 -pkg_postinst() {
1206 - ewarn "Some software with pre-loaded PAM libraries might experience"
1207 - ewarn "warnings or failures related to missing symbols and/or versions"
1208 - ewarn "after any update. While unfortunate this is a limit of the"
1209 - ewarn "implementation of PAM and the software, and it requires you to"
1210 - ewarn "restart the software manually after the update."
1211 - ewarn ""
1212 - ewarn "You can get a list of such software running a command like"
1213 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
1214 - ewarn ""
1215 - ewarn "Alternatively, simply reboot your system."
1216 - if [[ -x "${EROOT}"/var/log/tallylog ]] ; then
1217 - elog ""
1218 - elog "Because of a bug present up to version 1.1.1-r2, you have"
1219 - elog "an executable /var/log/tallylog file. You can safely"
1220 - elog "correct it by running the command"
1221 - elog " chmod -x /var/log/tallylog"
1222 - elog ""
1223 - fi
1224 -}
1225
1226 diff --git a/sys-libs/pam/pam-1.1.8-r3.ebuild b/sys-libs/pam/pam-1.1.8-r3.ebuild
1227 deleted file mode 100644
1228 index 6f05a48..0000000
1229 --- a/sys-libs/pam/pam-1.1.8-r3.ebuild
1230 +++ /dev/null
1231 @@ -1,195 +0,0 @@
1232 -# Copyright 1999-2015 Gentoo Foundation
1233 -# Distributed under the terms of the GNU General Public License v2
1234 -# $Id$
1235 -
1236 -EAPI=5
1237 -
1238 -inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use
1239 -
1240 -MY_PN="Linux-PAM"
1241 -MY_P="${MY_PN}-${PV}"
1242 -
1243 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
1244 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
1245 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
1246 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
1247 -
1248 -LICENSE="|| ( BSD GPL-2 )"
1249 -SLOT="0"
1250 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
1251 -IUSE="audit berkdb cracklib debug nis nls +pie selinux test vim-syntax"
1252 -
1253 -RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
1254 - cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] )
1255 - audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
1256 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
1257 - berkdb? ( >=sys-libs/db-4.8.30-r1[${MULTILIB_USEDEP}] )
1258 - nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] )"
1259 -DEPEND="${RDEPEND}
1260 - >=sys-devel/libtool-2
1261 - >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
1262 - nls? ( sys-devel/gettext )
1263 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
1264 -PDEPEND="sys-auth/pambase
1265 - vim-syntax? ( app-vim/pam-syntax )"
1266 -RDEPEND="${RDEPEND}
1267 - !<sys-apps/openrc-0.11.8
1268 - !sys-auth/openpam
1269 - !sys-auth/pam_userdb
1270 - abi_x86_32? (
1271 - !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
1272 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1273 - )"
1274 -
1275 -S="${WORKDIR}/${MY_P}"
1276 -
1277 -check_old_modules() {
1278 - local retval="0"
1279 -
1280 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
1281 - eerror ""
1282 - eerror "Your current setup is using the pam_stack module."
1283 - eerror "This module is deprecated and no longer supported, and since version"
1284 - eerror "0.99 is no longer installed, nor provided by any other package."
1285 - eerror "The package will be built (to allow binary package builds), but will"
1286 - eerror "not be installed."
1287 - eerror "Please replace pam_stack usage with proper include directive usage,"
1288 - eerror "following the PAM Upgrade guide at the following URL"
1289 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1290 - eerror ""
1291 -
1292 - retval=1
1293 - fi
1294 -
1295 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
1296 - eerror ""
1297 - eerror "Your current setup is using one or more of the following modules,"
1298 - eerror "that are not built or supported anymore:"
1299 - eerror "pam_pwdb, pam_console"
1300 - eerror "If you are in real need for these modules, please contact the maintainers"
1301 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
1302 - eerror "use cases."
1303 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
1304 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1305 - eerror ""
1306 -
1307 - retval=1
1308 - fi
1309 -
1310 - return ${retval}
1311 -}
1312 -
1313 -pkg_pretend() {
1314 - # do not error out, this is just a warning, one could build a binpkg
1315 - # with old modules enabled.
1316 - check_old_modules
1317 -}
1318 -
1319 -src_prepare() {
1320 - epatch "${FILESDIR}"/${PN}-1.1.8-doc-install.patch #473650
1321 - epatch "${FILESDIR}"/${PN}-1.1.8-CVE-2013-7041.patch #493432
1322 - epatch "${FILESDIR}"/${PN}-1.1.8-CVE-2014-2583.patch #505604
1323 -
1324 - elibtoolize
1325 -}
1326 -
1327 -multilib_src_configure() {
1328 - # Disable automatic detection of libxcrypt; we _don't_ want the
1329 - # user to link libxcrypt in by default, since we won't track the
1330 - # dependency and allow to break PAM this way.
1331 - export ac_cv_header_xcrypt_h=no
1332 -
1333 - local myconf=(
1334 - --docdir='$(datarootdir)'/doc/${PF}
1335 - --htmldir='$(docdir)/html'
1336 - --libdir='$(prefix)'/$(get_libdir)
1337 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
1338 - --enable-isadir='.' #464016
1339 - $(use_enable nls)
1340 - $(use_enable selinux)
1341 - $(use_enable cracklib)
1342 - $(use_enable audit)
1343 - $(use_enable debug)
1344 - $(use_enable berkdb db)
1345 - $(use_enable nis)
1346 - $(use_enable pie)
1347 - --with-db-uniquename=-$(db_findver sys-libs/db)
1348 - --disable-prelude
1349 - )
1350 -
1351 - ECONF_SOURCE=${S} \
1352 - econf "${myconf[@]}"
1353 -}
1354 -
1355 -multilib_src_compile() {
1356 - emake sepermitlockdir="${EPREFIX}/run/sepermit"
1357 -}
1358 -
1359 -multilib_src_install() {
1360 - emake DESTDIR="${D}" install \
1361 - sepermitlockdir="${EPREFIX}/run/sepermit"
1362 -
1363 - local prefix
1364 - if multilib_is_native_abi; then
1365 - prefix=
1366 - gen_usr_ldscript -a pam pamc pam_misc
1367 - else
1368 - prefix=/usr
1369 - fi
1370 -
1371 - # create extra symlinks just in case something depends on them...
1372 - local lib
1373 - for lib in pam pamc pam_misc; do
1374 - if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then
1375 - dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname)
1376 - fi
1377 - done
1378 -}
1379 -
1380 -DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
1381 -
1382 -multilib_src_install_all() {
1383 - einstalldocs
1384 - prune_libtool_files --all
1385 -
1386 - # Need to be suid
1387 - fperms 4711 /sbin/unix_chkpwd
1388 -
1389 - docinto modules
1390 - local dir
1391 - for dir in modules/pam_*; do
1392 - newdoc "${dir}"/README README."$(basename "${dir}")"
1393 - done
1394 -
1395 - if use selinux; then
1396 - dodir /usr/lib/tmpfiles.d
1397 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
1398 -d /run/sepermit 0755 root root
1399 -EOF
1400 - fi
1401 -}
1402 -
1403 -pkg_preinst() {
1404 - check_old_modules || die "deprecated PAM modules still used"
1405 -}
1406 -
1407 -pkg_postinst() {
1408 - ewarn "Some software with pre-loaded PAM libraries might experience"
1409 - ewarn "warnings or failures related to missing symbols and/or versions"
1410 - ewarn "after any update. While unfortunate this is a limit of the"
1411 - ewarn "implementation of PAM and the software, and it requires you to"
1412 - ewarn "restart the software manually after the update."
1413 - ewarn ""
1414 - ewarn "You can get a list of such software running a command like"
1415 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
1416 - ewarn ""
1417 - ewarn "Alternatively, simply reboot your system."
1418 - if [[ -x "${EROOT}"/var/log/tallylog ]] ; then
1419 - elog ""
1420 - elog "Because of a bug present up to version 1.1.1-r2, you have"
1421 - elog "an executable /var/log/tallylog file. You can safely"
1422 - elog "correct it by running the command"
1423 - elog " chmod -x /var/log/tallylog"
1424 - elog ""
1425 - fi
1426 -}
1427
1428 diff --git a/sys-libs/pam/pam-1.1.8.ebuild b/sys-libs/pam/pam-1.1.8.ebuild
1429 deleted file mode 100644
1430 index 77ba160..0000000
1431 --- a/sys-libs/pam/pam-1.1.8.ebuild
1432 +++ /dev/null
1433 @@ -1,181 +0,0 @@
1434 -# Copyright 1999-2014 Gentoo Foundation
1435 -# Distributed under the terms of the GNU General Public License v2
1436 -# $Id$
1437 -
1438 -EAPI=5
1439 -
1440 -inherit libtool multilib eutils pam toolchain-funcs flag-o-matic db-use autotools-utils
1441 -
1442 -MY_PN="Linux-PAM"
1443 -MY_P="${MY_PN}-${PV}"
1444 -
1445 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
1446 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
1447 -
1448 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
1449 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
1450 -
1451 -LICENSE="|| ( BSD GPL-2 )"
1452 -SLOT="0"
1453 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
1454 -IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc debug berkdb nis"
1455 -
1456 -RDEPEND="nls? ( virtual/libintl )
1457 - cracklib? ( >=sys-libs/cracklib-2.8.3 )
1458 - audit? ( sys-process/audit )
1459 - selinux? ( >=sys-libs/libselinux-1.28 )
1460 - berkdb? ( sys-libs/db )
1461 - elibc_glibc? (
1462 - >=sys-libs/glibc-2.7
1463 - nis? ( || ( >=net-libs/libtirpc-0.2.2-r1 <sys-libs/glibc-2.14 ) )
1464 - )"
1465 -DEPEND="${RDEPEND}
1466 - >=sys-devel/libtool-2
1467 - sys-devel/flex
1468 - nls? ( sys-devel/gettext )
1469 - virtual/pkgconfig"
1470 -PDEPEND="sys-auth/pambase
1471 - vim-syntax? ( app-vim/pam-syntax )"
1472 -RDEPEND="${RDEPEND}
1473 - !<sys-apps/openrc-0.11.8
1474 - !sys-auth/openpam
1475 - !sys-auth/pam_userdb"
1476 -
1477 -S="${WORKDIR}/${MY_P}"
1478 -
1479 -check_old_modules() {
1480 - local retval="0"
1481 -
1482 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
1483 - eerror ""
1484 - eerror "Your current setup is using the pam_stack module."
1485 - eerror "This module is deprecated and no longer supported, and since version"
1486 - eerror "0.99 is no longer installed, nor provided by any other package."
1487 - eerror "The package will be built (to allow binary package builds), but will"
1488 - eerror "not be installed."
1489 - eerror "Please replace pam_stack usage with proper include directive usage,"
1490 - eerror "following the PAM Upgrade guide at the following URL"
1491 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1492 - eerror ""
1493 -
1494 - retval=1
1495 - fi
1496 -
1497 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
1498 - eerror ""
1499 - eerror "Your current setup is using one or more of the following modules,"
1500 - eerror "that are not built or supported anymore:"
1501 - eerror "pam_pwdb, pam_console"
1502 - eerror "If you are in real need for these modules, please contact the maintainers"
1503 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
1504 - eerror "use cases."
1505 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
1506 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1507 - eerror ""
1508 -
1509 - retval=1
1510 - fi
1511 -
1512 - return $retval
1513 -}
1514 -
1515 -pkg_pretend() {
1516 - # do not error out, this is just a warning, one could build a binpkg
1517 - # with old modules enabled.
1518 - check_old_modules
1519 -}
1520 -
1521 -src_prepare() {
1522 - elibtoolize
1523 -}
1524 -
1525 -src_configure() {
1526 - # Disable automatic detection of libxcrypt; we _don't_ want the
1527 - # user to link libxcrypt in by default, since we won't track the
1528 - # dependency and allow to break PAM this way.
1529 - export ac_cv_header_xcrypt_h=no
1530 -
1531 - local myeconfargs=(
1532 - --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
1533 - --libdir="${EPREFIX}"/usr/$(get_libdir) \
1534 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
1535 - --enable-isadir="${EPREFIX}"/$(get_libdir)/security
1536 - $(use_enable nls)
1537 - $(use_enable selinux)
1538 - $(use_enable cracklib)
1539 - $(use_enable audit)
1540 - $(use_enable debug)
1541 - $(use_enable berkdb db)
1542 - $(use_enable nis)
1543 - --with-db-uniquename=-$(db_findver sys-libs/db)
1544 - --disable-prelude
1545 - )
1546 -
1547 - if use hppa || use elibc_FreeBSD; then
1548 - myeconfargs+=( --disable-pie )
1549 - fi
1550 -
1551 - autotools-utils_src_configure
1552 -}
1553 -
1554 -src_compile() {
1555 - autotools-utils_src_compile sepermitlockdir="${EPREFIX}/run/sepermit"
1556 -}
1557 -
1558 -DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
1559 -
1560 -src_install() {
1561 - autotools-utils_src_install sepermitlockdir="${EPREFIX}/run/sepermit"
1562 -
1563 - # Need to be suid
1564 - fperms u+s /sbin/unix_chkpwd
1565 -
1566 - gen_usr_ldscript -a pam pamc pam_misc
1567 -
1568 - # create extra symlinks just in case something depends on them...
1569 - local lib
1570 - for lib in pam pamc pam_misc; do
1571 - if ! [[ -f "${ED}"/$(get_libdir)/lib${lib}$(get_libname) ]]; then
1572 - dosym lib${lib}$(get_libname 0) /$(get_libdir)/lib${lib}$(get_libname)
1573 - fi
1574 - done
1575 -
1576 - docinto modules
1577 - for dir in modules/pam_*; do
1578 - newdoc "${dir}"/README README."$(basename "${dir}")"
1579 - done
1580 -
1581 - prune_libtool_files --all
1582 -
1583 - if use selinux; then
1584 - dodir /usr/lib/tmpfiles.d
1585 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
1586 -d /run/sepermit 0755 root root
1587 -EOF
1588 - fi
1589 -}
1590 -
1591 -pkg_preinst() {
1592 - check_old_modules || die "deprecated PAM modules still used"
1593 -}
1594 -
1595 -pkg_postinst() {
1596 - ewarn "Some software with pre-loaded PAM libraries might experience"
1597 - ewarn "warnings or failures related to missing symbols and/or versions"
1598 - ewarn "after any update. While unfortunate this is a limit of the"
1599 - ewarn "implementation of PAM and the software, and it requires you to"
1600 - ewarn "restart the software manually after the update."
1601 - ewarn ""
1602 - ewarn "You can get a list of such software running a command like"
1603 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
1604 - ewarn ""
1605 - ewarn "Alternatively, simply reboot your system."
1606 - if [ -x "${ROOT}"/var/log/tallylog ] ; then
1607 - elog ""
1608 - elog "Because of a bug present up to version 1.1.1-r2, you have"
1609 - elog "an executable /var/log/tallylog file. You can safely"
1610 - elog "correct it by running the command"
1611 - elog " chmod -x /var/log/tallylog"
1612 - elog ""
1613 - fi
1614 -}
1615
1616 diff --git a/sys-libs/pam/pam-1.2.0.ebuild b/sys-libs/pam/pam-1.2.0.ebuild
1617 deleted file mode 100644
1618 index 35a62e4..0000000
1619 --- a/sys-libs/pam/pam-1.2.0.ebuild
1620 +++ /dev/null
1621 @@ -1,194 +0,0 @@
1622 -# Copyright 1999-2015 Gentoo Foundation
1623 -# Distributed under the terms of the GNU General Public License v2
1624 -# $Id$
1625 -
1626 -EAPI=5
1627 -
1628 -inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use
1629 -
1630 -MY_PN="Linux-PAM"
1631 -MY_P="${MY_PN}-${PV}"
1632 -
1633 -HOMEPAGE="https://fedorahosted.org/linux-pam/"
1634 -DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
1635 -SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2
1636 - http://www.linux-pam.org/documentation/${MY_P}-docs.tar.bz2"
1637 -
1638 -LICENSE="|| ( BSD GPL-2 )"
1639 -SLOT="0"
1640 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
1641 -IUSE="audit berkdb cracklib debug nis nls +pie selinux test vim-syntax"
1642 -
1643 -RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] )
1644 - cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] )
1645 - audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
1646 - selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
1647 - berkdb? ( >=sys-libs/db-4.8.30-r1[${MULTILIB_USEDEP}] )
1648 - nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] )"
1649 -DEPEND="${RDEPEND}
1650 - >=sys-devel/libtool-2
1651 - >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
1652 - nls? ( sys-devel/gettext )
1653 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
1654 -PDEPEND="sys-auth/pambase
1655 - vim-syntax? ( app-vim/pam-syntax )"
1656 -RDEPEND="${RDEPEND}
1657 - !<sys-apps/openrc-0.11.8
1658 - !sys-auth/openpam
1659 - !sys-auth/pam_userdb
1660 - abi_x86_32? (
1661 - !<=app-emulation/emul-linux-x86-baselibs-20140508-r7
1662 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
1663 - )"
1664 -
1665 -S="${WORKDIR}/${MY_P}"
1666 -
1667 -check_old_modules() {
1668 - local retval="0"
1669 -
1670 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then
1671 - eerror ""
1672 - eerror "Your current setup is using the pam_stack module."
1673 - eerror "This module is deprecated and no longer supported, and since version"
1674 - eerror "0.99 is no longer installed, nor provided by any other package."
1675 - eerror "The package will be built (to allow binary package builds), but will"
1676 - eerror "not be installed."
1677 - eerror "Please replace pam_stack usage with proper include directive usage,"
1678 - eerror "following the PAM Upgrade guide at the following URL"
1679 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1680 - eerror ""
1681 -
1682 - retval=1
1683 - fi
1684 -
1685 - if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then
1686 - eerror ""
1687 - eerror "Your current setup is using one or more of the following modules,"
1688 - eerror "that are not built or supported anymore:"
1689 - eerror "pam_pwdb, pam_console"
1690 - eerror "If you are in real need for these modules, please contact the maintainers"
1691 - eerror "of PAM through https://bugs.gentoo.org/ providing information about its"
1692 - eerror "use cases."
1693 - eerror "Please also make sure to read the PAM Upgrade guide at the following URL:"
1694 - eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml"
1695 - eerror ""
1696 -
1697 - retval=1
1698 - fi
1699 -
1700 - return ${retval}
1701 -}
1702 -
1703 -pkg_pretend() {
1704 - # do not error out, this is just a warning, one could build a binpkg
1705 - # with old modules enabled.
1706 - check_old_modules
1707 -}
1708 -
1709 -src_prepare() {
1710 - elibtoolize
1711 -}
1712 -
1713 -multilib_src_configure() {
1714 - # Do not let user's BROWSER setting mess us up. #549684
1715 - unset BROWSER
1716 -
1717 - # Disable automatic detection of libxcrypt; we _don't_ want the
1718 - # user to link libxcrypt in by default, since we won't track the
1719 - # dependency and allow to break PAM this way.
1720 - export ac_cv_header_xcrypt_h=no
1721 -
1722 - local myconf=(
1723 - --docdir='$(datarootdir)'/doc/${PF}
1724 - --htmldir='$(docdir)/html'
1725 - --libdir='$(prefix)'/$(get_libdir)
1726 - --enable-securedir="${EPREFIX}"/$(get_libdir)/security
1727 - --enable-isadir='.' #464016
1728 - $(use_enable nls)
1729 - $(use_enable selinux)
1730 - $(use_enable cracklib)
1731 - $(use_enable audit)
1732 - $(use_enable debug)
1733 - $(use_enable berkdb db)
1734 - $(use_enable nis)
1735 - $(use_enable pie)
1736 - --with-db-uniquename=-$(db_findver sys-libs/db)
1737 - --disable-prelude
1738 - )
1739 -
1740 - ECONF_SOURCE=${S} \
1741 - econf "${myconf[@]}"
1742 -}
1743 -
1744 -multilib_src_compile() {
1745 - emake sepermitlockdir="${EPREFIX}/run/sepermit"
1746 -}
1747 -
1748 -multilib_src_install() {
1749 - emake DESTDIR="${D}" install \
1750 - sepermitlockdir="${EPREFIX}/run/sepermit"
1751 -
1752 - local prefix
1753 - if multilib_is_native_abi; then
1754 - prefix=
1755 - gen_usr_ldscript -a pam pamc pam_misc
1756 - else
1757 - prefix=/usr
1758 - fi
1759 -
1760 - # create extra symlinks just in case something depends on them...
1761 - local lib
1762 - for lib in pam pamc pam_misc; do
1763 - if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then
1764 - dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname)
1765 - fi
1766 - done
1767 -}
1768 -
1769 -DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS )
1770 -
1771 -multilib_src_install_all() {
1772 - einstalldocs
1773 - prune_libtool_files --all
1774 -
1775 - # Need to be suid
1776 - fperms 4711 /sbin/unix_chkpwd
1777 -
1778 - docinto modules
1779 - local dir
1780 - for dir in modules/pam_*; do
1781 - newdoc "${dir}"/README README."$(basename "${dir}")"
1782 - done
1783 -
1784 - if use selinux; then
1785 - dodir /usr/lib/tmpfiles.d
1786 - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF
1787 -d /run/sepermit 0755 root root
1788 -EOF
1789 - fi
1790 -}
1791 -
1792 -pkg_preinst() {
1793 - check_old_modules || die "deprecated PAM modules still used"
1794 -}
1795 -
1796 -pkg_postinst() {
1797 - ewarn "Some software with pre-loaded PAM libraries might experience"
1798 - ewarn "warnings or failures related to missing symbols and/or versions"
1799 - ewarn "after any update. While unfortunate this is a limit of the"
1800 - ewarn "implementation of PAM and the software, and it requires you to"
1801 - ewarn "restart the software manually after the update."
1802 - ewarn ""
1803 - ewarn "You can get a list of such software running a command like"
1804 - ewarn " lsof / | egrep -i 'del.*libpam\\.so'"
1805 - ewarn ""
1806 - ewarn "Alternatively, simply reboot your system."
1807 - if [[ -x "${EROOT}"/var/log/tallylog ]] ; then
1808 - elog ""
1809 - elog "Because of a bug present up to version 1.1.1-r2, you have"
1810 - elog "an executable /var/log/tallylog file. You can safely"
1811 - elog "correct it by running the command"
1812 - elog " chmod -x /var/log/tallylog"
1813 - elog ""
1814 - fi
1815 -}