Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwallet-pam/
Date: Mon, 05 Jun 2017 11:20:18
Message-Id: 1496661595.e25a7df4a65053c79faf270140b9a4730da7e7bd.asturm@gentoo
1 commit: e25a7df4a65053c79faf270140b9a4730da7e7bd
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 11:18:35 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 11:19:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e25a7df4
7
8 kde-plasma/kwallet-pam: Drop USE=oldwallet
9
10 Gentoo-bug: 597610
11
12 Package-Manager: Portage-2.3.5, Repoman-2.3.1
13
14 kde-plasma/kwallet-pam/kwallet-pam-5.8.7-r1.ebuild | 53 ++++++++++++++++++++++
15 kde-plasma/kwallet-pam/kwallet-pam-5.9.5-r1.ebuild | 53 ++++++++++++++++++++++
16 2 files changed, 106 insertions(+)
17
18 diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.8.7-r1.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.8.7-r1.ebuild
19 new file mode 100644
20 index 00000000000..c91205f1557
21 --- /dev/null
22 +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.8.7-r1.ebuild
23 @@ -0,0 +1,53 @@
24 +# Copyright 1999-2017 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=6
28 +
29 +inherit kde5
30 +
31 +DESCRIPTION="KWallet PAM module to not enter password again"
32 +LICENSE="LGPL-2.1"
33 +KEYWORDS="~amd64 ~arm ~x86"
34 +IUSE=""
35 +
36 +DEPEND="
37 + dev-libs/libgcrypt:0=
38 + virtual/pam
39 +"
40 +RDEPEND="${DEPEND}
41 + net-misc/socat
42 +"
43 +
44 +src_configure() {
45 + local mycmakeargs=(
46 + -DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
47 + -DKWALLET4=0
48 + )
49 + kde5_src_configure
50 +}
51 +
52 +pkg_postinst() {
53 + check_dm() {
54 + if [[ -e "${ROOT}${2}" ]] ; then
55 + if grep -Eq "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" && \
56 + grep -Eq "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" ; then
57 + elog " ${1} - ${2} ...GOOD"
58 + else
59 + ewarn " ${1} - ${2} ...BAD"
60 + fi
61 + fi
62 + }
63 + elog "This package enables auto-unlocking of kde-frameworks/kwallet:5."
64 + elog "List of things to make it work:"
65 + elog "1. Use standard blowfish encryption instead of GPG"
66 + elog "2. Use same password for login and kwallet"
67 + elog "3. A display manager with support for PAM"
68 + elog "4.a Have the following lines in the display manager's pam.d file:"
69 + elog " -auth optional pam_kwallet5.so"
70 + elog " -session optional pam_kwallet5.so auto_start"
71 + elog "4.b Checking installed DMs..."
72 + has_version "x11-misc/sddm" && check_dm "SDDM" "/etc/pam.d/sddm"
73 + has_version "x11-misc/lightdm" && check_dm "LightDM" "/etc/pam.d/lightdm"
74 + elog
75 + elog "See also: https://wiki.gentoo.org/wiki/KDE#KWallet_auto-unlocking"
76 +}
77
78 diff --git a/kde-plasma/kwallet-pam/kwallet-pam-5.9.5-r1.ebuild b/kde-plasma/kwallet-pam/kwallet-pam-5.9.5-r1.ebuild
79 new file mode 100644
80 index 00000000000..c91205f1557
81 --- /dev/null
82 +++ b/kde-plasma/kwallet-pam/kwallet-pam-5.9.5-r1.ebuild
83 @@ -0,0 +1,53 @@
84 +# Copyright 1999-2017 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=6
88 +
89 +inherit kde5
90 +
91 +DESCRIPTION="KWallet PAM module to not enter password again"
92 +LICENSE="LGPL-2.1"
93 +KEYWORDS="~amd64 ~arm ~x86"
94 +IUSE=""
95 +
96 +DEPEND="
97 + dev-libs/libgcrypt:0=
98 + virtual/pam
99 +"
100 +RDEPEND="${DEPEND}
101 + net-misc/socat
102 +"
103 +
104 +src_configure() {
105 + local mycmakeargs=(
106 + -DCMAKE_INSTALL_LIBDIR="/$(get_libdir)"
107 + -DKWALLET4=0
108 + )
109 + kde5_src_configure
110 +}
111 +
112 +pkg_postinst() {
113 + check_dm() {
114 + if [[ -e "${ROOT}${2}" ]] ; then
115 + if grep -Eq "auth\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" && \
116 + grep -Eq "session\s+optional\s+pam_kwallet5.so" "${ROOT}${2}" ; then
117 + elog " ${1} - ${2} ...GOOD"
118 + else
119 + ewarn " ${1} - ${2} ...BAD"
120 + fi
121 + fi
122 + }
123 + elog "This package enables auto-unlocking of kde-frameworks/kwallet:5."
124 + elog "List of things to make it work:"
125 + elog "1. Use standard blowfish encryption instead of GPG"
126 + elog "2. Use same password for login and kwallet"
127 + elog "3. A display manager with support for PAM"
128 + elog "4.a Have the following lines in the display manager's pam.d file:"
129 + elog " -auth optional pam_kwallet5.so"
130 + elog " -session optional pam_kwallet5.so auto_start"
131 + elog "4.b Checking installed DMs..."
132 + has_version "x11-misc/sddm" && check_dm "SDDM" "/etc/pam.d/sddm"
133 + has_version "x11-misc/lightdm" && check_dm "LightDM" "/etc/pam.d/lightdm"
134 + elog
135 + elog "See also: https://wiki.gentoo.org/wiki/KDE#KWallet_auto-unlocking"
136 +}