diff options
author | Sam James <sam@gentoo.org> | 2023-09-06 10:36:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-06 10:36:51 +0100 |
commit | 953ee4f236da39f306006b5a0210603079c9c20f (patch) | |
tree | 420d64f86c1a421fdd6a9b9b4df04fea315015c3 /sys-auth/passwdqc | |
parent | media-libs/oneVPL-intel-gpu: drop 23.2.2, 23.2.3 (diff) | |
download | gentoo-953ee4f236da39f306006b5a0210603079c9c20f.tar.gz gentoo-953ee4f236da39f306006b5a0210603079c9c20f.tar.bz2 gentoo-953ee4f236da39f306006b5a0210603079c9c20f.zip |
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 <sam@gentoo.org>
Diffstat (limited to 'sys-auth/passwdqc')
-rw-r--r-- | sys-auth/passwdqc/passwdqc-2.0.3-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
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 +} |