1 |
commit: c90c91387e66c5f7a105dbf571994c467dbe5da3 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 5 09:14:08 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 5 09:15:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c90c9138 |
7 |
|
8 |
sys-libs/cracklib: Bump to version 2.9.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/cracklib/Manifest | 1 + |
14 |
sys-libs/cracklib/cracklib-2.9.7.ebuild | 104 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 105 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/cracklib/Manifest b/sys-libs/cracklib/Manifest |
18 |
index 3efe995f608..18189ac7299 100644 |
19 |
--- a/sys-libs/cracklib/Manifest |
20 |
+++ b/sys-libs/cracklib/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST cracklib-2.9.6.tar.gz 642402 BLAKE2B 4d7a0d12d1e7101c82d03f76e073407481078747c283fe3251f947542017fff03fbc5e98505c6a7a8987a2bbcea99dab558c15b1eb8fd16755859ce5a4440ed2 SHA512 2b09672e5b412d670e7ed911ebf0c0023fe2901ea05c9c02eefb7a58a13cddbc27a65d75bb20be9f8cebf4c90a9a56dfe1a3b656dff62b1d6048f5376e671786 |
23 |
+DIST cracklib-2.9.7.tar.bz2 603630 BLAKE2B 81a45b2fb9f34da84d4fb864e1a9f67a4b22c246f1e4db1c599a555f79d560a04d95afb01a89cd3a2e0936f0e8fc51ff5ada26098c24d7af0777a94f51b82bbd SHA512 f6bf65ac092ba46ff78ddbc115692260fb76dc71219cd679d2ea935ebfb9e709fbb30259a7406743ed00dbdc415335b3ac9d9fcba1d204ea36d5eb96bf1333a2 |
24 |
|
25 |
diff --git a/sys-libs/cracklib/cracklib-2.9.7.ebuild b/sys-libs/cracklib/cracklib-2.9.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..d436f1694d5 |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/cracklib/cracklib-2.9.7.ebuild |
30 |
@@ -0,0 +1,104 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
37 |
+DISTUTILS_OPTIONAL=1 |
38 |
+ |
39 |
+inherit distutils-r1 libtool multilib-minimal toolchain-funcs |
40 |
+ |
41 |
+MY_P=${P/_} |
42 |
+DESCRIPTION="Password Checking Library" |
43 |
+HOMEPAGE="https://github.com/cracklib/cracklib/" |
44 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.bz2" |
45 |
+ |
46 |
+LICENSE="LGPL-2.1" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint" |
49 |
+IUSE="nls python static-libs zlib" |
50 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
+ |
52 |
+RDEPEND="python? ( ${PYTHON_DEPS} ) |
53 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] )" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ python? ( |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ )" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}" |
60 |
+ |
61 |
+do_python() { |
62 |
+ multilib_is_native_abi || return 0 |
63 |
+ use python || return 0 |
64 |
+ pushd python > /dev/null || die |
65 |
+ distutils-r1_src_${EBUILD_PHASE} |
66 |
+ popd > /dev/null |
67 |
+} |
68 |
+ |
69 |
+pkg_setup() { |
70 |
+ # workaround #195017 |
71 |
+ if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then |
72 |
+ eerror "Upgrade path is broken with FEATURES=unmerge-orphans" |
73 |
+ eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
74 |
+ die "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ eapply_user |
80 |
+ elibtoolize #269003 |
81 |
+ do_python |
82 |
+} |
83 |
+ |
84 |
+multilib_src_configure() { |
85 |
+ local myeconfargs=( |
86 |
+ # use /usr/lib so that the dictionary is shared between ABIs |
87 |
+ --with-default-dict='/usr/lib/cracklib_dict' |
88 |
+ --without-python |
89 |
+ $(use_enable nls) |
90 |
+ $(use_enable static-libs static) |
91 |
+ ) |
92 |
+ export ac_cv_header_zlib_h=$(usex zlib) |
93 |
+ export ac_cv_search_gzopen=$(usex zlib -lz no) |
94 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
95 |
+} |
96 |
+ |
97 |
+multilib_src_compile() { |
98 |
+ default |
99 |
+ do_python |
100 |
+} |
101 |
+ |
102 |
+multilib_src_test() { |
103 |
+ # Make sure we load the freshly built library |
104 |
+ LD_LIBRARY_PATH="${BUILD_DIR}/lib/.libs" do_python |
105 |
+} |
106 |
+ |
107 |
+python_test() { |
108 |
+ ${EPYTHON} -m unittest test_cracklib || die "Tests fail with ${EPYTHON}" |
109 |
+} |
110 |
+ |
111 |
+multilib_src_install() { |
112 |
+ default |
113 |
+ # move shared libs to / |
114 |
+ gen_usr_ldscript -a crack |
115 |
+ |
116 |
+ do_python |
117 |
+} |
118 |
+ |
119 |
+multilib_src_install_all() { |
120 |
+ einstalldocs |
121 |
+ find "${ED}" -name "*.la" -delete || die |
122 |
+ rm -r "${ED%/}"/usr/share/cracklib || die |
123 |
+ |
124 |
+ insinto /usr/share/dict |
125 |
+ doins dicts/cracklib-small |
126 |
+} |
127 |
+ |
128 |
+pkg_postinst() { |
129 |
+ if [[ ${ROOT} == "/" ]] ; then |
130 |
+ ebegin "Regenerating cracklib dictionary" |
131 |
+ create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null |
132 |
+ eend $? |
133 |
+ fi |
134 |
+} |