Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/pambase/
Date: Sun, 23 Sep 2018 16:46:33
Message-Id: 1537721180.b6cecbad6ae8c735da5a9d03d9c7b9f24ff9d045.pacho@gentoo
1 commit: b6cecbad6ae8c735da5a9d03d9c7b9f24ff9d045
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 23 16:42:36 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 23 16:46:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6cecbad
7
8 sys-auth/pambase: Fix gnome-keyring (#652194 by Alexander Tsoy)
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.11
11
12 sys-auth/pambase/pambase-20150213-r2.ebuild | 106 ++++++++++++++++++++++++++++
13 1 file changed, 106 insertions(+)
14
15 diff --git a/sys-auth/pambase/pambase-20150213-r2.ebuild b/sys-auth/pambase/pambase-20150213-r2.ebuild
16 new file mode 100644
17 index 00000000000..eae82f61e96
18 --- /dev/null
19 +++ b/sys-auth/pambase/pambase-20150213-r2.ebuild
20 @@ -0,0 +1,106 @@
21 +# Copyright 1999-2018 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +DESCRIPTION="PAM base configuration files"
27 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:PAM"
28 +SRC_URI="https://dev.gentoo.org/~vapier/dist/${P}.tar.xz"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -x86-fbsd ~amd64-linux ~x86-linux"
33 +IUSE="consolekit +cracklib debug elogind minimal mktemp +nullok pam_krb5 pam_ssh passwdqc securetty selinux +sha512 systemd"
34 +
35 +RESTRICT="binchecks"
36 +
37 +MIN_PAM_REQ=1.1.3
38 +
39 +RDEPEND="
40 + || (
41 + >=sys-libs/pam-${MIN_PAM_REQ}
42 + ( sys-auth/openpam sys-freebsd/freebsd-pam-modules )
43 + )
44 + consolekit? ( sys-auth/consolekit[pam] )
45 + cracklib? ( sys-libs/pam[cracklib] )
46 + elogind? ( sys-auth/elogind[pam] )
47 + mktemp? ( sys-auth/pam_mktemp )
48 + pam_krb5? (
49 + || ( >=sys-libs/pam-${MIN_PAM_REQ} sys-auth/openpam )
50 + sys-auth/pam_krb5
51 + )
52 + pam_ssh? ( sys-auth/pam_ssh )
53 + passwdqc? ( sys-auth/pam_passwdqc )
54 + selinux? ( sys-libs/pam[selinux] )
55 + sha512? ( >=sys-libs/pam-${MIN_PAM_REQ} )
56 + systemd? ( sys-apps/systemd[pam] )
57 +"
58 +DEPEND="
59 + app-arch/xz-utils
60 + app-portage/portage-utils
61 +"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${P}-selinux-note.patch #540096
65 + "${FILESDIR}"/${P}-elogind.patch #599498
66 + "${FILESDIR}"/${P}-gnome-keyring.patch #652194
67 +)
68 +
69 +pkg_setup() {
70 + local stcnt=0
71 +
72 + use consolekit && stcnt=$((stcnt+1))
73 + use elogind && stcnt=$((stcnt+1))
74 + use systemd && stcnt=$((stcnt+1))
75 +
76 + if [[ ${stcnt} -gt 1 ]] ; then
77 + ewarn "You are enabling ${stcnt} session trackers at the same time."
78 + ewarn "This is not a recommended setup to have. Please consider enabling"
79 + ewarn "only one of USE=\"consolekit\", USE=\"elogind\" or USE=\"systemd\"."
80 + fi
81 +}
82 +
83 +src_compile() {
84 + local implementation linux_pam_version
85 + if has_version sys-libs/pam; then
86 + implementation=linux-pam
87 + local ver_str=$(qatom $(best_version sys-libs/pam) | cut -d ' ' -f 3)
88 + linux_pam_version=$(printf "0x%02x%02x%02x" ${ver_str//\./ })
89 + elif has_version sys-auth/openpam; then
90 + implementation=openpam
91 + else
92 + die "PAM implementation not identified"
93 + fi
94 +
95 + use_var() {
96 + local varname=$(echo "$1" | tr '[:lower:]' '[:upper:]')
97 + local usename=${2-$(echo "$1" | tr '[:upper:]' '[:lower:]')}
98 + local varvalue=$(usex ${usename})
99 + echo "${varname}=${varvalue}"
100 + }
101 +
102 + emake \
103 + GIT=true \
104 + $(use_var debug) \
105 + $(use_var cracklib) \
106 + $(use_var passwdqc) \
107 + $(use_var consolekit) \
108 + $(use_var elogind) \
109 + $(use_var systemd) \
110 + $(use_var selinux) \
111 + $(use_var nullok) \
112 + $(use_var mktemp) \
113 + $(use_var pam_ssh) \
114 + $(use_var securetty) \
115 + $(use_var sha512) \
116 + $(use_var KRB5 pam_krb5) \
117 + $(use_var minimal) \
118 + IMPLEMENTATION=${implementation} \
119 + LINUX_PAM_VERSION=${linux_pam_version}
120 +}
121 +
122 +src_test() { :; }
123 +
124 +src_install() {
125 + emake GIT=true DESTDIR="${ED}" install
126 +}