1 |
commit: da1c63d8d7a5ba77d2b557f6fe8501a6e930b1c4 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 18 18:23:01 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 18 18:24:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da1c63d8 |
7 |
|
8 |
sys-libs/pam: revbump to fix build failure |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sys-libs/pam/pam-1.3.1-r1.ebuild | 127 +++++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 127 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/pam/pam-1.3.1-r1.ebuild b/sys-libs/pam/pam-1.3.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0586ce6ab7a |
19 |
--- /dev/null |
20 |
+++ b/sys-libs/pam/pam-1.3.1-r1.ebuild |
21 |
@@ -0,0 +1,127 @@ |
22 |
+# Copyright 1999-2018 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit autotools db-use fcaps multilib-minimal toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
30 |
+HOMEPAGE="https://github.com/linux-pam/linux-pam" |
31 |
+SRC_URI="https://github.com/linux-pam/linux-pam/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="|| ( BSD GPL-2 )" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
36 |
+IUSE="audit berkdb +cracklib debug nis nls +pie selinux static-libs" |
37 |
+ |
38 |
+DEPEND="app-text/docbook-xml-dtd:4.3 |
39 |
+ app-text/docbook-xml-dtd:4.4 |
40 |
+ app-text/docbook-xml-dtd:4.5 |
41 |
+ dev-libs/libxslt |
42 |
+ nls? ( sys-devel/gettext )" |
43 |
+ |
44 |
+RDEPEND="${DEPEND} |
45 |
+ audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] ) |
46 |
+ berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] ) |
47 |
+ cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] ) |
48 |
+ selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
49 |
+ nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] ) |
50 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
51 |
+ !<sys-apps/openrc-0.11.8 |
52 |
+ !sys-auth/openpam |
53 |
+ !sys-auth/pam_userdb" |
54 |
+ |
55 |
+BDEPEND="virtual/pkgconfig" |
56 |
+ |
57 |
+PDEPEND="sys-auth/pambase" |
58 |
+ |
59 |
+S="${WORKDIR}/linux-${P}" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ eapply "${FILESDIR}/${PN}-remove-browsers.patch" |
64 |
+ touch ChangeLog || die |
65 |
+ eautoreconf |
66 |
+} |
67 |
+ |
68 |
+multilib_src_configure() { |
69 |
+ # Do not let user's BROWSER setting mess us up. #549684 |
70 |
+ unset BROWSER |
71 |
+ |
72 |
+ # Disable automatic detection of libxcrypt; we _don't_ want the |
73 |
+ # user to link libxcrypt in by default, since we won't track the |
74 |
+ # dependency and allow to break PAM this way. |
75 |
+ |
76 |
+ export ac_cv_header_xcrypt_h=no |
77 |
+ |
78 |
+ local myconf=( |
79 |
+ --with-db-uniquename=-$(db_findver sys-libs/db) |
80 |
+ --enable-securedir="${EPREFIX}"/$(get_libdir)/security |
81 |
+ --libdir=/usr/$(get_libdir) |
82 |
+ --disable-prelude |
83 |
+ $(use_enable audit) |
84 |
+ $(use_enable berkdb db) |
85 |
+ $(use_enable cracklib) |
86 |
+ $(use_enable debug) |
87 |
+ $(use_enable nis) |
88 |
+ $(use_enable nls) |
89 |
+ $(use_enable pie) |
90 |
+ $(use_enable selinux) |
91 |
+ $(use_enable static-libs static) |
92 |
+ --enable-isadir='.' #464016 |
93 |
+ ) |
94 |
+ ECONF_SOURCE="${S}" econf ${myconf[@]} |
95 |
+} |
96 |
+ |
97 |
+multilib_src_compile() { |
98 |
+ emake sepermitlockdir="${EPREFIX}/run/sepermit" |
99 |
+} |
100 |
+ |
101 |
+multilib_src_install() { |
102 |
+ emake DESTDIR="${D}" install \ |
103 |
+ sepermitlockdir="${EPREFIX}/run/sepermit" |
104 |
+ |
105 |
+ local prefix |
106 |
+ if multilib_is_native_abi; then |
107 |
+ prefix= |
108 |
+ gen_usr_ldscript -a pam pamc pam_misc |
109 |
+ else |
110 |
+ prefix=/usr |
111 |
+ fi |
112 |
+ |
113 |
+ # create extra symlinks just in case something depends on them... |
114 |
+ local lib |
115 |
+ for lib in pam pamc pam_misc; do |
116 |
+ if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then |
117 |
+ dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname) |
118 |
+ fi |
119 |
+ done |
120 |
+} |
121 |
+ |
122 |
+multilib_src_install_all() { |
123 |
+ find "${ED}" -type f -name '*.la' -delete || die |
124 |
+ |
125 |
+ if use selinux; then |
126 |
+ dodir /usr/lib/tmpfiles.d |
127 |
+ cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF |
128 |
+d /run/sepermit 0755 root root |
129 |
+EOF |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ ewarn "Some software with pre-loaded PAM libraries might experience" |
135 |
+ ewarn "warnings or failures related to missing symbols and/or versions" |
136 |
+ ewarn "after any update. While unfortunate this is a limit of the" |
137 |
+ ewarn "implementation of PAM and the software, and it requires you to" |
138 |
+ ewarn "restart the software manually after the update." |
139 |
+ ewarn "" |
140 |
+ ewarn "You can get a list of such software running a command like" |
141 |
+ ewarn " lsof / | egrep -i 'del.*libpam\\.so'" |
142 |
+ ewarn "" |
143 |
+ ewarn "Alternatively, simply reboot your system." |
144 |
+ |
145 |
+ # The pam_unix module needs to check the password of the user which requires |
146 |
+ # read access to /etc/shadow only. |
147 |
+ fcaps cap_dac_override sbin/unix_chkpwd |
148 |
+} |