summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-02-23 12:07:08 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-02-23 12:07:08 +0100
commit984a584347a9fac32dee851598c699f2c0bfc0b2 (patch)
tree18451629c6fec5c9ba9927f94c2ac7e7091271ac /sys-libs/cracklib
parentapp-admin/gkrellm: Added sub-slot dep for sys-apps/lm_sensors (diff)
downloadgentoo-984a584347a9fac32dee851598c699f2c0bfc0b2.tar.gz
gentoo-984a584347a9fac32dee851598c699f2c0bfc0b2.tar.bz2
gentoo-984a584347a9fac32dee851598c699f2c0bfc0b2.zip
sys-libs/cracklib: Revbump to EAPI-6. Removed old.
- Added source tarball with pre-generated configure script to my dev space and put that into SRC_URI to avoid eautoreconf call - Added sub-slot dep for sys-libs/zlib Committed straight to stable. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-libs/cracklib')
-rw-r--r--sys-libs/cracklib/cracklib-2.9.6-r2.ebuild (renamed from sys-libs/cracklib/cracklib-2.9.6-r1.ebuild)45
1 files changed, 26 insertions, 19 deletions
diff --git a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild b/sys-libs/cracklib/cracklib-2.9.6-r2.ebuild
index 101aef422958..34d81481f3b1 100644
--- a/sys-libs/cracklib/cracklib-2.9.6-r1.ebuild
+++ b/sys-libs/cracklib/cracklib-2.9.6-r2.ebuild
@@ -1,17 +1,19 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
DISTUTILS_OPTIONAL=1
-inherit eutils distutils-r1 libtool multilib-minimal toolchain-funcs
+inherit distutils-r1 libtool multilib-minimal toolchain-funcs
MY_P=${P/_}
DESCRIPTION="Password Checking Library"
HOMEPAGE="https://github.com/cracklib/cracklib/"
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
+# source tarballs on GitHub lack pre-generated configure script.
+#SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
@@ -20,13 +22,18 @@ IUSE="nls python static-libs zlib"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="python? ( ${PYTHON_DEPS} )
- zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+ zlib? ( >=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] )"
DEPEND="${RDEPEND}
python? (
dev-python/setuptools[${PYTHON_USEDEP}]
)"
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/cracklib-2.9.6-CVE-2016-6318.patch
+ "${FILESDIR}"/cracklib-2.9.6-fix-long-word-bufferoverflow.patch
+)
do_python() {
multilib_is_native_abi || return 0
@@ -46,23 +53,23 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}"/cracklib-2.9.6-CVE-2016-6318.patch
- epatch "${FILESDIR}"/cracklib-2.9.6-fix-long-word-bufferoverflow.patch
-
+ eapply -p2 "${PATCHES[@]}"
+ eapply_user
elibtoolize #269003
do_python
}
multilib_src_configure() {
+ local myeconfargs=(
+ # use /usr/lib so that the dictionary is shared between ABIs
+ --with-default-dict='/usr/lib/cracklib_dict'
+ --without-python
+ $(use_enable nls)
+ $(use_enable static-libs static)
+ )
export ac_cv_header_zlib_h=$(usex zlib)
export ac_cv_search_gzopen=$(usex zlib -lz no)
- # use /usr/lib so that the dictionary is shared between ABIs
- ECONF_SOURCE=${S} \
- econf \
- --with-default-dict='/usr/lib/cracklib_dict' \
- --without-python \
- $(use_enable nls) \
- $(use_enable static-libs static)
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_compile() {
@@ -89,11 +96,11 @@ multilib_src_install() {
multilib_src_install_all() {
einstalldocs
- prune_libtool_files
- rm -r "${ED}"/usr/share/cracklib
+ find "${ED}" -name "*.la" -delete || die
+ rm -r "${ED%/}"/usr/share/cracklib || die
insinto /usr/share/dict
- doins dicts/cracklib-small || die
+ doins dicts/cracklib-small
}
pkg_postinst() {