1 |
commit: 516252c09b0ddc19ec508a92203f5f92d57296d1 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Feb 27 17:16:34 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 2 19:23:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=516252c0 |
7 |
|
8 |
kde-base/kdebase-startkde: Backport kwalletd-pam integration |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
.../files/kdebase-startkde-kwalletd-pam.patch | 25 ++++++ |
13 |
.../kdebase-startkde-4.11.22-r1.ebuild | 96 ++++++++++++++++++++++ |
14 |
2 files changed, 121 insertions(+) |
15 |
|
16 |
diff --git a/kde-base/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch b/kde-base/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch |
17 |
new file mode 100644 |
18 |
index 0000000..c70a07f |
19 |
--- /dev/null |
20 |
+++ b/kde-base/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch |
21 |
@@ -0,0 +1,25 @@ |
22 |
+From: Àlex Fiestas <afiestas@×××.org> |
23 |
+Date: Mon, 28 Apr 2014 16:05:07 +0000 |
24 |
+Subject: [startkde] Send env to kwalletd in case of pam-kwallet |
25 |
+X-Git-Tag: v4.96.0 |
26 |
+X-Git-Url: http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=9581a52a5d734435d0cef759e20d1af2473dd15e |
27 |
+--- |
28 |
+[startkde] Send env to kwalletd in case of pam-kwallet |
29 |
+--- |
30 |
+ |
31 |
+ |
32 |
+--- a/startkde/startkde.cmake |
33 |
++++ b/startkde/startkde.cmake |
34 |
+@@ -329,6 +329,11 @@ |
35 |
+ |
36 |
+ XDG_CURRENT_DESKTOP=KDE |
37 |
+ export XDG_CURRENT_DESKTOP |
38 |
++ |
39 |
++# At this point all the environment is ready, let's send it to kwalletd if running |
40 |
++if test -n "PAM_KWALLET_LOGIN" ; then |
41 |
++ env | socat STDIN UNIX-CONNECT:$PAM_KWALLET_LOGIN |
42 |
++fi |
43 |
+ |
44 |
+ # We set LD_BIND_NOW to increase the efficiency of kdeinit. |
45 |
+ # kdeinit unsets this variable before loading applications. |
46 |
+ |
47 |
|
48 |
diff --git a/kde-base/kdebase-startkde/kdebase-startkde-4.11.22-r1.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-4.11.22-r1.ebuild |
49 |
new file mode 100644 |
50 |
index 0000000..47f9483 |
51 |
--- /dev/null |
52 |
+++ b/kde-base/kdebase-startkde/kdebase-startkde-4.11.22-r1.ebuild |
53 |
@@ -0,0 +1,96 @@ |
54 |
+# Copyright 1999-2016 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+# $Id$ |
57 |
+ |
58 |
+EAPI=5 |
59 |
+ |
60 |
+KMNAME="kde-workspace" |
61 |
+KMNOMODULE="true" |
62 |
+inherit kde4-meta prefix |
63 |
+ |
64 |
+DESCRIPTION="Startkde script, which starts a complete KDE session, and associated scripts" |
65 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
66 |
+IUSE="+wallpapers" |
67 |
+ |
68 |
+# The KDE apps called from the startkde script. |
69 |
+# These provide the most minimal KDE desktop. |
70 |
+RDEPEND=" |
71 |
+ $(add_kdebase_dep kcminit) |
72 |
+ $(add_kdeapps_dep kdebase-runtime-meta) |
73 |
+ $(add_kdeapps_dep kfmclient) |
74 |
+ $(add_kdeapps_dep knotify) |
75 |
+ $(add_kdeapps_dep kreadconfig) |
76 |
+ $(add_kdebase_dep krunner) |
77 |
+ $(add_kdebase_dep ksmserver) |
78 |
+ $(add_kdebase_dep ksplash) |
79 |
+ $(add_kdebase_dep kstartupconfig) |
80 |
+ $(add_kdebase_dep kwin) |
81 |
+ $(add_kdeapps_dep phonon-kde) |
82 |
+ $(add_kdeapps_dep plasma-apps) |
83 |
+ $(add_kdebase_dep plasma-workspace) |
84 |
+ $(add_kdebase_dep systemsettings) |
85 |
+ x11-apps/mkfontdir |
86 |
+ x11-apps/xmessage |
87 |
+ x11-apps/xprop |
88 |
+ x11-apps/xrandr |
89 |
+ x11-apps/xrdb |
90 |
+ x11-apps/xsetroot |
91 |
+ x11-apps/xset |
92 |
+ wallpapers? ( $(add_kdeapps_dep kde-wallpapers '' 15.08.3) ) |
93 |
+" |
94 |
+ |
95 |
+KMEXTRACTONLY=" |
96 |
+ ConfigureChecks.cmake |
97 |
+ kdm/ |
98 |
+ startkde.cmake |
99 |
+" |
100 |
+ |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}/gentoo-startkde4-4.patch" |
103 |
+ "${FILESDIR}/${PN}-kscreen.patch" |
104 |
+ "${FILESDIR}/${PN}-kwalletd-pam.patch" |
105 |
+) |
106 |
+ |
107 |
+src_prepare() { |
108 |
+ kde4-meta_src_prepare |
109 |
+ |
110 |
+ cp "${FILESDIR}/KDE-4" "${T}" |
111 |
+ |
112 |
+ # fix ${EPREFIX} |
113 |
+ eprefixify startkde.cmake "${T}/KDE-4" |
114 |
+} |
115 |
+ |
116 |
+src_install() { |
117 |
+ kde4-meta_src_install |
118 |
+ |
119 |
+ # startup and shutdown scripts |
120 |
+ insinto /etc/kde/startup |
121 |
+ doins "${FILESDIR}/agent-startup.sh" |
122 |
+ |
123 |
+ insinto /etc/kde/shutdown |
124 |
+ doins "${FILESDIR}/agent-shutdown.sh" |
125 |
+ |
126 |
+ # x11 session script |
127 |
+ exeinto /etc/X11/Sessions |
128 |
+ doexe "${T}/KDE-4" |
129 |
+ |
130 |
+ # freedesktop compliant session script |
131 |
+ sed -e "s:\${BIN_INSTALL_DIR}:${EPREFIX}/usr/bin:g" \ |
132 |
+ "${S}/kdm/kfrontend/sessions/kde-plasma.desktop.cmake" > "${T}/KDE-4.desktop" |
133 |
+ insinto /usr/share/xsessions |
134 |
+ doins "${T}/KDE-4.desktop" |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst () { |
138 |
+ kde4-meta_pkg_postinst |
139 |
+ |
140 |
+ echo |
141 |
+ elog "To enable gpg-agent and/or ssh-agent in KDE sessions," |
142 |
+ elog "edit ${EPREFIX}/etc/kde/startup/agent-startup.sh and" |
143 |
+ elog "${EPREFIX}/etc/kde/shutdown/agent-shutdown.sh" |
144 |
+ echo |
145 |
+ elog "The name of the session script has changed." |
146 |
+ elog "If you currently have XSESSION=\"kde-$(get_kde_version)\" in your" |
147 |
+ elog "configuration files, you will need to change it to" |
148 |
+ elog "XSESSION=\"KDE-4\"" |
149 |
+} |