summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-09-05 22:02:29 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-09-05 22:03:40 +0300
commitf6fc3feb0f9cab3fe82f8a656f9d084d655951b3 (patch)
tree325ea585809dab3014eded41d71df60513cd5502 /sys-auth/passwdqc
parentmedia-libs/x264: Set special value of AS to fix build failure. (diff)
downloadgentoo-f6fc3feb0f9cab3fe82f8a656f9d084d655951b3.tar.gz
gentoo-f6fc3feb0f9cab3fe82f8a656f9d084d655951b3.tar.bz2
gentoo-f6fc3feb0f9cab3fe82f8a656f9d084d655951b3.zip
sys-auth/passwdqc: ship our own config file
And also install the config file into the /etc/security dir Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-auth/passwdqc')
-rw-r--r--sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild (renamed from sys-auth/passwdqc/passwdqc-1.4.0.ebuild)14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-auth/passwdqc/passwdqc-1.4.0.ebuild b/sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild
index 8a292a46e9f3..3861096f8540 100644
--- a/sys-auth/passwdqc/passwdqc-1.4.0.ebuild
+++ b/sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild
@@ -24,12 +24,26 @@ pkg_setup() {
src_prepare() {
default
sed -i -e 's:`uname -s`:Linux:' Makefile || die
+
+ # ship our own default settings
+ cat <<- EOF > "${S}/passwdqc.conf"
+ min=8,8,8,8,8
+ max=40
+ passphrase=3
+ match=4
+ similar=deny
+ random=47
+ enforce=everyone
+ retry=3
+ EOF
+
}
_emake() {
emake -j1 \
SHARED_LIBDIR="/usr/$(get_libdir)" \
SECUREDIR="$(getpam_mod_dir)" \
+ CONFDIR="/etc/security" \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CC="$(tc-getCC)" \