From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 497E9138359 for ; Sun, 16 Aug 2020 19:02:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60872E0855; Sun, 16 Aug 2020 19:02:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3B780E0855 for ; Sun, 16 Aug 2020 19:02:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DE7FB34F239 for ; Sun, 16 Aug 2020 19:02:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C4A624C for ; Sun, 16 Aug 2020 19:02:43 +0000 (UTC) From: "Mikle Kolyada" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" Message-ID: <1597604559.c11d8497ce195da376f6ac15d1f16d1989d6d084.zlogene@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/pambase/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/pambase/Manifest sys-auth/pambase/metadata.xml sys-auth/pambase/pambase-20200815.ebuild X-VCS-Directories: sys-auth/pambase/ X-VCS-Committer: zlogene X-VCS-Committer-Name: Mikle Kolyada X-VCS-Revision: c11d8497ce195da376f6ac15d1f16d1989d6d084 X-VCS-Branch: master Date: Sun, 16 Aug 2020 19:02:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3846ad7d-f7f9-402c-96c7-e1b8d93c4f10 X-Archives-Hash: ea009610a77c9905cc8d4c1aa3516ec7 commit: c11d8497ce195da376f6ac15d1f16d1989d6d084 Author: Mikle Kolyada gentoo org> AuthorDate: Sun Aug 16 19:01:26 2020 +0000 Commit: Mikle Kolyada gentoo org> CommitDate: Sun Aug 16 19:02:39 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c11d8497 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 gentoo.org> sys-auth/pambase/Manifest | 1 + sys-auth/pambase/metadata.xml | 11 +++-- sys-auth/pambase/pambase-20200815.ebuild | 77 ++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 4 deletions(-) diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest index 173e0e50445..5e05839bb1d 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 795304d0685..bb8fe728126 100644 --- a/sys-auth/pambase/metadata.xml +++ b/sys-auth/pambase/metadata.xml @@ -35,10 +35,13 @@ 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. + + + Enable pam_pwquality module on system auth stack for passwd + quality validation. It is used be dafault by Fedora GNU/*/Linux. 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 00000000000..a84cc9864db --- /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/. +}