Gentoo Archives: gentoo-commits

From: "Gilles Dartiguelongue (eva)" <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-base/gdm: ChangeLog gdm-3.12.1.ebuild
Date: Sun, 27 Apr 2014 16:48:39
Message-Id: 20140427164833.084BB2004B@flycatcher.gentoo.org
1 eva 14/04/27 16:48:32
2
3 Modified: ChangeLog
4 Added: gdm-3.12.1.ebuild
5 Log:
6 Version bump for Gnome 3.12.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key C6085806)
9
10 Revision Changes Path
11 1.401 gnome-base/gdm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.401&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.401&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.400&r2=1.401
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
20 retrieving revision 1.400
21 retrieving revision 1.401
22 diff -u -r1.400 -r1.401
23 --- ChangeLog 27 Apr 2014 01:46:41 -0000 1.400
24 +++ ChangeLog 27 Apr 2014 16:48:32 -0000 1.401
25 @@ -1,6 +1,11 @@
26 # ChangeLog for gnome-base/gdm
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.400 2014/04/27 01:46:41 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.401 2014/04/27 16:48:32 eva Exp $
30 +
31 +*gdm-3.12.1 (27 Apr 2014)
32 +
33 + 27 Apr 2014; Gilles Dartiguelongue <eva@g.o> +gdm-3.12.1.ebuild:
34 + Version bump for Gnome 3.12.
35
36 27 Apr 2014; Patrick Lauer <patrick@g.o> gdm-3.10.0.1-r1.ebuild,
37 gdm-3.10.0.1.ebuild, metadata.xml:
38
39
40
41 1.1 gnome-base/gdm/gdm-3.12.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.12.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-3.12.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: gdm-3.12.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.12.1.ebuild,v 1.1 2014/04/27 16:48:32 eva Exp $
51
52 EAPI="5"
53 GNOME2_LA_PUNT="yes"
54
55 inherit autotools eutils gnome2 pam readme.gentoo systemd user
56
57 DESCRIPTION="GNOME Display Manager for managing graphical display servers and user logins"
58 HOMEPAGE="https://wiki.gnome.org/GDM"
59
60 SRC_URI="${SRC_URI}
61 branding? ( http://www.mail-archive.com/tango-artists@×××××××××××××××××.org/msg00043/tango-gentoo-v1.1.tar.gz )
62 "
63
64 LICENSE="
65 GPL-2+
66 branding? ( CC-Sampling-Plus-1.0 )
67 "
68
69 SLOT="0"
70 IUSE="accessibility audit branding fprint +introspection ipv6 plymouth selinux smartcard +systemd tcpd test wayland xinerama"
71 REQUIRED_USE="wayland? ( systemd )"
72 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
73
74 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
75 # nspr used by smartcard extension
76 # dconf, dbus and g-s-d are needed at install time for dconf update
77 # We need either systemd or >=openrc-0.12 to restart gdm properly, bug #463784
78 COMMON_DEPEND="
79 app-text/iso-codes
80 >=dev-libs/glib-2.36:2
81 >=x11-libs/gtk+-2.91.1:3
82 >=gnome-base/dconf-0.20
83 >=gnome-base/gnome-settings-daemon-3.1.4
84 gnome-base/gsettings-desktop-schemas
85 >=media-libs/fontconfig-2.5.0
86 >=media-libs/libcanberra-0.4[gtk3]
87 sys-apps/dbus
88 >=sys-apps/accountsservice-0.6.12
89
90 x11-apps/sessreg
91 x11-base/xorg-server
92 x11-libs/libXi
93 x11-libs/libXau
94 x11-libs/libX11
95 x11-libs/libXdmcp
96 x11-libs/libXext
97 x11-libs/libXft
98 x11-libs/libXrandr
99 >=x11-misc/xdg-utils-1.0.2-r3
100
101 virtual/pam
102 systemd? ( >=sys-apps/systemd-186:0=[pam] )
103 !systemd? (
104 >=x11-base/xorg-server-1.14.3-r1
105 >=sys-auth/consolekit-0.4.5_p20120320-r2
106 !<sys-apps/openrc-0.12
107 )
108 sys-auth/pambase[systemd?]
109
110 audit? ( sys-process/audit )
111 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
112 plymouth? ( sys-boot/plymouth )
113 selinux? ( sys-libs/libselinux )
114 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
115 xinerama? ( x11-libs/libXinerama )
116 "
117 # XXX: These deps are from session and desktop files in data/ directory
118 # fprintd is used via dbus by gdm-fingerprint-extension
119 # gnome-session-3.6 needed to avoid freezing with orca
120 RDEPEND="${COMMON_DEPEND}
121 >=gnome-base/gnome-session-3.6
122 >=gnome-base/gnome-shell-3.1.90
123 gnome-extra/polkit-gnome:0
124 x11-apps/xhost
125 x11-themes/gnome-icon-theme-symbolic
126
127 accessibility? (
128 >=app-accessibility/orca-3.10
129 app-accessibility/caribou
130 gnome-extra/mousetweaks )
131 fprint? (
132 sys-auth/fprintd
133 sys-auth/pam_fprint )
134
135 !gnome-extra/fast-user-switch-applet
136 "
137 DEPEND="${COMMON_DEPEND}
138 app-text/docbook-xml-dtd:4.1.2
139 >=dev-util/intltool-0.40.0
140 virtual/pkgconfig
141 x11-proto/inputproto
142 x11-proto/randrproto
143 test? ( >=dev-libs/check-0.9.4 )
144 xinerama? ( x11-proto/xineramaproto )
145 "
146
147 DOC_CONTENTS="
148 To make GDM start at boot, run:\n
149 # systemctl enable gdm.service\n
150 \n
151 For passwordless login to unlock your keyring, you need to install
152 sys-auth/pambase with USE=gnome-keyring and set an empty password
153 on your keyring. Use app-crypt/seahorse for that.\n
154 \n
155 You may need to install app-crypt/coolkey and sys-auth/pam_pkcs11
156 for smartcard support
157 "
158
159 pkg_setup() {
160 enewgroup gdm
161 enewgroup video # Just in case it hasn't been created yet
162 enewuser gdm -1 -1 /var/lib/gdm gdm,video
163
164 # For compatibility with certain versions of nvidia-drivers, etc., need to
165 # ensure that gdm user is in the video group
166 if ! egetent group video | grep -q gdm; then
167 # FIXME XXX: is this at all portable, ldap-safe, etc.?
168 # XXX: egetent does not have a 1-argument form, so we can't use it to
169 # get the list of gdm's groups
170 local g=$(groups gdm)
171 elog "Adding user gdm to video group"
172 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
173 fi
174 }
175
176 src_prepare() {
177 # make custom session work, bug #216984
178 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
179
180 # ssh-agent handling must be done at xinitrc.d, bug #220603
181 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
182
183 # Gentoo does not have a fingerprint-auth pam stack
184 epatch "${FILESDIR}/${PN}-3.8.4-fingerprint-auth.patch"
185
186 # Show logo when branding is enabled
187 use branding && epatch "${FILESDIR}/${PN}-3.8.4-logo.patch"
188
189 eautoreconf
190
191 gnome2_src_prepare
192 }
193
194 src_configure() {
195 local myconf
196 # PAM is the only auth scheme supported
197 # even though configure lists shadow and crypt
198 # they don't have any corresponding code.
199 # --with-at-spi-registryd-directory= needs to be passed explicitly because
200 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
201 # Xevie is obsolete, bug #482304
202 # --with-initial-vt=7 conflicts with plymouth, bug #453392
203 ! use plymouth && myconf="${myconf} --with-initial-vt=7"
204
205 gnome2_src_configure \
206 --with-run-dir=/run/gdm \
207 --localstatedir="${EPREFIX}"/var \
208 --disable-static \
209 --with-xdmcp=yes \
210 --enable-authentication-scheme=pam \
211 --with-default-pam-config=exherbo \
212 --with-at-spi-registryd-directory="${EPREFIX}"/usr/libexec \
213 --with-consolekit-directory="${EPREFIX}"/usr/lib/ConsoleKit \
214 --with-initial-vt=7 \
215 --without-xevie \
216 $(use_with audit libaudit) \
217 $(use_enable ipv6) \
218 $(use_with plymouth) \
219 $(use_with selinux) \
220 $(use_with systemd) \
221 $(use_with !systemd console-kit) \
222 $(use_enable systemd systemd-journal) \
223 $(systemd_with_unitdir) \
224 $(use_with tcpd tcp-wrappers) \
225 $(use_enable wayland wayland-support) \
226 $(use_with xinerama) \
227 ITSTOOL=$(type -P true) \
228 ${myconf}
229 }
230
231 src_install() {
232 gnome2_src_install
233
234 if ! use accessibility ; then
235 rm "${ED}"/usr/share/gdm/greeter/autostart/orca-autostart.desktop || die
236 fi
237
238 insinto /etc/X11/xinit/xinitrc.d
239 newins "${FILESDIR}/49-keychain-r1" 49-keychain
240 newins "${FILESDIR}/50-ssh-agent-r1" 50-ssh-agent
241
242 # log, etc.
243 keepdir /var/log/gdm
244
245 # gdm user's home directory
246 keepdir /var/lib/gdm
247 fowners gdm:gdm /var/lib/gdm
248
249 # install XDG_DATA_DIRS gdm changes
250 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
251 doenvd 99xdg-gdm
252
253 use branding && newicon "${WORKDIR}/tango-gentoo-v1.1/scalable/gentoo.svg" gentoo-gdm.svg
254
255 readme.gentoo_create_doc
256 }
257
258 pkg_postinst() {
259 local d ret
260
261 gnome2_pkg_postinst
262
263 # bug #436456; gdm crashes if /var/lib/gdm subdirs are not owned by gdm:gdm
264 ret=0
265 ebegin "Fixing "${EROOT}"var/lib/gdm ownership"
266 chown gdm:gdm "${EROOT}var/lib/gdm" || ret=1
267 for d in "${EROOT}var/lib/gdm/"{.cache,.config,.local}; do
268 [[ ! -e "${d}" ]] || chown -R gdm:gdm "${d}" || ret=1
269 done
270 eend ${ret}
271
272 readme.gentoo_print_elog
273
274 if [[ -f "/etc/X11/gdm/gdm.conf" ]]; then
275 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
276 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
277 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
278 fi
279 }