From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A3FA158089 for ; Wed, 6 Sep 2023 09:37:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C4922BC016; Wed, 6 Sep 2023 09:37:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7467C2BC016 for ; Wed, 6 Sep 2023 09:37:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AEEC6335C87 for ; Wed, 6 Sep 2023 09:37:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4804E10F2 for ; Wed, 6 Sep 2023 09:37:34 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1693993011.953ee4f236da39f306006b5a0210603079c9c20f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/passwdqc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild X-VCS-Directories: sys-auth/passwdqc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 953ee4f236da39f306006b5a0210603079c9c20f X-VCS-Branch: master Date: Wed, 6 Sep 2023 09:37:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5047dab9-d0db-4234-82f0-63d716f4b40e X-Archives-Hash: daffa6d6b0b1dc507bed724927ad64c8 commit: 953ee4f236da39f306006b5a0210603079c9c20f Author: Sam James gentoo org> AuthorDate: Wed Sep 6 09:36:26 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Sep 6 09:36:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=953ee4f2 sys-auth/passwdqc: fix library + .pc file location * CMP: =sys-auth/passwdqc-2.0.3 with sys-auth/passwdqc-2.0.3/image * FILES:-usr/lib/libpasswdqc.so * FILES:-usr/lib/pkgconfig/passwdqc.pc * FILES:+usr/lib64/libpasswdqc.so * FILES:+usr/lib64/pkgconfig/passwdqc.pc Signed-off-by: Sam James gentoo.org> sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild b/sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild new file mode 100644 index 000000000000..e93fc3fbfa78 --- /dev/null +++ b/sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pam toolchain-funcs + +DESCRIPTION="Password strength checking library (and PAM module)" +HOMEPAGE="http://www.openwall.com/passwdqc/" +SRC_URI="http://www.openwall.com/${PN}/${P}.tar.gz" + +LICENSE="Openwall BSD public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + sys-libs/pam + virtual/libcrypt:= +" +DEPEND="${RDEPEND}" + +QA_FLAGS_IGNORED=" + lib*/security/pam_passwdqc.so + usr/lib*/libpasswdqc.so.1 +" + +src_prepare() { + default + + sed -i -e 's:`uname -s`:Linux:' Makefile || die + + # Ship our own default settings + cat <<- EOF > "${S}/passwdqc.conf" + min=disabled,24,11,8,7 + max=72 + passphrase=3 + match=4 + similar=deny + random=47 + enforce=none + retry=3 + EOF + +} + +_emake() { + emake \ + SHARED_LIBDIR="/usr/$(get_libdir)" \ + DEVEL_LIBDIR="/usr/$(get_libdir)" \ + SECUREDIR="$(getpam_mod_dir)" \ + CONFDIR="/etc/security" \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + "$@" +} + +src_compile() { + _emake all +} + +src_install() { + _emake DESTDIR="${ED}" install_lib install_pam install_utils + dodoc README PLATFORMS INTERNALS +}