From 5d5b0e27ed33330cca5636eb792368fbbf46774c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Mar 2024 17:41:24 +0000 Subject: gentoo auto-resync : 01:03:2024 - 17:41:24 --- dev-libs/Manifest.gz | Bin 98021 -> 98021 bytes dev-libs/libpwquality/Manifest | 1 + dev-libs/libpwquality/libpwquality-1.4.5-r1.ebuild | 74 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 dev-libs/libpwquality/libpwquality-1.4.5-r1.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index 18345633f6f8..04906ebe9aa8 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/libpwquality/Manifest b/dev-libs/libpwquality/Manifest index 8537d71d6cb6..88305951cf9d 100644 --- a/dev-libs/libpwquality/Manifest +++ b/dev-libs/libpwquality/Manifest @@ -1,4 +1,5 @@ AUX libpwquality-1.4.4-pam_pwquality-include.patch 1208 BLAKE2B d7899e6caeb8a1f4515026165d9a321e0a7840b45e4f2472a8562f7a88e35c80f7295349491f3a0037da1ff12e7c74e99236c4ef1d3334fbc477bf393bf3954b SHA512 e570c7f036a1182e43c63b852040468b0dd45ca115ff98f62bc4d3bba02b0c368cd9b1e857e39ea5fcd0b74b265cc7baea529359593512d896f65c6b658afd27 DIST libpwquality-1.4.5.tar.bz2 433961 BLAKE2B f5326996ab607bf9d24de446d9714987ad259fd2222bc54983769abc298969e2e9a4cee78f2a5c5d963bd0e5f57ea3aa346b0ce108b465a8da82810486b37e36 SHA512 91a6febbf40047e553b6051df727857df7932c816638f15118a46b8286527a80446ca4f6a050d2b1f4e33335bf4b75290751ce358fa477cb9d06fe89a450d647 +EBUILD libpwquality-1.4.5-r1.ebuild 1708 BLAKE2B 98900974eb47ff971685302d0ba67cfbf1bc9b1b5f00c9303218274706383ebda230f90ab6b031613906757bc064fd3bda3140dc5ada0e4454ddaf7eefb1c9f5 SHA512 fbb329bf9c15d92b976eaae66048b2fa7bee0b9f862eeba98d21b7b650ccb89b9edaa8c7edad3d08d9e5b9b9c91d74a2f908a6deceec5e6c1ef776e6e9706c44 EBUILD libpwquality-1.4.5.ebuild 2156 BLAKE2B e2233a02327bc329067c7182b515ef5a5e550382a9bbfedc59793287d6cacccde537450fed879a1bdea78fc7456e50b70161bc2836dd32c9d87cf9a7be20a474 SHA512 88a1a7014c40ef5cabe8aa2f42d0d60748015b5697b5f319f1795ce3cbddd05c2d44bdb32c6e476a25dfa5ecd563342f967aab4366ea00203ceae841b0f27387 MISC metadata.xml 354 BLAKE2B c7c1c6aad6af351f12d42c720fe4372aa0966601624454febad3d0ac2c40b069acfaae7f1c77c41546c701a8ad1e242bd715f421ed2103e9c48cc5a63d7e44fa SHA512 41ecf39d00ced11f91831aa04bbca66d0a409367ae87aab765c94dbcdfc4dd8900f707b767e2fe76ad1eaa62c33e2e571027c7e5112e799104029bb773d812df diff --git a/dev-libs/libpwquality/libpwquality-1.4.5-r1.ebuild b/dev-libs/libpwquality/libpwquality-1.4.5-r1.ebuild new file mode 100644 index 000000000000..e78148abc8f3 --- /dev/null +++ b/dev-libs/libpwquality/libpwquality-1.4.5-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit pam python-r1 + +DESCRIPTION="Library for password quality checking and generating random passwords" +HOMEPAGE="https://github.com/libpwquality/libpwquality" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" + +LICENSE="|| ( BSD GPL-2 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="pam python static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +BDEPEND=" + >=sys-devel/gettext-0.18.2 + virtual/pkgconfig +" +RDEPEND=" + >=sys-libs/cracklib-2.8:=[static-libs(+)?] + pam? ( sys-libs/pam ) + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + + if use python ; then + # bug #830397 + export SETUPTOOLS_USE_DISTUTILS=stdlib + python_copy_sources + fi +} + +src_configure() { + # Install library in /lib for pam + configuring() { + local sitedir + econf \ + --libdir="${EPREFIX}/usr/$(get_libdir)" \ + $(use_enable pam) \ + --with-securedir="${EPREFIX}/$(getpam_mod_dir)" \ + $(use_enable python python-bindings) \ + $(usex python "--with-pythonsitedir=$(use python && python_get_sitedir)" "") \ + $(use_enable static-libs static) + } + if_use_python_python_foreach_impl configuring +} + +src_compile() { + if_use_python_python_foreach_impl default +} + +src_test() { + if_use_python_python_foreach_impl default +} + +src_install() { + if_use_python_python_foreach_impl default + find "${ED}" -name '*.la' -delete || die +} + +if_use_python_python_foreach_impl() { + if use python; then + python_foreach_impl run_in_build_dir "$@" + else + "$@" + fi +} -- cgit v1.2.3