1 |
commit: a6e4b6a6bb797f3ddbd57f6386f8139d5abfdc4e |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 05:46:43 2016 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 05:47:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6e4b6a6 |
7 |
|
8 |
sys-libs/pam: version bump to 1.3.0 #582034 |
9 |
|
10 |
sys-libs/pam/Manifest | 2 + |
11 |
sys-libs/pam/pam-1.3.0.ebuild | 195 ++++++++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 197 insertions(+) |
13 |
|
14 |
diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest |
15 |
index 598cac7..7af91e3 100644 |
16 |
--- a/sys-libs/pam/Manifest |
17 |
+++ b/sys-libs/pam/Manifest |
18 |
@@ -1,2 +1,4 @@ |
19 |
DIST Linux-PAM-1.2.0-docs.tar.bz2 490586 SHA256 3bc9ae398f759e372dbf4065ceed2df8b1ac5ab62c6688cb5f7849ce773df2c3 SHA512 028b7f9d6b0a5cf38f063e0f82ac3d0955e1e41d77c9f3fc803363d9ea710d71366e0a91f31b418cac397bb6639442de908fa00f02cd94cf612496d1b43c7e4c WHIRLPOOL 9a329b610d840c904050b2261e5ce34ac54232b0c7d51c12ee45c9e758ab6659ea8562e032fa9815c2beab0cfa1ea455dbfbf3cdef39d30d299a8bc5286f7a14 |
20 |
DIST Linux-PAM-1.2.1.tar.bz2 1279523 SHA256 342b1211c0d3b203a7df2540a5b03a428a087bd8a48c17e49ae268f992b334d9 SHA512 4572aa1eaf5a1312410c74b5ed055b2592c5efe2bb82f59981da4e9e93555ad40aee3a89f446d9dc6c6af79efc04c33f739f66db9edc07e02479475a14e426da WHIRLPOOL 562917945b3b3a407955cc5bf5cd251ff7e257a94055d7cfbf06d5c2619b58d61624f16848de3512ddf61636ad8618315de3f7bd8e4e51b3b7d109adfa212c8a |
21 |
+DIST Linux-PAM-1.3.0-docs.tar.bz2 492805 SHA256 8610b48703f036f6755c1d2bd8bcdeaddd9d99a1631f2d7668ec69b444d972a0 SHA512 b6b8497e6a4307b3f9a2af1c74456a0577b848cbc5417fb88fabe305b67ca022a6bcf632d68faaaacc701cdcf6254ec196707551a1ea70985cdde6add68bbbfe WHIRLPOOL a98b28c020de3170f2437b396176efc900683ea2ea85cb3db48306a944595f2d371cce95ee1233a874faa1fb55a06fcbe58068da7a2cc190c93809473938c821 |
22 |
+DIST Linux-PAM-1.3.0.tar.bz2 1302820 SHA256 241aed1ef522f66ed672719ecf2205ec513fd0075ed80cda8e086a5b1a01d1bb SHA512 4a89ca4b6f4676107aca4018f7c11addf03495266b209cb11c913f8b5d191d9a1f72197715dcf2a69216b4036de88780bcbbb5a8652e386910d71ba1b6282e42 WHIRLPOOL bb8615c8296eda83a784ffd9e9fc5ad6d401f18b8769f7859a4b94f5782decdbde7a66dc5e22e960fe723943e1562b2f5fa55e64f4836188cf57a7631edb8dcb |
23 |
|
24 |
diff --git a/sys-libs/pam/pam-1.3.0.ebuild b/sys-libs/pam/pam-1.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..f4306d1 |
27 |
--- /dev/null |
28 |
+++ b/sys-libs/pam/pam-1.3.0.ebuild |
29 |
@@ -0,0 +1,195 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit libtool multilib multilib-minimal eutils pam toolchain-funcs flag-o-matic db-use fcaps |
36 |
+ |
37 |
+MY_PN="Linux-PAM" |
38 |
+MY_P="${MY_PN}-${PV}" |
39 |
+ |
40 |
+DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" |
41 |
+HOMEPAGE="http://www.linux-pam.org/ https://fedorahosted.org/linux-pam/" |
42 |
+SRC_URI="http://www.linux-pam.org/library/${MY_P}.tar.bz2 |
43 |
+ http://www.linux-pam.org/library/${MY_P}-docs.tar.bz2" |
44 |
+ |
45 |
+LICENSE="|| ( BSD GPL-2 )" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux" |
48 |
+IUSE="audit berkdb cracklib debug nis nls +pie selinux test vim-syntax" |
49 |
+ |
50 |
+RDEPEND="nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
51 |
+ cracklib? ( >=sys-libs/cracklib-2.9.1-r1[${MULTILIB_USEDEP}] ) |
52 |
+ audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] ) |
53 |
+ selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] ) |
54 |
+ berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] ) |
55 |
+ nis? ( >=net-libs/libtirpc-0.2.4-r2[${MULTILIB_USEDEP}] )" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ >=sys-devel/libtool-2 |
58 |
+ >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}] |
59 |
+ nls? ( sys-devel/gettext ) |
60 |
+ nis? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )" |
61 |
+PDEPEND="sys-auth/pambase |
62 |
+ vim-syntax? ( app-vim/pam-syntax )" |
63 |
+RDEPEND="${RDEPEND} |
64 |
+ !<sys-apps/openrc-0.11.8 |
65 |
+ !sys-auth/openpam |
66 |
+ !sys-auth/pam_userdb" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_P}" |
69 |
+ |
70 |
+check_old_modules() { |
71 |
+ local retval="0" |
72 |
+ |
73 |
+ if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q pam_stack.so; then |
74 |
+ eerror "" |
75 |
+ eerror "Your current setup is using the pam_stack module." |
76 |
+ eerror "This module is deprecated and no longer supported, and since version" |
77 |
+ eerror "0.99 is no longer installed, nor provided by any other package." |
78 |
+ eerror "The package will be built (to allow binary package builds), but will" |
79 |
+ eerror "not be installed." |
80 |
+ eerror "Please replace pam_stack usage with proper include directive usage," |
81 |
+ eerror "following the PAM Upgrade guide at the following URL" |
82 |
+ eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
83 |
+ eerror "" |
84 |
+ |
85 |
+ retval=1 |
86 |
+ fi |
87 |
+ |
88 |
+ if sed -e 's:#.*::' "${EROOT}"/etc/pam.d/* 2>/dev/null | egrep -q 'pam_(pwdb|console)'; then |
89 |
+ eerror "" |
90 |
+ eerror "Your current setup is using one or more of the following modules," |
91 |
+ eerror "that are not built or supported anymore:" |
92 |
+ eerror "pam_pwdb, pam_console" |
93 |
+ eerror "If you are in real need for these modules, please contact the maintainers" |
94 |
+ eerror "of PAM through https://bugs.gentoo.org/ providing information about its" |
95 |
+ eerror "use cases." |
96 |
+ eerror "Please also make sure to read the PAM Upgrade guide at the following URL:" |
97 |
+ eerror " https://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml" |
98 |
+ eerror "" |
99 |
+ |
100 |
+ retval=1 |
101 |
+ fi |
102 |
+ |
103 |
+ return ${retval} |
104 |
+} |
105 |
+ |
106 |
+pkg_pretend() { |
107 |
+ # do not error out, this is just a warning, one could build a binpkg |
108 |
+ # with old modules enabled. |
109 |
+ check_old_modules |
110 |
+} |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ # Fix non-POSIX shell code. |
114 |
+ # https://fedorahosted.org/linux-pam/ticket/60 |
115 |
+ sed -i \ |
116 |
+ -e '/ test /s:==:=:' \ |
117 |
+ configure || die |
118 |
+ elibtoolize |
119 |
+} |
120 |
+ |
121 |
+multilib_src_configure() { |
122 |
+ # Do not let user's BROWSER setting mess us up. #549684 |
123 |
+ unset BROWSER |
124 |
+ |
125 |
+ # Disable automatic detection of libxcrypt; we _don't_ want the |
126 |
+ # user to link libxcrypt in by default, since we won't track the |
127 |
+ # dependency and allow to break PAM this way. |
128 |
+ export ac_cv_header_xcrypt_h=no |
129 |
+ |
130 |
+ local myconf=( |
131 |
+ --docdir='$(datarootdir)'/doc/${PF} |
132 |
+ --htmldir='$(docdir)/html' |
133 |
+ --libdir='$(prefix)'/$(get_libdir) |
134 |
+ --enable-securedir="${EPREFIX}"/$(get_libdir)/security |
135 |
+ --enable-isadir='.' #464016 |
136 |
+ $(use_enable nls) |
137 |
+ $(use_enable selinux) |
138 |
+ $(use_enable cracklib) |
139 |
+ $(use_enable audit) |
140 |
+ $(use_enable debug) |
141 |
+ $(use_enable berkdb db) |
142 |
+ $(use_enable nis) |
143 |
+ $(use_enable pie) |
144 |
+ --with-db-uniquename=-$(db_findver sys-libs/db) |
145 |
+ --disable-prelude |
146 |
+ ) |
147 |
+ |
148 |
+ ECONF_SOURCE=${S} \ |
149 |
+ econf "${myconf[@]}" |
150 |
+} |
151 |
+ |
152 |
+multilib_src_compile() { |
153 |
+ emake sepermitlockdir="${EPREFIX}/run/sepermit" |
154 |
+} |
155 |
+ |
156 |
+multilib_src_install() { |
157 |
+ emake DESTDIR="${D}" install \ |
158 |
+ sepermitlockdir="${EPREFIX}/run/sepermit" |
159 |
+ |
160 |
+ local prefix |
161 |
+ if multilib_is_native_abi; then |
162 |
+ prefix= |
163 |
+ gen_usr_ldscript -a pam pamc pam_misc |
164 |
+ else |
165 |
+ prefix=/usr |
166 |
+ fi |
167 |
+ |
168 |
+ # create extra symlinks just in case something depends on them... |
169 |
+ local lib |
170 |
+ for lib in pam pamc pam_misc; do |
171 |
+ if ! [[ -f "${ED}"${prefix}/$(get_libdir)/lib${lib}$(get_libname) ]]; then |
172 |
+ dosym lib${lib}$(get_libname 0) ${prefix}/$(get_libdir)/lib${lib}$(get_libname) |
173 |
+ fi |
174 |
+ done |
175 |
+} |
176 |
+ |
177 |
+DOCS=( CHANGELOG ChangeLog README AUTHORS Copyright NEWS ) |
178 |
+ |
179 |
+multilib_src_install_all() { |
180 |
+ einstalldocs |
181 |
+ prune_libtool_files --all |
182 |
+ |
183 |
+ docinto modules |
184 |
+ local dir |
185 |
+ for dir in modules/pam_*; do |
186 |
+ newdoc "${dir}"/README README."$(basename "${dir}")" |
187 |
+ done |
188 |
+ |
189 |
+ if use selinux; then |
190 |
+ dodir /usr/lib/tmpfiles.d |
191 |
+ cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF |
192 |
+d /run/sepermit 0755 root root |
193 |
+EOF |
194 |
+ fi |
195 |
+} |
196 |
+ |
197 |
+pkg_preinst() { |
198 |
+ check_old_modules || die "deprecated PAM modules still used" |
199 |
+} |
200 |
+ |
201 |
+pkg_postinst() { |
202 |
+ ewarn "Some software with pre-loaded PAM libraries might experience" |
203 |
+ ewarn "warnings or failures related to missing symbols and/or versions" |
204 |
+ ewarn "after any update. While unfortunate this is a limit of the" |
205 |
+ ewarn "implementation of PAM and the software, and it requires you to" |
206 |
+ ewarn "restart the software manually after the update." |
207 |
+ ewarn "" |
208 |
+ ewarn "You can get a list of such software running a command like" |
209 |
+ ewarn " lsof / | egrep -i 'del.*libpam\\.so'" |
210 |
+ ewarn "" |
211 |
+ ewarn "Alternatively, simply reboot your system." |
212 |
+ if [[ -x "${EROOT}"/var/log/tallylog ]] ; then |
213 |
+ elog "" |
214 |
+ elog "Because of a bug present up to version 1.1.1-r2, you have" |
215 |
+ elog "an executable /var/log/tallylog file. You can safely" |
216 |
+ elog "correct it by running the command" |
217 |
+ elog " chmod -x /var/log/tallylog" |
218 |
+ elog "" |
219 |
+ fi |
220 |
+ |
221 |
+ # The pam_unix module needs to check the password of the user which requires |
222 |
+ # read access to /etc/shadow only. |
223 |
+ fcaps cap_dac_override sbin/unix_chkpwd |
224 |
+} |