summaryrefslogtreecommitdiff
path: root/sys-auth/pambase
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-02-24 19:24:56 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-02-24 19:24:56 +0000
commitd4653056cc74d97f24bef0d56b4ebe11c53c8b76 (patch)
tree5d4be0715302fad2089468027fadaa0372afd1d1 /sys-auth/pambase
parent575bcb9220287a6f0d2577db1fd9fe55d9d8b745 (diff)
gentoo auto-resync : 24:02:2025 - 19:24:56
Diffstat (limited to 'sys-auth/pambase')
-rw-r--r--sys-auth/pambase/Manifest2
-rw-r--r--sys-auth/pambase/pambase-20250223.ebuild118
2 files changed, 120 insertions, 0 deletions
diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest
index 9eb5d4587f09..a6f0ee938591 100644
--- a/sys-auth/pambase/Manifest
+++ b/sys-auth/pambase/Manifest
@@ -1,6 +1,8 @@
DIST pambase-20220214.tar.gz 3372 BLAKE2B fc560005c48598d972cf68bfbd33784be7d7e5a12f5ebcd06e708241a169b1bcf7cb7dcd7109f44c2d9802ae0b294eaeb61782640f0b0cb9767f2ecf8c053c7f SHA512 57d037944cf6d9db69d5eb8ce32b087ac4781fae13c1daba1e248a1818dfcbbf2cb66fce79cad7808f2b0f89d3f3dd05455a1c8f3c976561769b056dc8bf7323
DIST pambase-20240128.tar.bz2 5131 BLAKE2B 0950fff720f3a9d761a82303eaa7b997bfac635111b6cae772f7d9de2846147dbb4224326e5dba1868cb54a8a76076c2efed6615c861bbfa78256aba4f475da2 SHA512 6b4ad390c46f33947436892a5f19111a1c9f4ded406ae8ffe76539c94d541611b74ba697d76522b46da41f53aae45eb67c274fc0d6caec94d40c1691487624e6
+DIST pambase-20250223.tar.bz2 5124 BLAKE2B ea89d43c93d85baafa1a6951ae80c6306c762ab0524f84de86ed4b6a1abc1056e85c6b1f13012615ce2db40e113ce51e17ddcd274d5f4f4f94a0ec9315318500 SHA512 ce31d08f3fa51879cddab158ffed3dc9929c37a56e7dc2f757f7e87e72076a75d10874cba2020f398a198c0156ffc4ecc2ec5d6d654ca36f135a4f1837094b57
EBUILD pambase-20220214.ebuild 2987 BLAKE2B c84777abe92a724258eed8f392d3b3ffe410f849047b453a018c97220c858dbc57ca885afb17d49c92ef1e5f44b5fa81800eb014904875b26d97dd5e2624d3b1 SHA512 bcc44e086d6a6d1ecbc70356b82794d207bca6f95e9850a7ee102ef1e350c5bc012975ad395041ea05ded7455727fe8f7402556a7cdbeb76f28fcc9a4a41a405
EBUILD pambase-20240128.ebuild 3088 BLAKE2B e1e69a42940691e074f695a6630503484d5f61f8e9daa60573ac749ce3e9a12adfe88f225d306733becaf77e46ae564d27fb9881957c24e7a847bf12a33f03b3 SHA512 ccbfa921b72348f8bd2aeb2a8d7644f23a38e5fdd47a03fe6e0b635fcb561fb5ead08d0aeb17818fe23010270a134b9e2c6469033e59124cfb88b818e647b951
+EBUILD pambase-20250223.ebuild 3096 BLAKE2B 2ccf5e952bcd1441794ebad319b08523a491c52e5cb3f17fddcb0f5e0448e5fe87542c8d24af1e22818a4d77772c5e4d35bfaf46afd87c3dc3c4861956fc5c5b SHA512 65b612ef4f47234e6ca010b35faa56cffc413865f5be16915b819d7c8c92a023d5ca8444901673069e6262f9b8b745e9ac60ea495912971d4a6496f88c10b7d8
EBUILD pambase-999999999.ebuild 3096 BLAKE2B 9a5e5e34d335077dc80678e81a2b7e384967b9426f0bc79579006b4c802b9e79a4c72542f98ea036303164bd29b22eebfa2ddc1c524c225a9adff13a5a403c6e SHA512 3738e4e6ce89ff424e43aa6e9140403ad302207b58f87eedbe35fab48123b2440f8b77f1bfb0c690c76dc07ad63d134c4b52c26b10a93b6801ddf17867fef80c
MISC metadata.xml 4291 BLAKE2B 95b6df4757e44c8e815a00f675c6103e484e673cac2b97165aeb222aa6b049e5665ecf961e03a2bc6cf65fbb1bdc7a5543339bdc7d29c31268494586552a4e86 SHA512 0ac5a7af62ec8df0e8898d5dfe9bcfb3955d3c862db80ad94b8d3596b3f39a9232f789ce5d090d14733d58526cbc35e4dcb8635890c9f738fdaf69b1292eceb5
diff --git a/sys-auth/pambase/pambase-20250223.ebuild b/sys-auth/pambase/pambase-20250223.ebuild
new file mode 100644
index 000000000000..e5b7dbc26b8d
--- /dev/null
+++ b/sys-auth/pambase/pambase-20250223.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit pam python-any-r1 readme.gentoo-r1
+
+DESCRIPTION="PAM base configuration files"
+HOMEPAGE="https://github.com/gentoo/pambase"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="
+ https://anongit.gentoo.org/git/proj/pambase.git
+ https://github.com/gentoo/pambase.git
+ "
+else
+ SRC_URI="https://gitweb.gentoo.org/proj/pambase.git/snapshot/${P}.tar.bz2"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="caps debug elogind gnome-keyring homed minimal mktemp +nullok pam_krb5 pam_ssh +passwdqc pwhistory pwquality securetty selinux +sha512 sssd systemd yescrypt"
+
+RESTRICT="binchecks"
+
+REQUIRED_USE="
+ ?? ( elogind systemd )
+ ?? ( passwdqc pwquality )
+ ?? ( sha512 yescrypt )
+ pwhistory? ( || ( passwdqc pwquality ) )
+ homed? ( !pam_krb5 )
+ pam_krb5? ( !homed )
+"
+
+MIN_PAM_REQ=1.4.0
+
+RDEPEND="
+ >=sys-libs/pam-${MIN_PAM_REQ}
+ elogind? ( sys-auth/elogind[pam] )
+ gnome-keyring? ( gnome-base/gnome-keyring[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-1.4.0-r1 )
+ pwquality? ( dev-libs/libpwquality[pam] )
+ selinux? ( sys-libs/pam[selinux] )
+ sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
+ homed? ( sys-apps/systemd[homed] )
+ systemd? ( sys-apps/systemd[pam] )
+ yescrypt? ( sys-libs/libxcrypt[system] )
+ sssd? ( sys-auth/sssd )
+"
+BDEPEND="
+ $(python_gen_any_dep '
+ dev-python/jinja2[${PYTHON_USEDEP}]
+ ')
+"
+
+python_check_deps() {
+ python_has_version "dev-python/jinja2[${PYTHON_USEDEP}]"
+}
+
+src_configure() {
+ ${EPYTHON} ./${PN}.py \
+ $(usex caps '--caps' '') \
+ $(usex debug '--debug' '') \
+ $(usex elogind '--elogind' '') \
+ $(usex gnome-keyring '--gnome-keyring' '') \
+ $(usex homed '--homed' '') \
+ $(usex minimal '--minimal' '') \
+ $(usex mktemp '--mktemp' '') \
+ $(usex nullok '--nullok' '') \
+ $(usex pam_krb5 '--krb5' '') \
+ $(usex pam_ssh '--pam-ssh' '') \
+ $(usex passwdqc '--passwdqc' '') \
+ $(usex pwhistory '--pwhistory' '') \
+ $(usex pwquality '--pwquality' '') \
+ $(usex securetty '--securetty' '') \
+ $(usex selinux '--selinux' '') \
+ $(usex sha512 '--sha512' '') \
+ $(usex systemd '--systemd' '') \
+ $(usex yescrypt '--yescrypt' '') \
+ $(usex sssd '--sssd' '') \
+ || die
+}
+
+src_test() { :; }
+
+src_install() {
+ local DOC_CONTENTS
+
+ if use passwdqc; then
+ DOC_CONTENTS="To amend the existing password policy please see the man 5 passwdqc.conf
+ page and then edit the /etc/security/passwdqc.conf file"
+ fi
+
+ if use pwquality; then
+ DOC_CONTENTS="To amend the existing password policy please see the man 5 pwquality.conf
+ page and then edit the /etc/security/pwquality.conf file"
+ fi
+
+ { use passwdqc || use pwquality; } && readme.gentoo_create_doc
+
+ dopamd -r stack/.
+}
+
+pkg_postinst() {
+ { use passwdqc || use pwquality; } && readme.gentoo_print_elog
+}