Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-base/gdm/files/, gnome-base/gdm/
Date: Sat, 03 Feb 2018 20:56:08
Message-Id: 1517691220.c4eaab4165a3db91ac359c3b407f7da97c1d0b5b.leio@gentoo
1 commit: c4eaab4165a3db91ac359c3b407f7da97c1d0b5b
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 3 19:46:20 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 3 20:53:40 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4eaab41
7
8 gnome-base/gdm: remove old
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 gnome-base/gdm/Manifest | 2 -
13 .../gdm/files/gdm-3.22.1-pam-module-dir.patch | 52 -----
14 gnome-base/gdm/gdm-3.22.3-r1.ebuild | 218 ---------------------
15 gnome-base/gdm/gdm-3.24.2.ebuild | 213 --------------------
16 4 files changed, 485 deletions(-)
17
18 diff --git a/gnome-base/gdm/Manifest b/gnome-base/gdm/Manifest
19 index b7093703d82..95025337e8f 100644
20 --- a/gnome-base/gdm/Manifest
21 +++ b/gnome-base/gdm/Manifest
22 @@ -1,4 +1,2 @@
23 -DIST gdm-3.22.3.tar.xz 1110740 BLAKE2B 9b41a5e4a01acf14037622ee344613f80d6fc6ef352f8b655e9ec1ce939ca2d20de43f982aa54a24763695c612da5b3d9de8d0ce6080f487ccf1d644df95cbef SHA512 b87acfca13c1d71ed1d7390625d1c36d58cfcde0ea969fa29cde5cabcb2fdf386e30e3b4d3ca057c2cdb99c202dca19d2a478b55083c468c7fb595e69881aebf
24 -DIST gdm-3.24.2.tar.xz 1113644 BLAKE2B 597187008b8ef0ce05d0d3641550a0738a1eabc6d9f683b37bfd49bf71bcfa0b41f46951fe95bcbf18169c9a846df4ed63dda27a3c55dfabf8b5386f5023808a SHA512 6e2649bce5520532a2976bac8a47629fc4c852d7127b913c29a9c43a7dba26d75472a083cbfff7b64bab56deb38ed13d8387d4d302d55f263c80120255a4a270
25 DIST gdm-3.24.3.tar.xz 1113992 BLAKE2B 79ae5ccf0477779bdb05cea4f0e8b2766caee0552efe8fe044da655037bfd603f1e4ab89a4eb0687f786bf44e9fd1c27e07bc498a769c8f88f0cc22b2dd1c9b1 SHA512 d8edffb582545f452ec071990fd7d07d6cb755458bc77a9e1b807816f8202f70fc8177e4bb345125075347942c6760c5a5460e3570dc32ee2570ecc15e5f3345
26 DIST tango-gentoo-v1.1.tar.gz 29322 BLAKE2B 83fa2bf37727e60851dd679054fe1b153ebfea58c9a9a40f891f7d68d3b047b02e8effa1d1b4e08d64500a2072ce7200f159c92a352da7124de27e1b05bb6027 SHA512 87d47ddab68361db6d99866c51705dcb3e198f8345a1096859acf2c6cca5099dd23c7fb30d124f52c4933ea38fd45fadffbbe6ecbdfa84f5b60938a4824f9045
27
28 diff --git a/gnome-base/gdm/files/gdm-3.22.1-pam-module-dir.patch b/gnome-base/gdm/files/gdm-3.22.1-pam-module-dir.patch
29 deleted file mode 100644
30 index 7dc4392e41c..00000000000
31 --- a/gnome-base/gdm/files/gdm-3.22.1-pam-module-dir.patch
32 +++ /dev/null
33 @@ -1,52 +0,0 @@
34 -From 4fc9023bb86689f1391651fa744d9e63ee1d7bbc Mon Sep 17 00:00:00 2001
35 -From: =?UTF-8?q?R=C3=A9mi=20Cardona?= <remi@g.o>
36 -Date: Mon, 21 Nov 2016 08:18:32 +0100
37 -Subject: [PATCH] pam_gdm: allow setting pam module dir at configure time
38 -
39 -Code taken almost verbatim from gnome-keyring.
40 ----
41 - configure.ac | 10 +++++++++-
42 - pam_gdm/Makefile.am | 2 +-
43 - 2 files changed, 10 insertions(+), 2 deletions(-)
44 -
45 -diff --git a/configure.ac b/configure.ac
46 -index dd98992..e0074dd 100644
47 ---- a/configure.ac
48 -+++ b/configure.ac
49 -@@ -476,7 +476,7 @@ dnl ---------------------------------------------------------------------------
50 - dnl - Check for PAM stuff
51 - dnl ---------------------------------------------------------------------------
52 -
53 --dnl PAM prefix
54 -+dnl PAM prefix (configuration files)
55 - withval=""
56 - AC_ARG_WITH(pam-prefix,
57 - AS_HELP_STRING([--with-pam-prefix=<prefix>],
58 -@@ -492,6 +492,14 @@ else
59 - fi
60 - AC_SUBST(PAM_PREFIX)
61 -
62 -+dnl PAM dir (dynamic modules)
63 -+AC_ARG_WITH([pam-dir],
64 -+ [AC_HELP_STRING([--with-pam-dir=DIR],
65 -+ [directory to install pam modules in])],
66 -+ [], [with_pam_dir='${libdir}/security'])
67 -+PAM_DEST_DIR="$with_pam_dir"
68 -+AC_SUBST(PAM_DEST_DIR)
69 -+
70 - have_pam=no
71 - AC_CHECK_LIB(pam, pam_start, have_pam=yes)
72 -
73 -diff --git a/pam_gdm/Makefile.am b/pam_gdm/Makefile.am
74 -index 61d672b..980b31c 100644
75 ---- a/pam_gdm/Makefile.am
76 -+++ b/pam_gdm/Makefile.am
77 -@@ -36,4 +36,4 @@ pam_gdm_LTLIBRARIES = \
78 - pam_gdm.la \
79 - $(END_OF_LIST)
80 -
81 --pam_gdmdir = $(libdir)/security
82 -+pam_gdmdir = $(PAM_DEST_DIR)
83 ---
84 -2.10.2
85 -
86
87 diff --git a/gnome-base/gdm/gdm-3.22.3-r1.ebuild b/gnome-base/gdm/gdm-3.22.3-r1.ebuild
88 deleted file mode 100644
89 index ea15676a90d..00000000000
90 --- a/gnome-base/gdm/gdm-3.22.3-r1.ebuild
91 +++ /dev/null
92 @@ -1,218 +0,0 @@
93 -# Copyright 1999-2017 Gentoo Foundation
94 -# Distributed under the terms of the GNU General Public License v2
95 -
96 -EAPI=6
97 -GNOME2_LA_PUNT="yes"
98 -
99 -inherit autotools eutils gnome2 pam readme.gentoo-r1 systemd user versionator
100 -
101 -DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
102 -HOMEPAGE="https://wiki.gnome.org/Projects/GDM"
103 -
104 -SRC_URI="${SRC_URI}
105 - branding? ( https://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
106 -"
107 -
108 -LICENSE="
109 - GPL-2+
110 - branding? ( CC-BY-SA-4.0 )
111 -"
112 -
113 -SLOT="0"
114 -
115 -IUSE="accessibility audit branding fprint +introspection ipv6 plymouth selinux smartcard tcpd test wayland xinerama"
116 -
117 -KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh x86"
118 -
119 -# NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
120 -# nspr used by smartcard extension
121 -# dconf, dbus and g-s-d are needed at install time for dconf update
122 -# We need either systemd or >=openrc-0.12 to restart gdm properly, bug #463784
123 -COMMON_DEPEND="
124 - app-text/iso-codes
125 - >=dev-libs/glib-2.36:2[dbus]
126 - >=x11-libs/gtk+-2.91.1:3
127 - >=gnome-base/dconf-0.20
128 - >=gnome-base/gnome-settings-daemon-3.1.4
129 - gnome-base/gsettings-desktop-schemas
130 - >=media-libs/fontconfig-2.5.0:1.0
131 - >=media-libs/libcanberra-0.4[gtk3]
132 - sys-apps/dbus
133 - >=sys-apps/accountsservice-0.6.12
134 -
135 - x11-apps/sessreg
136 - x11-base/xorg-server
137 - x11-libs/libXi
138 - x11-libs/libXau
139 - x11-libs/libX11
140 - x11-libs/libXdmcp
141 - x11-libs/libXext
142 - x11-libs/libXft
143 - x11-libs/libxcb
144 - >=x11-misc/xdg-utils-1.0.2-r3
145 -
146 - virtual/pam
147 -
148 - >=sys-apps/systemd-186:0=[pam]
149 -
150 - sys-auth/pambase[systemd]
151 -
152 - audit? ( sys-process/audit )
153 - introspection? ( >=dev-libs/gobject-introspection-0.9.12:= )
154 - plymouth? ( sys-boot/plymouth )
155 - selinux? ( sys-libs/libselinux )
156 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
157 - xinerama? ( x11-libs/libXinerama )
158 -"
159 -# XXX: These deps are from session and desktop files in data/ directory
160 -# fprintd is used via dbus by gdm-fingerprint-extension
161 -# gnome-session-3.6 needed to avoid freezing with orca
162 -RDEPEND="${COMMON_DEPEND}
163 - >=gnome-base/gnome-session-3.6
164 - >=gnome-base/gnome-shell-3.1.90
165 - x11-apps/xhost
166 -
167 - accessibility? (
168 - >=app-accessibility/orca-3.10
169 - gnome-extra/mousetweaks )
170 - fprint? (
171 - sys-auth/fprintd
172 - sys-auth/pam_fprint )
173 -
174 - !gnome-extra/fast-user-switch-applet
175 -"
176 -DEPEND="${COMMON_DEPEND}
177 - app-text/docbook-xml-dtd:4.1.2
178 - dev-util/gdbus-codegen
179 - >=dev-util/intltool-0.40.0
180 - dev-util/itstool
181 - virtual/pkgconfig
182 - x11-proto/inputproto
183 - x11-proto/randrproto
184 - test? ( >=dev-libs/check-0.9.4 )
185 - xinerama? ( x11-proto/xineramaproto )
186 -"
187 -
188 -DOC_CONTENTS="
189 - To make GDM start at boot, run:\n
190 - # systemctl enable gdm.service\n
191 - \n
192 - For passwordless login to unlock your keyring, you need to install
193 - sys-auth/pambase with USE=gnome-keyring and set an empty password
194 - on your keyring. Use app-crypt/seahorse for that.\n
195 - \n
196 - You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
197 - for smartcard support
198 -"
199 -
200 -pkg_setup() {
201 - enewgroup gdm
202 - enewgroup video # Just in case it hasn't been created yet
203 - enewuser gdm -1 -1 /var/lib/gdm gdm,video
204 -
205 - # For compatibility with certain versions of nvidia-drivers, etc., need to
206 - # ensure that gdm user is in the video group
207 - if ! egetent group video | grep -q gdm; then
208 - # FIXME XXX: is this at all portable, ldap-safe, etc.?
209 - # XXX: egetent does not have a 1-argument form, so we can't use it to
210 - # get the list of gdm's groups
211 - local g=$(groups gdm)
212 - elog "Adding user gdm to video group"
213 - usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
214 - fi
215 -}
216 -
217 -src_prepare() {
218 - # ssh-agent handling must be done at xinitrc.d, bug #220603
219 - eapply "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
220 -
221 - # Gentoo does not have a fingerprint-auth pam stack
222 - eapply "${FILESDIR}/${PN}-3.8.4-fingerprint-auth.patch"
223 -
224 - # Show logo when branding is enabled
225 - use branding && eapply "${FILESDIR}/${PN}-3.8.4-logo.patch"
226 -
227 - # allow setting pam module dir, bug #599714
228 - eapply "${FILESDIR}/${PN}-3.22.1-pam-module-dir.patch"
229 -
230 - eautoreconf
231 - gnome2_src_prepare
232 -}
233 -
234 -src_configure() {
235 - local myconf
236 - # PAM is the only auth scheme supported
237 - # even though configure lists shadow and crypt
238 - # they don't have any corresponding code.
239 - # --with-at-spi-registryd-directory= needs to be passed explicitly because
240 - # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
241 - # Xevie is obsolete, bug #482304
242 - # --with-initial-vt=7 conflicts with plymouth, bug #453392
243 - ! use plymouth && myconf="${myconf} --with-initial-vt=7"
244 -
245 - gnome2_src_configure \
246 - --enable-gdm-xsession \
247 - --enable-user-display-server \
248 - --with-run-dir=/run/gdm \
249 - --localstatedir="${EPREFIX}"/var \
250 - --disable-static \
251 - --with-xdmcp=yes \
252 - --enable-authentication-scheme=pam \
253 - --with-default-pam-config=exherbo \
254 - --with-pam-dir=$(getpam_mod_dir) \
255 - --with-at-spi-registryd-directory="${EPREFIX}"/usr/libexec \
256 - --without-xevie \
257 - --enable-systemd-journal \
258 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
259 - $(use_with audit libaudit) \
260 - $(use_enable ipv6) \
261 - $(use_with plymouth) \
262 - $(use_with selinux) \
263 - $(use_with tcpd tcp-wrappers) \
264 - $(use_enable wayland wayland-support) \
265 - $(use_with xinerama) \
266 - ${myconf}
267 -}
268 -
269 -src_install() {
270 - gnome2_src_install
271 -
272 - if ! use accessibility ; then
273 - rm "${ED}"/usr/share/gdm/greeter/autostart/orca-autostart.desktop || die
274 - fi
275 -
276 - exeinto /etc/X11/xinit/xinitrc.d
277 - newexe "${FILESDIR}/49-keychain-r1" 49-keychain
278 - newexe "${FILESDIR}/50-ssh-agent-r1" 50-ssh-agent
279 -
280 - # gdm user's home directory
281 - keepdir /var/lib/gdm
282 - fowners gdm:gdm /var/lib/gdm
283 -
284 - # install XDG_DATA_DIRS gdm changes
285 - echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
286 - doenvd 99xdg-gdm
287 -
288 - use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
289 -
290 - readme.gentoo_create_doc
291 -}
292 -
293 -pkg_postinst() {
294 - local d ret
295 -
296 - gnome2_pkg_postinst
297 -
298 - # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
299 - ret=0
300 - ebegin "Fixing "${EROOT}"var/lib/gdm ownership"
301 - chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
302 - for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
303 - [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
304 - done
305 - eend ${ret}
306 -
307 - systemd_reenable gdm.service
308 -
309 - readme.gentoo_print_elog
310 -}
311
312 diff --git a/gnome-base/gdm/gdm-3.24.2.ebuild b/gnome-base/gdm/gdm-3.24.2.ebuild
313 deleted file mode 100644
314 index 98e6db80fbb..00000000000
315 --- a/gnome-base/gdm/gdm-3.24.2.ebuild
316 +++ /dev/null
317 @@ -1,213 +0,0 @@
318 -# Copyright 1999-2017 Gentoo Foundation
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=6
322 -GNOME2_LA_PUNT="yes"
323 -
324 -inherit eutils gnome2 pam readme.gentoo-r1 systemd user versionator
325 -
326 -DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
327 -HOMEPAGE="https://wiki.gnome.org/Projects/GDM"
328 -
329 -SRC_URI="${SRC_URI}
330 - branding? ( https://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
331 -"
332 -
333 -LICENSE="
334 - GPL-2+
335 - branding? ( CC-BY-SA-4.0 )
336 -"
337 -
338 -SLOT="0"
339 -
340 -IUSE="accessibility audit branding fprint +introspection ipv6 plymouth selinux smartcard tcpd test wayland xinerama"
341 -
342 -KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~x86"
343 -
344 -# NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
345 -# nspr used by smartcard extension
346 -# dconf, dbus and g-s-d are needed at install time for dconf update
347 -# We need either systemd or >=openrc-0.12 to restart gdm properly, bug #463784
348 -COMMON_DEPEND="
349 - app-text/iso-codes
350 - >=dev-libs/glib-2.36:2[dbus]
351 - >=x11-libs/gtk+-2.91.1:3
352 - >=gnome-base/dconf-0.20
353 - >=gnome-base/gnome-settings-daemon-3.1.4
354 - gnome-base/gsettings-desktop-schemas
355 - >=media-libs/fontconfig-2.5.0:1.0
356 - >=media-libs/libcanberra-0.4[gtk3]
357 - sys-apps/dbus
358 - >=sys-apps/accountsservice-0.6.35
359 -
360 - x11-apps/sessreg
361 - x11-base/xorg-server
362 - x11-libs/libXi
363 - x11-libs/libXau
364 - x11-libs/libX11
365 - x11-libs/libXdmcp
366 - x11-libs/libXext
367 - x11-libs/libXft
368 - x11-libs/libxcb
369 - >=x11-misc/xdg-utils-1.0.2-r3
370 -
371 - virtual/pam
372 - >=sys-apps/systemd-186:0=[pam]
373 -
374 - sys-auth/pambase[systemd]
375 -
376 - audit? ( sys-process/audit )
377 - introspection? ( >=dev-libs/gobject-introspection-0.9.12:= )
378 - plymouth? ( sys-boot/plymouth )
379 - selinux? ( sys-libs/libselinux )
380 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
381 - xinerama? ( x11-libs/libXinerama )
382 -"
383 -# XXX: These deps are from session and desktop files in data/ directory
384 -# fprintd is used via dbus by gdm-fingerprint-extension
385 -# gnome-session-3.6 needed to avoid freezing with orca
386 -RDEPEND="${COMMON_DEPEND}
387 - >=gnome-base/gnome-session-3.6
388 - >=gnome-base/gnome-shell-3.1.90
389 - x11-apps/xhost
390 -
391 - accessibility? (
392 - >=app-accessibility/orca-3.10
393 - gnome-extra/mousetweaks )
394 - fprint? (
395 - sys-auth/fprintd
396 - sys-auth/pam_fprint )
397 -
398 - !gnome-extra/fast-user-switch-applet
399 -"
400 -DEPEND="${COMMON_DEPEND}
401 - app-text/docbook-xml-dtd:4.1.2
402 - dev-util/gdbus-codegen
403 - >=dev-util/intltool-0.40.0
404 - dev-util/itstool
405 - virtual/pkgconfig
406 - x11-proto/inputproto
407 - x11-proto/randrproto
408 - test? ( >=dev-libs/check-0.9.4 )
409 - xinerama? ( x11-proto/xineramaproto )
410 -"
411 -
412 -DOC_CONTENTS="
413 - To make GDM start at boot, run:\n
414 - # systemctl enable gdm.service\n
415 - \n
416 - For passwordless login to unlock your keyring, you need to install
417 - sys-auth/pambase with USE=gnome-keyring and set an empty password
418 - on your keyring. Use app-crypt/seahorse for that.\n
419 - \n
420 - You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
421 - for smartcard support
422 -"
423 -
424 -pkg_setup() {
425 - enewgroup gdm
426 - enewgroup video # Just in case it hasn't been created yet
427 - enewuser gdm -1 -1 /var/lib/gdm gdm,video
428 -
429 - # For compatibility with certain versions of nvidia-drivers, etc., need to
430 - # ensure that gdm user is in the video group
431 - if ! egetent group video | grep -q gdm; then
432 - # FIXME XXX: is this at all portable, ldap-safe, etc.?
433 - # XXX: egetent does not have a 1-argument form, so we can't use it to
434 - # get the list of gdm's groups
435 - local g=$(groups gdm)
436 - elog "Adding user gdm to video group"
437 - usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
438 - fi
439 -}
440 -
441 -src_prepare() {
442 - # ssh-agent handling must be done at xinitrc.d, bug #220603
443 - eapply "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
444 -
445 - # Gentoo does not have a fingerprint-auth pam stack
446 - eapply "${FILESDIR}/${PN}-3.8.4-fingerprint-auth.patch"
447 -
448 - # Show logo when branding is enabled
449 - use branding && eapply "${FILESDIR}/${PN}-3.8.4-logo.patch"
450 -
451 - gnome2_src_prepare
452 -}
453 -
454 -src_configure() {
455 - local myconf
456 - # PAM is the only auth scheme supported
457 - # even though configure lists shadow and crypt
458 - # they don't have any corresponding code.
459 - # --with-at-spi-registryd-directory= needs to be passed explicitly because
460 - # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
461 - # Xevie is obsolete, bug #482304
462 - # --with-initial-vt=7 conflicts with plymouth, bug #453392
463 - ! use plymouth && myconf="${myconf} --with-initial-vt=7"
464 -
465 - gnome2_src_configure \
466 - --enable-gdm-xsession \
467 - --enable-user-display-server \
468 - --with-run-dir=/run/gdm \
469 - --localstatedir="${EPREFIX}"/var \
470 - --disable-static \
471 - --with-xdmcp=yes \
472 - --enable-authentication-scheme=pam \
473 - --with-default-pam-config=exherbo \
474 - --with-pam-mod-dir=$(getpam_mod_dir) \
475 - --with-at-spi-registryd-directory="${EPREFIX}"/usr/libexec \
476 - --without-xevie \
477 - --enable-systemd-journal \
478 - --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
479 - $(use_with audit libaudit) \
480 - $(use_enable ipv6) \
481 - $(use_with plymouth) \
482 - $(use_with selinux) \
483 - $(use_with tcpd tcp-wrappers) \
484 - $(use_enable wayland wayland-support) \
485 - $(use_with xinerama) \
486 - ${myconf}
487 -}
488 -
489 -src_install() {
490 - gnome2_src_install
491 -
492 - if ! use accessibility ; then
493 - rm "${ED}"/usr/share/gdm/greeter/autostart/orca-autostart.desktop || die
494 - fi
495 -
496 - exeinto /etc/X11/xinit/xinitrc.d
497 - newexe "${FILESDIR}/49-keychain-r1" 49-keychain
498 - newexe "${FILESDIR}/50-ssh-agent-r1" 50-ssh-agent
499 -
500 - # gdm user's home directory
501 - keepdir /var/lib/gdm
502 - fowners gdm:gdm /var/lib/gdm
503 -
504 - # install XDG_DATA_DIRS gdm changes
505 - echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
506 - doenvd 99xdg-gdm
507 -
508 - use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
509 -
510 - readme.gentoo_create_doc
511 -}
512 -
513 -pkg_postinst() {
514 - local d ret
515 -
516 - gnome2_pkg_postinst
517 -
518 - # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
519 - ret=0
520 - ebegin "Fixing "${EROOT}"var/lib/gdm ownership"
521 - chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
522 - for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
523 - [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
524 - done
525 - eend ${ret}
526 -
527 - systemd_reenable gdm.service
528 -
529 - readme.gentoo_print_elog
530 -}