diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2021-04-10 14:20:51 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2021-04-10 14:22:31 +0300 |
commit | 03a1a284307593285b7b3351b667703da2c78115 (patch) | |
tree | 5132aa60565a01efc6c5876d16ae1c43ac68454c /sys-auth/passwdqc/passwdqc-2.0.2.ebuild | |
parent | dev-java/slf4j-simple: remove test restiction (diff) | |
download | gentoo-03a1a284307593285b7b3351b667703da2c78115.tar.gz gentoo-03a1a284307593285b7b3351b667703da2c78115.tar.bz2 gentoo-03a1a284307593285b7b3351b667703da2c78115.zip |
sys-auth/passwdqc: Version bump (v2.0.2)
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-auth/passwdqc/passwdqc-2.0.2.ebuild')
-rw-r--r-- | sys-auth/passwdqc/passwdqc-2.0.2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-auth/passwdqc/passwdqc-2.0.2.ebuild b/sys-auth/passwdqc/passwdqc-2.0.2.ebuild new file mode 100644 index 000000000000..786e12917d1a --- /dev/null +++ b/sys-auth/passwdqc/passwdqc-2.0.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND="sys-libs/pam" +DEPEND="${RDEPEND}" + +pkg_setup() { + QA_FLAGS_IGNORED="/$(get_libdir)/security/pam_passwdqc.so + /usr/$(get_libdir)/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=everyone + retry=3 + EOF + +} + +_emake() { + emake \ + SHARED_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 +} |