Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-base/gdm/
Date: Fri, 28 Sep 2018 17:59:11
Message-Id: 1538089063.68e73f2651513b49c361cc73b374e3a4a456dbba.leio@gentoo
1 commit: 68e73f2651513b49c361cc73b374e3a4a456dbba
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 27 22:57:43 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 22:57:43 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=68e73f26
7
8 gnome-base/gdm: remove live ebuild, too outdated
9
10 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 gnome-base/gdm/gdm-9999.ebuild | 224 -----------------------------------------
14 1 file changed, 224 deletions(-)
15
16 diff --git a/gnome-base/gdm/gdm-9999.ebuild b/gnome-base/gdm/gdm-9999.ebuild
17 deleted file mode 100644
18 index 0ac9e91a..00000000
19 --- a/gnome-base/gdm/gdm-9999.ebuild
20 +++ /dev/null
21 @@ -1,224 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI="5"
26 -GCONF_DEBUG="yes"
27 -GNOME2_LA_PUNT="yes"
28 -
29 -inherit autotools eutils gnome2 pam readme.gentoo systemd user versionator
30 -if [[ ${PV} = 9999 ]]; then
31 - inherit gnome2-live
32 -fi
33 -
34 -DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
35 -HOMEPAGE="https://wiki.gnome.org/Projects/GDM"
36 -
37 -SRC_URI="${SRC_URI}
38 - branding? ( http://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
39 -"
40 -
41 -LICENSE="
42 - GPL-2+
43 - branding? ( CC-Sampling-Plus-1.0 )
44 -"
45 -
46 -SLOT="0"
47 -
48 -IUSE="accessibility audit branding fprint +introspection ipv6 plymouth selinux smartcard tcpd test wayland xinerama"
49 -
50 -if [[ ${PV} = 9999 ]]; then
51 - KEYWORDS=""
52 -else
53 - KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
54 -fi
55 -
56 -# NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
57 -# nspr used by smartcard extension
58 -# dconf, dbus and g-s-d are needed at install time for dconf update
59 -# We need either systemd or >=openrc-0.12 to restart gdm properly, bug #463784
60 -COMMON_DEPEND="
61 - app-text/iso-codes
62 - >=dev-libs/glib-2.36:2[dbus]
63 - >=x11-libs/gtk+-2.91.1:3
64 - >=gnome-base/dconf-0.20
65 - >=gnome-base/gnome-settings-daemon-3.1.4
66 - gnome-base/gsettings-desktop-schemas
67 - >=media-libs/fontconfig-2.5.0
68 - >=media-libs/libcanberra-0.4[gtk3]
69 - sys-apps/dbus
70 - >=sys-apps/accountsservice-0.6.12
71 -
72 - x11-apps/sessreg
73 - x11-base/xorg-server
74 - x11-libs/libXi
75 - x11-libs/libXau
76 - x11-libs/libX11
77 - x11-libs/libXdmcp
78 - x11-libs/libXext
79 - x11-libs/libXft
80 - >=x11-misc/xdg-utils-1.0.2-r3
81 -
82 - virtual/pam
83 -
84 - >=sys-apps/systemd-186:0=[pam]
85 -
86 - sys-auth/pambase[systemd]
87 -
88 - audit? ( sys-process/audit )
89 - introspection? ( >=dev-libs/gobject-introspection-0.9.12:= )
90 - plymouth? ( sys-boot/plymouth )
91 - selinux? ( sys-libs/libselinux )
92 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
93 - xinerama? ( x11-libs/libXinerama )
94 -"
95 -# XXX: These deps are from session and desktop files in data/ directory
96 -# fprintd is used via dbus by gdm-fingerprint-extension
97 -# gnome-session-3.6 needed to avoid freezing with orca
98 -RDEPEND="${COMMON_DEPEND}
99 - >=gnome-base/gnome-session-3.6
100 - >=gnome-base/gnome-shell-3.1.90
101 - gnome-extra/polkit-gnome:0
102 - x11-apps/xhost
103 - x11-themes/gnome-icon-theme-symbolic
104 -
105 - accessibility? (
106 - >=app-accessibility/orca-3.10
107 - gnome-extra/mousetweaks )
108 - fprint? (
109 - sys-auth/fprintd
110 - sys-auth/pam_fprint )
111 -
112 - !gnome-extra/fast-user-switch-applet
113 -"
114 -DEPEND="${COMMON_DEPEND}
115 - app-text/docbook-xml-dtd:4.1.2
116 - dev-util/gdbus-codegen
117 - >=dev-util/intltool-0.40.0
118 - dev-util/itstool
119 - virtual/pkgconfig
120 - x11-base/xorg-proto
121 - test? ( >=dev-libs/check-0.9.4 )
122 -"
123 -
124 -DOC_CONTENTS="
125 - To make GDM start at boot, run:\n
126 - # systemctl enable gdm.service\n
127 - \n
128 - For passwordless login to unlock your keyring, you need to install
129 - sys-auth/pambase with USE=gnome-keyring and set an empty password
130 - on your keyring. Use app-crypt/seahorse for that.\n
131 - \n
132 - You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
133 - for smartcard support
134 -"
135 -
136 -pkg_setup() {
137 - enewgroup gdm
138 - enewgroup video # Just in case it hasn't been created yet
139 - enewuser gdm -1 -1 /var/lib/gdm gdm,video
140 -
141 - # For compatibility with certain versions of nvidia-drivers, etc., need to
142 - # ensure that gdm user is in the video group
143 - if ! egetent group video | grep -q gdm; then
144 - # FIXME XXX: is this at all portable, ldap-safe, etc.?
145 - # XXX: egetent does not have a 1-argument form, so we can't use it to
146 - # get the list of gdm's groups
147 - local g=$(groups gdm)
148 - elog "Adding user gdm to video group"
149 - usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
150 - fi
151 -}
152 -
153 -src_prepare() {
154 - # ssh-agent handling must be done at xinitrc.d, bug #220603
155 - epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
156 -
157 - # Gentoo does not have a fingerprint-auth pam stack
158 - epatch "${FILESDIR}/${PN}-3.8.4-fingerprint-auth.patch"
159 -
160 - # Show logo when branding is enabled
161 - use branding && epatch "${FILESDIR}/${PN}-3.8.4-logo.patch"
162 -
163 - eautoreconf
164 -
165 - gnome2_src_prepare
166 -}
167 -
168 -src_configure() {
169 - local myconf
170 - # PAM is the only auth scheme supported
171 - # even though configure lists shadow and crypt
172 - # they don't have any corresponding code.
173 - # --with-at-spi-registryd-directory= needs to be passed explicitly because
174 - # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
175 - # Xevie is obsolete, bug #482304
176 - # --with-initial-vt=7 conflicts with plymouth, bug #453392
177 - ! use plymouth && myconf="${myconf} --with-initial-vt=7"
178 -
179 - gnome2_src_configure \
180 - --enable-gdm-xsession \
181 - --with-run-dir=/run/gdm \
182 - --localstatedir="${EPREFIX}"/var \
183 - --disable-static \
184 - --with-xdmcp=yes \
185 - --enable-authentication-scheme=pam \
186 - --with-default-pam-config=exherbo \
187 - --with-at-spi-registryd-directory="${EPREFIX}"/usr/libexec \
188 - --without-xevie \
189 - --enable-systemd-journal \
190 - $(use_with audit libaudit) \
191 - $(use_enable ipv6) \
192 - $(use_with plymouth) \
193 - $(use_with selinux) \
194 - $(systemd_with_unitdir) \
195 - $(use_with tcpd tcp-wrappers) \
196 - $(use_enable wayland wayland-support) \
197 - $(use_with xinerama) \
198 - ${myconf}
199 -}
200 -
201 -src_install() {
202 - gnome2_src_install
203 -
204 - if ! use accessibility ; then
205 - rm "${ED}"/usr/share/gdm/greeter/autostart/orca-autostart.desktop || die
206 - fi
207 -
208 - exeinto /etc/X11/xinit/xinitrc.d
209 - newexe "${FILESDIR}/49-keychain-r1" 49-keychain
210 - newexe "${FILESDIR}/50-ssh-agent-r1" 50-ssh-agent
211 -
212 - # gdm user's home directory
213 - keepdir /var/lib/gdm
214 - fowners gdm:gdm /var/lib/gdm
215 -
216 - # install XDG_DATA_DIRS gdm changes
217 - echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
218 - doenvd 99xdg-gdm
219 -
220 - use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
221 -
222 - readme.gentoo_create_doc
223 -}
224 -
225 -pkg_postinst() {
226 - local d ret
227 -
228 - gnome2_pkg_postinst
229 -
230 - # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
231 - ret=0
232 - ebegin "Fixing "${EROOT}"var/lib/gdm ownership"
233 - chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
234 - for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
235 - [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
236 - done
237 - eend ${ret}
238 -
239 - readme.gentoo_print_elog
240 -
241 - if ! version_is_at_least 3.16.0 ${REPLACING_VERSIONS}; then
242 - ewarn "GDM will now use a new TTY per logged user as explained at:"
243 - ewarn "https://wiki.gentoo.org/wiki/Project:GNOME/GNOME3-Troubleshooting#GDM_.3E.3D_3.16_opens_one_graphical_session_per_user"
244 - fi
245 -}