summaryrefslogtreecommitdiff
path: root/sys-auth/pambase
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-30 11:19:18 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-30 11:19:18 +0100
commit62f67115b5c46134c34f88f4b1cbdacc19384c0a (patch)
tree0a76b14de203a4c23040e5665e39df8de9867745 /sys-auth/pambase
parent265dbe5dbc14c199299496c6db8fce3f76647015 (diff)
gentoo resync : 30.09.2018
Diffstat (limited to 'sys-auth/pambase')
-rw-r--r--sys-auth/pambase/Manifest11
-rw-r--r--sys-auth/pambase/files/pambase-20150213-gnome-keyring.patch48
-rw-r--r--sys-auth/pambase/pambase-20101024-r2.ebuild4
-rw-r--r--sys-auth/pambase/pambase-20120417-r3.ebuild112
-rw-r--r--sys-auth/pambase/pambase-20140313.ebuild93
-rw-r--r--sys-auth/pambase/pambase-20150213-r1.ebuild2
-rw-r--r--sys-auth/pambase/pambase-20150213-r2.ebuild (renamed from sys-auth/pambase/pambase-20150213.ebuild)61
7 files changed, 89 insertions, 242 deletions
diff --git a/sys-auth/pambase/Manifest b/sys-auth/pambase/Manifest
index 99cc148f6245..6196261f53d0 100644
--- a/sys-auth/pambase/Manifest
+++ b/sys-auth/pambase/Manifest
@@ -2,14 +2,11 @@ AUX pambase-20120417-lastlog-silent.patch 694 BLAKE2B b66b3115869df00dc7c73078a3
AUX pambase-20120417-systemd-auth.patch 937 BLAKE2B 3bf50f1b05a04154e30299a3685671287e15cdaebe672e25ad23998670a6f443ca8a040b4a5a83ff5efb39ebf12161da8b65f78defbd24b21037d8c3f84388d9 SHA512 0d78a7dd4851bccf95bb3f92c095c4fc4e7fbbc077c1369797aa230e21763ecb6d087c17bc22c93adeaa695305179d54d838f2e4fe25e9ff16c683fb1edbb2bf
AUX pambase-20120417-systemd.patch 608 BLAKE2B 2eaba084268b4c2844850cc75be62caef64eee20e9971910e7bc1cdabca7ca29b02cd8c33564e26a6218c23867c8527d166889efa1698a7b3730c6987019b7be SHA512 c06d4e35cae11b1156ba32051a4f25a4551857081e9a723f5c0b48758859d7794de94889eb91b19424b49bd4fd5509d34cba943d7a7bbc89f4339a771f29f754
AUX pambase-20150213-elogind.patch 436 BLAKE2B f8d800b30b1f5f54f40747b256e460dbf10fd629c839088706299ae26bece8e248312dac1153ccb5b5fb25e71bee575d30db0912df0823be988f3cb68bb48e90 SHA512 e5865431fa616335f3732deefec96b11ba5e3f29523182ecbe24bafa80a0fd9b9dc5914b610d7ba485dcf5cd66775d9e668d8ba30f776ce33492b4da75301a1d
+AUX pambase-20150213-gnome-keyring.patch 1357 BLAKE2B 84923095bbff772f75689cd3a6cd6dfb111d51c1850ecae4caf91ee8b648c85091465bf13bd3acf9cce681b8ce02e937059e8e1792873d118ed996b24addb86e SHA512 eebbe9fe7a08de5aa60818747e06058bf9eb9acd9e66e579227da507304c639bc693ce1f3c74b62854b9541f9c1404081eb3d2f454113999a5d064eb646aa5d0
AUX pambase-20150213-selinux-note.patch 441 BLAKE2B 8457438ff72becbdf8da61143eacd961ad9a58f876e1560fcf3832af9b3cd995b37a1b4881a9b5bd572e9aff5bb89465d9bba8211e22347af7df22d5d9d8ffb4 SHA512 560afa6b9d2ac657f16ef41abf3f9243480c0d6c57ff725be00a936a92a392c1a5f59f787b1b0ddfe05a81da10cb3c1fc8d24ed9560731bbcae1608a5f155fdb
DIST pambase-20101024.tar.bz2 3201 BLAKE2B 714da8dd0b354cee29ad175a0ed2094fba8f3bfb5839319a515ed133991eb224ae280928177dcb0524f52193f44a68064a2413ae47d380472bc7b5da0b13f1bf SHA512 8d2a89b38d94d2e423a033ea6922c0a0039a0fb64d60c05991d877b4fa893954723fe1c1763f3f67ed6fbc3639282a4ee1d76824f7f29025b6050632a6984b6f
-DIST pambase-20120417.tar.bz2 3361 BLAKE2B 6b2799de56deb59cfc50c807700949072e221c2fe8d66fd6fb0150bb636390de51171c3af0c252c878f25d24d367cf53053aebc3cb392a6c06c86c4aafd06c45 SHA512 7a666eb67f6484e536ecb070402036bcfdd137aced27df3f08b136d06eee5c13a6dc14aa93ea09e94c7f31e5a98db97dbaccd0c46af24b57028247de3a7cd9fe
-DIST pambase-20140313.tar.bz2 3417 BLAKE2B cb18ba77b18e6bf5fc9a902370c4f6db96046f96f38131c33842c01903b683b4c7b69edd3976102fe85bb54fef00f56544a64d0402c0c1cc368ecc6ea30fbefd SHA512 76dd2a70947dac9573d47b81764ebe4f829bfd38d59c007e698a52c70757fa88525f510c14a1f474c58e3d33cb421ff61aa4ed1aae54497456004eff7494bfc8
DIST pambase-20150213.tar.xz 3480 BLAKE2B 7c59774bb8888fd2c4656264f1d8ea8cdd5ffffff4dc5d03091592726c8bd7775ba1573091c8616aa891298a1fe309b19885b5ec21efb45fe38900b7c959aaf5 SHA512 3b49dd3f06a0942fcced95527f62cbc4ff723c48dc896a0b57ecd19736d2892db974c782be3fe24e8e6e17294869a772ae9ee6118af96dfdc7a3a6561dc3f3e5
-EBUILD pambase-20101024-r2.ebuild 2817 BLAKE2B dad6faa68b9c3ad7dedd32fb09694c7f1152d7e1c47414c2114847dce15390dbdce63e3fd1be621964145726d1f9ef5ac38afe11033ee050f12065a8962984fa SHA512 1d83aca5ef0cb93386446816ce5ed2a59fa5f34085d443e020a33d67fd2b60d3e0cffafa78e198339194c4e7457f68fe282dd06c942a0519d2fb02fa9b8a9fb8
-EBUILD pambase-20120417-r3.ebuild 3444 BLAKE2B 552afa540bff6b5511335e1cf0d16c7cbf7994eb72f556c0b364f148ff80d3425e3a5e111da2ecdd81f275b88d70bf05a5fe3d9ea06cb353a0b3d71286efeec2 SHA512 8595859c116d4c224a3924113b1b1b0202cc0986f75c594615ca98390a6b346b8db7988a9f84625dbd8898464b0b7d093e4b41083fb6d196d0a496fe1f7e3ce9
-EBUILD pambase-20140313.ebuild 2678 BLAKE2B deaeeb1ba61f9cfff35c2c039d2164da97644d700f60857a01229b581ffe4bbe20cd22cd7ed369b1e1ccbd2b116364cf64726080f6af37756d365b782a9a8769 SHA512 54be1a3634acf448879fd2df2f55bc776bb4813fea92e91287e4af284cf8b410960c5c017450390ac98cc6ff633778d8566435261b4a32d8d0936e9863fbadc6
-EBUILD pambase-20150213-r1.ebuild 2870 BLAKE2B fc019fb63dc5c9640a8c61e60a93c9135d37111c795ef8f4bedaf52d2c88eb4dd52755bc403be41350bc5bcb59b80f7df7bf07edb3473bafc91575138e6022ea SHA512 41fcef4146bf9f4944e46126726f12ee3867920aa50f57578b46ee56382677889781ae73ad99ee2ce715ff50b16dd7a84a446e39849a3aba7b63188a0cef1e14
-EBUILD pambase-20150213.ebuild 2801 BLAKE2B 567d050c4cc3262814fcb3ddba6099d9be7f7dedd3a7db9ec67479ce5778e2b724a125a5e27b786b4f02d85100d3e1117b5a0a78c2a23c6ffb27335bde72e0cf SHA512 9a927bb24575b75ae63ffb95c9c9a6fb6bef12654ce356b1fd7fb2d5e01ca638fe8dc7d4613af9505b118569bee14731d96011af80f7845ec146711fd0330aa8
+EBUILD pambase-20101024-r2.ebuild 2725 BLAKE2B 77a4d16cd30dedfa2256fd687cbb4b54555aeb1abf36123d340e9354d6cf67e503b9feb26daf55eb508c87dacc8c7df996510bf65ad32e818e74bc1f0873eb0e SHA512 307ebed59ea5f7fbe48ff343833c4fc6ca54520434452823b21e76c25c5c173738fd8637869e9a9eb9025e1d2b4cd090b7421e0a35333217bae87e450c7eaa1d
+EBUILD pambase-20150213-r1.ebuild 2869 BLAKE2B 4edfad559a57065dba9b243c3e53505e1521be771042a4028516492d3eedd4b6508a03db4c489b96bb3ebf24438aaf04d943a67ffd9b3435169f3899cd06c4ba SHA512 888ca20c747ee47056873f407e13f9675012ac160b5c55dd5128ddf9be31af91996aeddaf5d863d2e38b3c4863bb9325ca247d16b3785396863d7e97d10c06ce
+EBUILD pambase-20150213-r2.ebuild 2820 BLAKE2B bb4a0eaec6c4f55ffab72d933baa772bfb33e141b9fc9f29192c29b86187755fc8e4c3289d295cf39ba03cc5f5c3ecb5a26f37ec15eac261e2bc5ee93ccc23ef SHA512 bdddf98c1d53635536263ad6056c50ec4272a23e22cb2971fa98f6d267f5a4a00873d02e0dfec0e74552786a3b08477f4a0594f0474114fbdd1afc8ff941ad6c
MISC metadata.xml 4297 BLAKE2B 53d6b14f5e6cf707666441f1bef3c975d43f33387ceb482dd7c41e97b2771466a02efb3db1c881d354bcfff42010e1da47a28579972169e3c7edac33f43f565d SHA512 d717c2916e154630a756f7925794d43d43c5881bc9df53b82b35f86104366902a76f2d9298cf5a8511431084f0103fe91234c5e4172555677bbdc00db0a73a04
diff --git a/sys-auth/pambase/files/pambase-20150213-gnome-keyring.patch b/sys-auth/pambase/files/pambase-20150213-gnome-keyring.patch
new file mode 100644
index 000000000000..57c204e44201
--- /dev/null
+++ b/sys-auth/pambase/files/pambase-20150213-gnome-keyring.patch
@@ -0,0 +1,48 @@
+diff -urN a/passwd.in b/passwd.in
+--- a/passwd.in 2015-02-14 06:57:45.000000000 +0300
++++ b/passwd.in 2018-04-02 12:33:08.304214918 +0300
+@@ -1,6 +1,7 @@
+-auth sufficient pam_rootok.so
+-auth include system-auth
++auth sufficient pam_rootok.so
++auth include system-auth
+
+-account include system-auth
++account include system-auth
+
+-password include system-auth
++password include system-auth
++-password optional pam_gnome_keyring.so UNIX_AUTHTOK
+diff -urN a/system-login.in b/system-login.in
+--- a/system-login.in 2015-02-14 06:57:45.000000000 +0300
++++ b/system-login.in 2018-04-02 12:33:01.272010095 +0300
+@@ -8,9 +8,6 @@
+ auth required pam_nologin.so DEBUG_NOLOGIN
+ #endif
+ auth include system-auth
+-#if HAVE_GNOME_KEYRING
+-auth optional pam_gnome_keyring.so
+-#endif
+
+ #if HAVE_ACCESS
+ account required pam_access.so DEBUG
+@@ -27,9 +24,6 @@
+ #endif
+
+ password include system-auth
+-#if HAVE_GNOME_KEYRING
+-password optional pam_gnome_keyring.so
+-#endif
+
+ #if HAVE_LOGINUID
+ session optional pam_loginuid.so
+@@ -51,9 +45,6 @@
+ # Note: modules that run in the user's context must come after this line.
+ session required pam_selinux.so multiple open
+ #endif
+-#if HAVE_GNOME_KEYRING
+-session optional pam_gnome_keyring.so auto_start
+-#endif
+ #if HAVE_MOTD
+ session optional pam_motd.so motd=/etc/motd
+ #endif
diff --git a/sys-auth/pambase/pambase-20101024-r2.ebuild b/sys-auth/pambase/pambase-20101024-r2.ebuild
index 3f6d40cbdfec..08c9ebacb43b 100644
--- a/sys-auth/pambase/pambase-20101024-r2.ebuild
+++ b/sys-auth/pambase/pambase-20101024-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
@@ -11,7 +11,7 @@ SRC_URI="https://dev.gentoo.org/~flameeyes/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64-fbsd ~x86-fbsd"
IUSE="debug +cracklib passwdqc consolekit gnome-keyring selinux mktemp pam_ssh +sha512 pam_krb5 minimal"
RESTRICT="binchecks"
diff --git a/sys-auth/pambase/pambase-20120417-r3.ebuild b/sys-auth/pambase/pambase-20120417-r3.ebuild
deleted file mode 100644
index 422c3d40da1e..000000000000
--- a/sys-auth/pambase/pambase-20120417-r3.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils
-
-DESCRIPTION="PAM base configuration files"
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:PAM"
-SRC_URI="https://dev.gentoo.org/~flameeyes/${PN}/${P}.tar.bz2
- https://dev.gentoo.org/~phajdan.jr/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -x86-fbsd ~amd64-linux ~x86-linux"
-IUSE="consolekit +cracklib debug gnome-keyring minimal mktemp pam_krb5 pam_ssh passwdqc selinux +sha512 systemd"
-
-RESTRICT=binchecks
-
-MIN_PAM_REQ=1.1.3
-
-RDEPEND="
- || (
- >=sys-libs/pam-${MIN_PAM_REQ}
- ( sys-auth/openpam sys-freebsd/freebsd-pam-modules )
- )
- consolekit? ( >=sys-auth/consolekit-0.4.5_p2012[pam] )
- cracklib? ( >=sys-libs/pam-${MIN_PAM_REQ}[cracklib] )
- gnome-keyring? ( >=gnome-base/gnome-keyring-2.32[pam] )
- mktemp? ( sys-auth/pam_mktemp )
- pam_krb5? (
- || ( >=sys-libs/pam-${MIN_PAM_REQ} sys-auth/openpam )
- >=sys-auth/pam_krb5-4.3
- )
- pam_ssh? ( sys-auth/pam_ssh )
- passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
- selinux? ( >=sys-libs/pam-${MIN_PAM_REQ}[selinux] )
- sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
- systemd? ( >=sys-apps/systemd-44-r1[pam] )
- !<sys-apps/shadow-4.1.5-r1
- !<sys-freebsd/freebsd-pam-modules-6.2-r1
- !<sys-libs/pam-0.99.9.0-r1"
-DEPEND="app-portage/portage-utils"
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-systemd.patch
- epatch "${FILESDIR}"/${P}-lastlog-silent.patch
- epatch "${FILESDIR}"/${P}-systemd-auth.patch # 485470
-}
-
-src_compile() {
- local implementation=
- local linux_pam_version=
- if has_version sys-libs/pam; then
- implementation=linux-pam
- local ver_str=$(qatom `best_version sys-libs/pam` | cut -d ' ' -f 3)
- linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ })
- elif has_version sys-auth/openpam; then
- implementation=openpam
- else
- die "PAM implementation not identified"
- fi
-
- use_var() {
- local varname=$(echo $1 | tr [a-z] [A-Z])
- local usename=${2-$(echo $1 | tr [A-Z] [a-z])}
- local varvalue=$(usex $usename)
- echo "${varname}=${varvalue}"
- }
-
- emake \
- GIT=true \
- $(use_var debug) \
- $(use_var cracklib) \
- $(use_var passwdqc) \
- $(use_var consolekit) \
- $(use_var systemd) \
- $(use_var GNOME_KEYRING gnome-keyring) \
- $(use_var selinux) \
- $(use_var mktemp) \
- $(use_var PAM_SSH pam_ssh) \
- $(use_var sha512) \
- $(use_var KRB5 pam_krb5) \
- $(use_var minimal) \
- IMPLEMENTATION=${implementation} \
- LINUX_PAM_VERSION=${linux_pam_version}
-}
-
-src_test() { :; }
-
-src_install() {
- emake GIT=true DESTDIR="${ED}" install
-}
-
-pkg_postinst() {
- if use sha512; then
- elog "Starting from version 20080801, pambase optionally enables"
- elog "SHA512-hashed passwords. For this to work, you need sys-libs/pam-1.0.1"
- elog "built against sys-libs/glibc-2.7 or later."
- elog "If you don't have support for this, it will automatically fallback"
- elog "to MD5-hashed passwords, just like before."
- elog
- elog "Please note that the change only affects the newly-changed passwords"
- elog "and that SHA512-hashed passwords will not work on earlier versions"
- elog "of glibc or Linux-PAM."
- fi
-
- if use systemd && use consolekit; then
- ewarn "You are enabling 2 session trackers, ConsoleKit and systemd-logind"
- ewarn "at the same time. This is not recommended setup to have, please"
- ewarn "consider disabling either USE=\"consolekit\" or USE=\"systemd\."
- fi
-}
diff --git a/sys-auth/pambase/pambase-20140313.ebuild b/sys-auth/pambase/pambase-20140313.ebuild
deleted file mode 100644
index cc0940901457..000000000000
--- a/sys-auth/pambase/pambase-20140313.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils
-
-DESCRIPTION="PAM base configuration files"
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:PAM"
-SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux"
-IUSE="consolekit +cracklib debug gnome-keyring minimal mktemp pam_krb5 pam_ssh passwdqc selinux +sha512 systemd"
-
-RESTRICT=binchecks
-
-MIN_PAM_REQ=1.1.3
-
-RDEPEND="
- || (
- >=sys-libs/pam-${MIN_PAM_REQ}
- ( sys-auth/openpam sys-freebsd/freebsd-pam-modules )
- )
- consolekit? ( >=sys-auth/consolekit-0.4.6[pam] )
- cracklib? ( >=sys-libs/pam-${MIN_PAM_REQ}[cracklib] )
- gnome-keyring? ( >=gnome-base/gnome-keyring-2.32[pam] )
- mktemp? ( sys-auth/pam_mktemp )
- pam_krb5? (
- || ( >=sys-libs/pam-${MIN_PAM_REQ} sys-auth/openpam )
- >=sys-auth/pam_krb5-4.3
- )
- pam_ssh? ( sys-auth/pam_ssh )
- passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
- selinux? ( >=sys-libs/pam-${MIN_PAM_REQ}[selinux] )
- sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
- systemd? ( >=sys-apps/systemd-204[pam] )
- !<sys-apps/shadow-4.1.5-r1
- !<sys-freebsd/freebsd-pam-modules-6.2-r1
- !<sys-libs/pam-0.99.9.0-r1"
-DEPEND="app-portage/portage-utils"
-
-src_compile() {
- local implementation=
- local linux_pam_version=
- if has_version sys-libs/pam; then
- implementation=linux-pam
- local ver_str=$(qatom `best_version sys-libs/pam` | cut -d ' ' -f 3)
- linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ })
- elif has_version sys-auth/openpam; then
- implementation=openpam
- else
- die "PAM implementation not identified"
- fi
-
- use_var() {
- local varname=$(echo $1 | tr [a-z] [A-Z])
- local usename=${2-$(echo $1 | tr [A-Z] [a-z])}
- local varvalue=$(usex $usename)
- echo "${varname}=${varvalue}"
- }
-
- emake \
- GIT=true \
- $(use_var debug) \
- $(use_var cracklib) \
- $(use_var passwdqc) \
- $(use_var consolekit) \
- $(use_var systemd) \
- $(use_var GNOME_KEYRING gnome-keyring) \
- $(use_var selinux) \
- $(use_var mktemp) \
- $(use_var PAM_SSH pam_ssh) \
- $(use_var sha512) \
- $(use_var KRB5 pam_krb5) \
- $(use_var minimal) \
- IMPLEMENTATION=${implementation} \
- LINUX_PAM_VERSION=${linux_pam_version}
-}
-
-src_test() { :; }
-
-src_install() {
- emake GIT=true DESTDIR="${ED}" install
-}
-
-pkg_postinst() {
- if use systemd && use consolekit; then
- ewarn "You are enabling 2 session trackers, ConsoleKit and systemd-logind"
- ewarn "at the same time. This is not recommended setup to have, please"
- ewarn "consider disabling either USE=\"consolekit\" or USE=\"systemd\."
- fi
-}
diff --git a/sys-auth/pambase/pambase-20150213-r1.ebuild b/sys-auth/pambase/pambase-20150213-r1.ebuild
index a17c6ac09b39..3fb8706367b7 100644
--- a/sys-auth/pambase/pambase-20150213-r1.ebuild
+++ b/sys-auth/pambase/pambase-20150213-r1.ebuild
@@ -9,7 +9,7 @@ SRC_URI="https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh ~sparc x86 -x86-fbsd ~amd64-linux ~x86-linux"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -x86-fbsd ~amd64-linux ~x86-linux"
IUSE="consolekit +cracklib debug elogind gnome-keyring minimal mktemp +nullok pam_krb5 pam_ssh passwdqc securetty selinux +sha512 systemd"
RESTRICT="binchecks"
diff --git a/sys-auth/pambase/pambase-20150213.ebuild b/sys-auth/pambase/pambase-20150213-r2.ebuild
index 8d0468eac7ff..eae82f61e964 100644
--- a/sys-auth/pambase/pambase-20150213.ebuild
+++ b/sys-auth/pambase/pambase-20150213-r2.ebuild
@@ -1,8 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils
+EAPI=7
DESCRIPTION="PAM base configuration files"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:PAM"
@@ -10,10 +9,10 @@ SRC_URI="https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -x86-fbsd ~amd64-linux ~x86-linux"
-IUSE="consolekit +cracklib debug gnome-keyring minimal mktemp +nullok pam_krb5 pam_ssh passwdqc securetty selinux +sha512 systemd"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="consolekit +cracklib debug elogind minimal mktemp +nullok pam_krb5 pam_ssh passwdqc securetty selinux +sha512 systemd"
-RESTRICT=binchecks
+RESTRICT="binchecks"
MIN_PAM_REQ=1.1.3
@@ -22,27 +21,43 @@ RDEPEND="
>=sys-libs/pam-${MIN_PAM_REQ}
( sys-auth/openpam sys-freebsd/freebsd-pam-modules )
)
- consolekit? ( >=sys-auth/consolekit-0.4.6[pam] )
+ consolekit? ( sys-auth/consolekit[pam] )
cracklib? ( sys-libs/pam[cracklib] )
- gnome-keyring? ( >=gnome-base/gnome-keyring-2.32[pam] )
+ elogind? ( sys-auth/elogind[pam] )
mktemp? ( sys-auth/pam_mktemp )
pam_krb5? (
|| ( >=sys-libs/pam-${MIN_PAM_REQ} sys-auth/openpam )
- >=sys-auth/pam_krb5-4.3
+ sys-auth/pam_krb5
)
pam_ssh? ( sys-auth/pam_ssh )
- passwdqc? ( >=sys-auth/pam_passwdqc-1.0.4 )
+ passwdqc? ( sys-auth/pam_passwdqc )
selinux? ( sys-libs/pam[selinux] )
sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
- systemd? ( >=sys-apps/systemd-204[pam] )
- !<sys-apps/shadow-4.1.5-r1
- !<sys-freebsd/freebsd-pam-modules-6.2-r1
- !<sys-libs/pam-0.99.9.0-r1"
-DEPEND="app-portage/portage-utils
- app-arch/xz-utils"
+ systemd? ( sys-apps/systemd[pam] )
+"
+DEPEND="
+ app-arch/xz-utils
+ app-portage/portage-utils
+"
-src_prepare() {
- epatch "${FILESDIR}"/${P}-selinux-note.patch #540096
+PATCHES=(
+ "${FILESDIR}"/${P}-selinux-note.patch #540096
+ "${FILESDIR}"/${P}-elogind.patch #599498
+ "${FILESDIR}"/${P}-gnome-keyring.patch #652194
+)
+
+pkg_setup() {
+ local stcnt=0
+
+ use consolekit && stcnt=$((stcnt+1))
+ use elogind && stcnt=$((stcnt+1))
+ use systemd && stcnt=$((stcnt+1))
+
+ if [[ ${stcnt} -gt 1 ]] ; then
+ ewarn "You are enabling ${stcnt} session trackers at the same time."
+ ewarn "This is not a recommended setup to have. Please consider enabling"
+ ewarn "only one of USE=\"consolekit\", USE=\"elogind\" or USE=\"systemd\"."
+ fi
}
src_compile() {
@@ -70,8 +85,8 @@ src_compile() {
$(use_var cracklib) \
$(use_var passwdqc) \
$(use_var consolekit) \
+ $(use_var elogind) \
$(use_var systemd) \
- $(use_var GNOME_KEYRING gnome-keyring) \
$(use_var selinux) \
$(use_var nullok) \
$(use_var mktemp) \
@@ -89,11 +104,3 @@ src_test() { :; }
src_install() {
emake GIT=true DESTDIR="${ED}" install
}
-
-pkg_postinst() {
- if use systemd && use consolekit; then
- ewarn "You are enabling 2 session trackers, ConsoleKit and systemd-logind"
- ewarn "at the same time. This is not recommended setup to have, please"
- ewarn "consider disabling either USE=\"consolekit\" or USE=\"systemd\."
- fi
-}