public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/cracklib/
Date: Sun,  2 Apr 2023 21:39:47 +0000 (UTC)	[thread overview]
Message-ID: <1680471555.10a06b24412eebde4fa7593bbb7362dd3f0771bf.sam@gentoo> (raw)

commit:     10a06b24412eebde4fa7593bbb7362dd3f0771bf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  2 21:38:24 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  2 21:39:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10a06b24

sys-libs/cracklib: add 2.9.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/cracklib/Manifest               |   1 +
 sys-libs/cracklib/cracklib-2.9.11.ebuild | 130 +++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+)

diff --git a/sys-libs/cracklib/Manifest b/sys-libs/cracklib/Manifest
index 1d66101e9c18..977596906ff7 100644
--- a/sys-libs/cracklib/Manifest
+++ b/sys-libs/cracklib/Manifest
@@ -1,2 +1,3 @@
 DIST cracklib-2.9.10.tar.bz2 620648 BLAKE2B f4ebf4aea6da81424a8b9fae9c204260f6020937b6b2b02cec13527f812e1751522a47a4432ff0a2a233eeb88fe0c8b7e7fd371f611a40bf2d34a10ddfd4fe83 SHA512 0c3856833f4c58fc1ebc63cc08b189c55e8d5722ef8cdc1cad5f717cef137a83648657e005e2d0367006b27aafa1bb63e36e7998918937733816635880c85f74
+DIST cracklib-2.9.11.tar.xz 461116 BLAKE2B 46b499e465c1c268b772781a9c8ce573a5167ae2e0ac919b403acdb9a14c35140dfb53909eef6e41600e26c2f87d905b3d6d05380c66f053d091765b58a264f4 SHA512 c32e509f757344a1f0b7032ad3b6dc47a8759852a94e511c92073d85bce55f45d48c389d9eb34c993e1d61ad5c1542150672f3e8bc147148ebbb04d3319a2409
 DIST cracklib-2.9.8.tar.bz2 613017 BLAKE2B d9a5d922d6ac777b08cec9c427c0cde48666cdf67bf4136eb5866a0111b101c795dceb8e206e90bff31d1c8d26505bc1a950e8ea079562d8afd601641a7caf0c SHA512 bba1b82067156f44095b282c70c06a05e58572cde7ad2430dd24c4b42ae98be86708ea86ba8b7104aa5887e16ac90d7cf3ae613b84ab9c0f7602307d78b75371

diff --git a/sys-libs/cracklib/cracklib-2.9.11.ebuild b/sys-libs/cracklib/cracklib-2.9.11.ebuild
new file mode 100644
index 000000000000..aad59cf9265b
--- /dev/null
+++ b/sys-libs/cracklib/cracklib-2.9.11.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Note: ideally bump with sys-apps/cracklib-words
+
+DISTUTILS_OPTIONAL=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1 libtool multilib-minimal usr-ldscript
+
+MY_P=${P/_}
+DESCRIPTION="Password Checking Library"
+HOMEPAGE="https://github.com/cracklib/cracklib/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+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}] )
+"
+DEPEND="
+	${RDEPEND}
+	nls? ( virtual/libintl )
+"
+BDEPEND="
+	nls? ( sys-devel/gettext )
+	python? ( ${DISTUTILS_DEPS} )
+"
+
+distutils_enable_tests unittest
+
+pkg_setup() {
+	# Workaround bug #195017
+	if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then
+		eerror "Upgrade path is broken with FEATURES=unmerge-orphans"
+		eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib"
+		die "Please run: FEATURES=-unmerge-orphans emerge cracklib"
+	fi
+}
+
+src_prepare() {
+	default
+
+	# bug #269003
+	elibtoolize
+
+	if use python ; then
+		distutils-r1_src_prepare
+	fi
+}
+
+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)
+
+	ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+	default
+
+	if multilib_is_native_abi && use python ; then
+		local -x CFLAGS="${CFLAGS} -DLOCALEDIR='\"${EPREFIX}/usr/share/locale\"' -DDEFAULT_CRACKLIB_DICT=\'${EPREFIX}/usr/lib/cracklib_dict\'"
+		cd python || die
+		distutils-r1_src_compile
+	fi
+}
+
+multilib_src_test() {
+	default
+
+	if multilib_is_native_abi && use python ; then
+		distutils-r1_src_test
+	fi
+}
+
+python_test() {
+	cd "${S}"/python || die
+
+	# Make sure we load the freshly built library
+	local -x LD_LIBRARY_PATH="${BUILD_DIR/-${EPYTHON/./_}}/lib/.libs:${BUILD_DIR}/lib:${LD_LIBRARY_PATH}"
+
+	eunittest
+}
+
+multilib_src_install() {
+	default
+
+	# Move shared libs to /
+	gen_usr_ldscript -a crack
+
+	if multilib_is_native_abi && use python ; then
+		cd python || die
+		distutils-r1_src_install
+	fi
+}
+
+multilib_src_install_all() {
+	einstalldocs
+
+	find "${ED}" -type f -name "*.la" -delete || die
+	rm -r "${ED}"/usr/share/cracklib || die
+
+	insinto /usr/share/dict
+	doins dicts/cracklib-small
+}
+
+pkg_postinst() {
+	if [[ -z ${ROOT} ]] ; then
+		ebegin "Regenerating cracklib dictionary"
+		create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null
+		eend $?
+	fi
+}


             reply	other threads:[~2023-04-02 21:39 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02 21:39 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-30 22:09 [gentoo-commits] repo/gentoo:master commit in: sys-libs/cracklib/ Sam James
2024-10-13 11:06 Sam James
2024-10-10 11:04 Arthur Zamarin
2024-10-09  0:06 Jakov Smolić
2024-10-05 13:58 Arthur Zamarin
2024-10-05 12:10 Arthur Zamarin
2024-10-05 12:03 Arthur Zamarin
2024-10-05 11:12 Sam James
2024-08-29  2:10 Sam James
2023-07-13 17:44 Mike Gilbert
2023-06-01  3:29 Sam James
2023-04-19 11:07 Sam James
2023-04-19 10:16 Arthur Zamarin
2023-04-19 10:16 Arthur Zamarin
2023-04-19  9:49 Sam James
2023-04-19  9:49 Sam James
2023-04-19  9:45 Sam James
2023-04-19  9:43 Sam James
2023-04-19  9:43 Sam James
2023-03-16 22:01 Sam James
2022-12-26  8:35 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-11-18  3:13 Sam James
2022-09-05  1:06 Sam James
2022-05-05  2:40 WANG Xuerui
2021-05-29 19:03 David Seifert
2021-05-23 13:57 Michał Górny
2021-05-09 12:53 David Seifert
2021-01-06 15:35 Fabian Groffen
2020-12-28 17:27 Mike Gilbert
2020-12-27 18:20 Fabian Groffen
2020-05-07 17:58 Michał Górny
2019-12-09  3:05 Matt Turner
2019-12-03 10:21 Agostino Sarubbo
2019-12-02  9:56 Mikle Kolyada
2019-12-02  9:56 Mikle Kolyada
2019-12-02  9:56 Mikle Kolyada
2019-12-02  9:56 Mikle Kolyada
2019-12-02  0:19 Aaron Bauman
2019-12-01 15:38 Thomas Deutschmann
2019-12-01 14:31 Agostino Sarubbo
2019-12-01 14:01 Sergei Trofimovich
2019-12-01 13:56 Sergei Trofimovich
2019-12-01 11:42 Sergei Trofimovich
2019-12-01 11:35 Sergei Trofimovich
2019-11-30 15:04 Thomas Deutschmann
2019-05-04 22:19 Andreas K. Hüttel
2019-05-04 11:16 Mikle Kolyada
2019-03-05  9:16 Lars Wendler
2019-02-23 11:07 Lars Wendler
2017-05-29 18:45 Mike Gilbert
2017-05-29 18:45 Mike Gilbert
2017-05-29 18:09 Mike Gilbert
2017-05-26 22:54 David Seifert
2017-01-29 20:14 Fabian Groffen
2016-12-07  8:32 Mike Frysinger
2016-12-07  8:32 Mike Frysinger
2016-09-29 13:28 Agostino Sarubbo
2016-09-29 12:35 Agostino Sarubbo
2016-09-29  9:35 Agostino Sarubbo
2016-09-29  8:40 Agostino Sarubbo
2016-09-24 19:18 Markus Meier
2016-09-19 13:32 Jeroen Roovers
2016-09-16 17:15 Tobias Klausmann
2016-09-16  8:39 Agostino Sarubbo
2016-06-04  4:52 Markus Meier
2016-05-27 12:46 Lars Wendler
2016-05-26 20:05 Lars Wendler
2016-05-25  6:29 Matt Turner
2016-05-25  5:25 Jeroen Roovers
2015-08-19  2:43 Mike Frysinger
2015-08-19  2:43 Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1680471555.10a06b24412eebde4fa7593bbb7362dd3f0771bf.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox