Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/passwdqc/
Date: Sat, 05 Sep 2020 19:03:47
Message-Id: 1599332620.f6fc3feb0f9cab3fe82f8a656f9d084d655951b3.zlogene@gentoo
1 commit: f6fc3feb0f9cab3fe82f8a656f9d084d655951b3
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 5 19:02:29 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 5 19:03:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6fc3feb
7
8 sys-auth/passwdqc: ship our own config file
9
10 And also install the config file into the /etc/security dir
11
12 Package-Manager: Portage-3.0.4, Repoman-2.3.23
13 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
14
15 .../{passwdqc-1.4.0.ebuild => passwdqc-1.4.0-r1.ebuild} | 14 ++++++++++++++
16 1 file changed, 14 insertions(+)
17
18 diff --git a/sys-auth/passwdqc/passwdqc-1.4.0.ebuild b/sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild
19 similarity index 83%
20 rename from sys-auth/passwdqc/passwdqc-1.4.0.ebuild
21 rename to sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild
22 index 8a292a46e9f..3861096f854 100644
23 --- a/sys-auth/passwdqc/passwdqc-1.4.0.ebuild
24 +++ b/sys-auth/passwdqc/passwdqc-1.4.0-r1.ebuild
25 @@ -24,12 +24,26 @@ pkg_setup() {
26 src_prepare() {
27 default
28 sed -i -e 's:`uname -s`:Linux:' Makefile || die
29 +
30 + # ship our own default settings
31 + cat <<- EOF > "${S}/passwdqc.conf"
32 + min=8,8,8,8,8
33 + max=40
34 + passphrase=3
35 + match=4
36 + similar=deny
37 + random=47
38 + enforce=everyone
39 + retry=3
40 + EOF
41 +
42 }
43
44 _emake() {
45 emake -j1 \
46 SHARED_LIBDIR="/usr/$(get_libdir)" \
47 SECUREDIR="$(getpam_mod_dir)" \
48 + CONFDIR="/etc/security" \
49 CFLAGS="${CFLAGS} ${CPPFLAGS}" \
50 LDFLAGS="${LDFLAGS}" \
51 CC="$(tc-getCC)" \