1 |
commit: 984a584347a9fac32dee851598c699f2c0bfc0b2 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 23 11:07:08 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 23 11:07:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=984a5843 |
7 |
|
8 |
sys-libs/cracklib: Revbump to EAPI-6. Removed old. |
9 |
|
10 |
- Added source tarball with pre-generated configure script to my |
11 |
dev space and put that into SRC_URI to avoid eautoreconf call |
12 |
- Added sub-slot dep for sys-libs/zlib |
13 |
|
14 |
Committed straight to stable. |
15 |
|
16 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
17 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
18 |
|
19 |
...ib-2.9.6-r1.ebuild => cracklib-2.9.6-r2.ebuild} | 45 +++++++++++++--------- |
20 |
1 file changed, 26 insertions(+), 19 deletions(-) |
21 |
|
22 |
diff --git a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild b/sys-libs/cracklib/cracklib-2.9.6-r2.ebuild |
23 |
similarity index 68% |
24 |
rename from sys-libs/cracklib/cracklib-2.9.6-r1.ebuild |
25 |
rename to sys-libs/cracklib/cracklib-2.9.6-r2.ebuild |
26 |
index 101aef42295..34d81481f3b 100644 |
27 |
--- a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild |
28 |
+++ b/sys-libs/cracklib/cracklib-2.9.6-r2.ebuild |
29 |
@@ -1,17 +1,19 @@ |
30 |
-# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
|
34 |
-EAPI=5 |
35 |
+EAPI=6 |
36 |
|
37 |
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
38 |
DISTUTILS_OPTIONAL=1 |
39 |
|
40 |
-inherit eutils distutils-r1 libtool multilib-minimal toolchain-funcs |
41 |
+inherit distutils-r1 libtool multilib-minimal toolchain-funcs |
42 |
|
43 |
MY_P=${P/_} |
44 |
DESCRIPTION="Password Checking Library" |
45 |
HOMEPAGE="https://github.com/cracklib/cracklib/" |
46 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" |
47 |
+# source tarballs on GitHub lack pre-generated configure script. |
48 |
+#SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.gz" |
50 |
|
51 |
LICENSE="LGPL-2.1" |
52 |
SLOT="0" |
53 |
@@ -20,13 +22,18 @@ IUSE="nls python static-libs zlib" |
54 |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
55 |
|
56 |
RDEPEND="python? ( ${PYTHON_DEPS} ) |
57 |
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )" |
58 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] )" |
59 |
DEPEND="${RDEPEND} |
60 |
python? ( |
61 |
dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
)" |
63 |
|
64 |
-S=${WORKDIR}/${MY_P} |
65 |
+S="${WORKDIR}/${MY_P}" |
66 |
+ |
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}"/cracklib-2.9.6-CVE-2016-6318.patch |
69 |
+ "${FILESDIR}"/cracklib-2.9.6-fix-long-word-bufferoverflow.patch |
70 |
+) |
71 |
|
72 |
do_python() { |
73 |
multilib_is_native_abi || return 0 |
74 |
@@ -46,23 +53,23 @@ pkg_setup() { |
75 |
} |
76 |
|
77 |
src_prepare() { |
78 |
- epatch "${FILESDIR}"/cracklib-2.9.6-CVE-2016-6318.patch |
79 |
- epatch "${FILESDIR}"/cracklib-2.9.6-fix-long-word-bufferoverflow.patch |
80 |
- |
81 |
+ eapply -p2 "${PATCHES[@]}" |
82 |
+ eapply_user |
83 |
elibtoolize #269003 |
84 |
do_python |
85 |
} |
86 |
|
87 |
multilib_src_configure() { |
88 |
+ local myeconfargs=( |
89 |
+ # use /usr/lib so that the dictionary is shared between ABIs |
90 |
+ --with-default-dict='/usr/lib/cracklib_dict' |
91 |
+ --without-python |
92 |
+ $(use_enable nls) |
93 |
+ $(use_enable static-libs static) |
94 |
+ ) |
95 |
export ac_cv_header_zlib_h=$(usex zlib) |
96 |
export ac_cv_search_gzopen=$(usex zlib -lz no) |
97 |
- # use /usr/lib so that the dictionary is shared between ABIs |
98 |
- ECONF_SOURCE=${S} \ |
99 |
- econf \ |
100 |
- --with-default-dict='/usr/lib/cracklib_dict' \ |
101 |
- --without-python \ |
102 |
- $(use_enable nls) \ |
103 |
- $(use_enable static-libs static) |
104 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
105 |
} |
106 |
|
107 |
multilib_src_compile() { |
108 |
@@ -89,11 +96,11 @@ multilib_src_install() { |
109 |
|
110 |
multilib_src_install_all() { |
111 |
einstalldocs |
112 |
- prune_libtool_files |
113 |
- rm -r "${ED}"/usr/share/cracklib |
114 |
+ find "${ED}" -name "*.la" -delete || die |
115 |
+ rm -r "${ED%/}"/usr/share/cracklib || die |
116 |
|
117 |
insinto /usr/share/dict |
118 |
- doins dicts/cracklib-small || die |
119 |
+ doins dicts/cracklib-small |
120 |
} |
121 |
|
122 |
pkg_postinst() { |