summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-08-16 22:01:26 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-08-16 22:02:39 +0300
commitc11d8497ce195da376f6ac15d1f16d1989d6d084 (patch)
treecc3fc89c28600f7fac0b462d2935efb79503d0fd /sys-auth
parentnet-misc/ubridge: update maintainer email (diff)
downloadgentoo-c11d8497ce195da376f6ac15d1f16d1989d6d084.tar.gz
gentoo-c11d8497ce195da376f6ac15d1f16d1989d6d084.tar.bz2
gentoo-c11d8497ce195da376f6ac15d1f16d1989d6d084.zip
sys-auth/pambase: Version bump (v20200815)
This version introduces pam_pwquality support Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/pambase/Manifest1
-rw-r--r--sys-auth/pambase/metadata.xml11
-rw-r--r--sys-auth/pambase/pambase-20200815.ebuild77
3 files changed, 85 insertions, 4 deletions
diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest
index 173e0e50445c..5e05839bb1da 100644
--- a/sys-auth/pambase/Manifest
+++ b/sys-auth/pambase/Manifest
@@ -1,2 +1,3 @@
DIST pambase-20200304.tar.gz 3466 BLAKE2B e4d406460d435403ed7a46d517f9006cacc54a94f5019a573c81b331731c88679ed6d388354b5946894bdfada556b4c73735c3f4de88fc7678cd831c68ab46c3 SHA512 c2a7f3fd143637fbdf5c0a3c58ba5a3c23c5e8adb1f057d02b4b9d64660435fc529031a0f710a9e5fc7091710f78dcb2f3e1ff48f033fb491ddd0399ef05b189
DIST pambase-20200806.tar.gz 3244 BLAKE2B 41fa77f1fc243292e618d4f1d833c0e6da5d13ce7e69362a2b2b623a46ec38f6e61d645896fd6fd0ef954a8bdbbed282b3e50487f07c6bd8dbb327e7b64e60a2 SHA512 13fc34738c209f50a03060ce0cd2a608b35cf7c2a9c40787230216548b74ff6cf78538bd97d70c63147c3b8e7afe791f0465a772ca8bd0bf8b75ebfbca8d2ff8
+DIST pambase-20200815.tar.gz 3308 BLAKE2B 0bfbbca7bbe1633e18185e8acd5b1ad9c6fe99bdb632deb33014ec8c275223dc4c0b77b23e84be8b4c63b9b8f32559388a614ff883dc1e6c53598bc026cfd902 SHA512 26ff8e90ec0accafd5d11b882c10db1de2c7f90d687de459265ee59e6b74577f125acd14f339e1a816ac54fcb2c68d95bd9b7024088d348a4431295fcb567061
diff --git a/sys-auth/pambase/metadata.xml b/sys-auth/pambase/metadata.xml
index 795304d06855..bb8fe7281268 100644
--- a/sys-auth/pambase/metadata.xml
+++ b/sys-auth/pambase/metadata.xml
@@ -35,10 +35,13 @@
</flag>
<flag name="passwdqc">
Enable pam_passwdqc module on system auth stack for password
- quality validation. This is an alternative to pam_cracklib
- producing warnings, rejecting or providing example passwords
- when changing your system password. It is used by default by
- OpenWall GNU/*/Linux and by FreeBSD.
+ quality validation. This module produces warnings, rejecting
+ or providing example passwords when changing your system password.
+ It is used by default by OpenWall GNU/*/Linux and by FreeBSD.
+ </flag>
+ <flag name="pwquality">
+ Enable pam_pwquality module on system auth stack for passwd
+ quality validation. It is used be dafault by Fedora GNU/*/Linux.
</flag>
<flag name="mktemp">
Enable pam_mktemp module on system auth stack for session
diff --git a/sys-auth/pambase/pambase-20200815.ebuild b/sys-auth/pambase/pambase-20200815.ebuild
new file mode 100644
index 000000000000..a84cc9864db3
--- /dev/null
+++ b/sys-auth/pambase/pambase-20200815.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit pam python-any-r1
+
+DESCRIPTION="PAM base configuration files"
+HOMEPAGE="https://github.com/gentoo/pambase"
+SRC_URI="https://github.com/gentoo/pambase/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="caps debug elogind minimal mktemp +nullok pam_krb5 pam_ssh +passwdqc pwquality securetty selinux +sha512 systemd"
+
+RESTRICT="binchecks"
+
+REQUIRED_USE="
+ ?? ( elogind systemd )
+ ?? ( passwdqc pwquality )
+"
+
+MIN_PAM_REQ=1.4.0
+
+RDEPEND="
+ >=sys-libs/pam-${MIN_PAM_REQ}
+ elogind? ( sys-auth/elogind[pam] )
+ mktemp? ( sys-auth/pam_mktemp )
+ pam_krb5? (
+ >=sys-libs/pam-${MIN_PAM_REQ}
+ sys-auth/pam_krb5
+ )
+ caps? ( sys-libs/libcap[pam] )
+ pam_ssh? ( sys-auth/pam_ssh )
+ passwdqc? ( sys-auth/passwdqc )
+ pwquality? ( dev-libs/libpwquality[pam] )
+ selinux? ( sys-libs/pam[selinux] )
+ sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
+ systemd? ( sys-apps/systemd[pam] )
+"
+
+BDEPEND="$(python_gen_any_dep '
+ dev-python/jinja[${PYTHON_USEDEP}]
+ ')"
+
+python_check_deps() {
+ has_version -b "dev-python/jinja[${PYTHON_USEDEP}]"
+}
+
+S="${WORKDIR}/${PN}-${P}"
+
+src_configure() {
+ ${EPYTHON} ./${PN}.py \
+ $(usex caps '--libcap' '') \
+ $(usex debug '--debug' '') \
+ $(usex elogind '--elogind' '') \
+ $(usex minimal '--minimal' '') \
+ $(usex mktemp '--mktemp' '') \
+ $(usex nullok '--nullok' '') \
+ $(usex pam_krb5 '--krb5' '') \
+ $(usex pam_ssh '--pam-ssh' '') \
+ $(usex passwdqc '--passwdqc' '') \
+ $(usex pwquality '--pwquality' '') \
+ $(usex securetty '--securetty' '') \
+ $(usex selinux '--selinux' '') \
+ $(usex sha512 '--sha512' '') \
+ $(usex systemd '--systemd' '')
+}
+
+src_test() { :; }
+
+src_install() {
+ dopamd -r stack/.
+}