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/pambase/
Date: Mon, 01 Feb 2021 19:08:04
Message-Id: 1612206478.b922c43af50829b2c72123d9cd5eb49eb45aa190.zlogene@gentoo
1 commit: b922c43af50829b2c72123d9cd5eb49eb45aa190
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 19:07:29 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 19:07:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b922c43a
7
8 sys-auth/pambase: Version bump (v0210201)
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 sys-auth/pambase/Manifest | 1 +
14 sys-auth/pambase/pambase-20210201.ebuild | 109 +++++++++++++++++++++++++++++++
15 2 files changed, 110 insertions(+)
16
17 diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest
18 index 4f9960bdc94..ab10cf4ed30 100644
19 --- a/sys-auth/pambase/Manifest
20 +++ b/sys-auth/pambase/Manifest
21 @@ -1 +1,2 @@
22 DIST pambase-20201103.tar.gz 3295 BLAKE2B 7e104b5342842a21e10dce6e5c5a2d330ec06146b4791b888518463d915eebefbd694a809ff676b32c9c43945087935dc5c3496ae93ac17b7e4fd4e2e2974d1a SHA512 b94e47780f45c5e897b5fd073ce2184a901d241d51516ac5007658b1ae423d0f34c37a09a9e1d055962aa7158675ea7740dfe6466fad5e4a1b50b66a0812f51d
23 +DIST pambase-20210201.tar.gz 3346 BLAKE2B fd9183ec91062b88ab0f013a955fcadfe48c105a2e31838a6a89b2e5a58313ba3376971567288d609ad6f080743e587e5787ee307589b890a397969bab42e108 SHA512 0a45415284c64c706b30fc0e75c4c541d897e8876f0bd04e28cf73cc2a907e2ed48bed6472e355572a5a9cfb5508666312f225fcdedc370380fadac2077fef3d
24
25 diff --git a/sys-auth/pambase/pambase-20210201.ebuild b/sys-auth/pambase/pambase-20210201.ebuild
26 new file mode 100644
27 index 00000000000..6a54131b47e
28 --- /dev/null
29 +++ b/sys-auth/pambase/pambase-20210201.ebuild
30 @@ -0,0 +1,109 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..9} )
37 +
38 +inherit pam python-any-r1 readme.gentoo-r1
39 +
40 +DESCRIPTION="PAM base configuration files"
41 +HOMEPAGE="https://github.com/gentoo/pambase"
42 +
43 +if [[ ${PV} == *9999 ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/gentoo/pambase.git"
46 +else
47 + SRC_URI="https://github.com/gentoo/pambase/archive/${P}.tar.gz"
48 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
49 + S="${WORKDIR}/${PN}-${P}"
50 +fi
51 +
52 +LICENSE="MIT"
53 +SLOT="0"
54 +IUSE="caps debug elogind gnome-keyring homed minimal mktemp +nullok pam_krb5 pam_ssh +passwdqc pwhistory pwquality securetty selinux +sha512 systemd"
55 +
56 +RESTRICT="binchecks"
57 +
58 +REQUIRED_USE="
59 + ?? ( elogind systemd )
60 + ?? ( passwdqc pwquality )
61 + pwhistory? ( || ( passwdqc pwquality ) )
62 + homed? ( !pam_krb5 )
63 + pam_krb5? ( !homed )
64 +"
65 +
66 +MIN_PAM_REQ=1.4.0
67 +
68 +RDEPEND="
69 + >=sys-libs/pam-${MIN_PAM_REQ}
70 + elogind? ( sys-auth/elogind[pam] )
71 + gnome-keyring? ( gnome-base/gnome-keyring[pam] )
72 + mktemp? ( sys-auth/pam_mktemp )
73 + pam_krb5? (
74 + >=sys-libs/pam-${MIN_PAM_REQ}
75 + sys-auth/pam_krb5
76 + )
77 + caps? ( sys-libs/libcap[pam] )
78 + pam_ssh? ( sys-auth/pam_ssh )
79 + passwdqc? ( >=sys-auth/passwdqc-1.4.0-r1 )
80 + pwquality? ( dev-libs/libpwquality[pam] )
81 + selinux? ( sys-libs/pam[selinux] )
82 + sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
83 + homed? ( sys-apps/systemd[homed] )
84 + systemd? ( sys-apps/systemd[pam] )
85 +"
86 +
87 +BDEPEND="$(python_gen_any_dep '
88 + dev-python/jinja[${PYTHON_USEDEP}]
89 + ')"
90 +
91 +python_check_deps() {
92 + has_version -b "dev-python/jinja[${PYTHON_USEDEP}]"
93 +}
94 +
95 +src_configure() {
96 + ${EPYTHON} ./${PN}.py \
97 + $(usex caps '--caps' '') \
98 + $(usex debug '--debug' '') \
99 + $(usex elogind '--elogind' '') \
100 + $(usex gnome-keyring '--gnome-keyring' '') \
101 + $(usex homed '--homed' '') \
102 + $(usex minimal '--minimal' '') \
103 + $(usex mktemp '--mktemp' '') \
104 + $(usex nullok '--nullok' '') \
105 + $(usex pam_krb5 '--krb5' '') \
106 + $(usex pam_ssh '--pam-ssh' '') \
107 + $(usex passwdqc '--passwdqc' '') \
108 + $(usex pwhistory '--pwhistory' '') \
109 + $(usex pwquality '--pwquality' '') \
110 + $(usex securetty '--securetty' '') \
111 + $(usex selinux '--selinux' '') \
112 + $(usex sha512 '--sha512' '') \
113 + $(usex systemd '--systemd' '') \
114 + || die
115 +}
116 +
117 +src_test() { :; }
118 +
119 +src_install() {
120 + local DOC_CONTENTS
121 +
122 + if use passwdqc; then
123 + DOC_CONTENTS="To amend the existing password policy please see the man 5 passwdqc.conf
124 + page and then edit the /etc/security/passwdqc.conf file"
125 + fi
126 +
127 + if use pwquality; then
128 + DOC_CONTENTS="To amend the existing password policy please see the man 5 pwquality.conf
129 + page and then edit the /etc/security/pwquality.conf file"
130 + fi
131 +
132 + { use passwdqc || use pwquality; } && readme.gentoo_create_doc
133 +
134 + dopamd -r stack/.
135 +}
136 +
137 +pkg_postinst() {
138 + { use passwdqc || use pwquality; } && readme.gentoo_print_elog
139 +}