/[gentoo-x86]/gnome-base/gdm/gdm-3.4.1.ebuild
Gentoo

Contents of /gnome-base/gdm/gdm-3.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Dec 26 21:45:01 2012 UTC (4 months, 3 weeks ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump for Gnome 3.6. USE=introspection is now global. Clean up old revisions.

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key C6085806)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-3.4.1.ebuild,v 1.4 2012/09/27 08:54:42 tetromino Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7
8 inherit autotools eutils gnome2 pam systemd user
9
10 DESCRIPTION="GNOME Display Manager"
11 HOMEPAGE="https://live.gnome.org/GDM"
12
13 LICENSE="GPL-2+"
14 SLOT="0"
15 KEYWORDS="~amd64 ~sh ~x86"
16
17 IUSE="accessibility +consolekit +fallback fprint +gnome-shell ipv6 gnome-keyring +introspection plymouth selinux smartcard systemd tcpd test xinerama +xklavier"
18
19 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
20 # nspr used by smartcard extension
21 # dconf, dbus and g-s-d are needed at install time for dconf update
22 COMMON_DEPEND="
23 >=dev-libs/dbus-glib-0.74
24 >=dev-libs/glib-2.29.3:2
25 >=x11-libs/gtk+-2.91.1:3
26 >=x11-libs/pango-1.3
27 dev-libs/nspr
28 >=dev-libs/nss-3.11.1
29 >=media-libs/fontconfig-2.5.0
30 >=media-libs/libcanberra-0.4[gtk3]
31 >=x11-misc/xdg-utils-1.0.2-r3
32 >=sys-power/upower-0.9
33 >=sys-apps/accountsservice-0.6.12
34
35 gnome-base/dconf
36 >=gnome-base/gnome-settings-daemon-3.1.4
37 gnome-base/gsettings-desktop-schemas
38 sys-apps/dbus
39
40 app-text/iso-codes
41
42 x11-base/xorg-server
43 x11-libs/libXi
44 x11-libs/libXau
45 x11-libs/libX11
46 x11-libs/libXdmcp
47 x11-libs/libXext
48 x11-libs/libXft
49 x11-libs/libXrandr
50 x11-apps/sessreg
51
52 virtual/pam
53 consolekit? ( sys-auth/consolekit )
54
55 accessibility? ( x11-libs/libXevie )
56 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22[pam] )
57 introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
58 plymouth? ( sys-boot/plymouth )
59 selinux? ( sys-libs/libselinux )
60 systemd? ( >=sys-apps/systemd-39 )
61 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
62 xinerama? ( x11-libs/libXinerama )
63 xklavier? ( >=x11-libs/libxklavier-4 )"
64 DEPEND="${COMMON_DEPEND}
65 test? ( >=dev-libs/check-0.9.4 )
66 xinerama? ( x11-proto/xineramaproto )
67 app-text/docbook-xml-dtd:4.1.2
68 sys-devel/gettext
69 x11-proto/inputproto
70 x11-proto/randrproto
71 >=dev-util/intltool-0.40.0
72 >=app-text/scrollkeeper-0.1.4
73 >=app-text/gnome-doc-utils-0.3.2
74 virtual/pkgconfig"
75 # XXX: These deps are from session and desktop files in data/ directory
76 # at-spi:1 is needed for at-spi-registryd (spawned by simple-chooser)
77 # fprintd is used via dbus by gdm-fingerprint-extension
78 RDEPEND="${COMMON_DEPEND}
79 >=gnome-base/gnome-session-2.91.92
80 x11-apps/xhost
81 x11-themes/gnome-icon-theme-symbolic
82
83 accessibility? (
84 app-accessibility/gnome-mag
85 app-accessibility/gok
86 app-accessibility/orca
87 gnome-extra/at-spi:1 )
88 consolekit? ( gnome-extra/polkit-gnome )
89 fallback? ( x11-wm/metacity )
90 fprint? (
91 sys-auth/fprintd
92 sys-auth/pam_fprint )
93 gnome-shell? ( >=gnome-base/gnome-shell-3.1.90 )
94 !gnome-shell? ( x11-wm/metacity )
95 smartcard? (
96 app-crypt/coolkey
97 sys-auth/pam_pkcs11 )
98
99 !gnome-extra/fast-user-switch-applet"
100
101 pkg_setup() {
102 DOCS="AUTHORS ChangeLog NEWS README TODO"
103
104 # PAM is the only auth scheme supported
105 # even though configure lists shadow and crypt
106 # they don't have any corresponding code.
107 # --with-at-spi-registryd-directory= needs to be passed explicitly because
108 # of https://bugzilla.gnome.org/show_bug.cgi?id=607643#c4
109 G2CONF="${G2CONF}
110 --disable-schemas-install
111 --disable-static
112 --localstatedir=${EPREFIX}/var
113 --with-xdmcp=yes
114 --enable-authentication-scheme=pam
115 --with-pam-prefix=${EPREFIX}/etc
116 --with-at-spi-registryd-directory=${EPREFIX}/usr/libexec
117 $(use_with accessibility xevie)
118 $(use_enable ipv6)
119 $(use_enable xklavier libxklavier)
120 $(use_with consolekit console-kit)
121 $(use_with plymouth)
122 $(use_with selinux)
123 $(use_with systemd)
124 $(use_with tcpd tcp-wrappers)
125 $(use_with xinerama)"
126
127 enewgroup gdm
128 enewgroup video # Just in case it hasn't been created yet
129 enewuser gdm -1 -1 /var/lib/gdm gdm,video
130
131 # For compatibility with certain versions of nvidia-drivers, etc., need to
132 # ensure that gdm user is in the video group
133 if ! egetent group video | grep -q gdm; then
134 # FIXME XXX: is this at all portable, ldap-safe, etc.?
135 # XXX: egetent does not have a 1-argument form, so we can't use it to
136 # get the list of gdm's groups
137 local g=$(groups gdm)
138 elog "Adding user gdm to video group"
139 usermod -G video,${g// /,} gdm || die "Adding user gdm to video group failed"
140 fi
141 }
142
143 src_prepare() {
144 # remove unneeded linker directive for selinux, bug #41022
145 epatch "${FILESDIR}/${PN}-2.32.0-selinux-remove-attr.patch"
146
147 # daemonize so that the boot process can continue, bug #236701
148 epatch "${FILESDIR}/${PN}-2.32.0-fix-daemonize-regression.patch"
149
150 # GDM grabs VT2 instead of VT7, bug 261339, bug 284053, bug 288852
151 epatch "${FILESDIR}/${PN}-2.32.0-fix-vt-problems.patch"
152
153 # make custom session work, bug #216984
154 epatch "${FILESDIR}/${PN}-3.2.1.1-custom-session.patch"
155
156 # ssh-agent handling must be done at xinitrc.d, bug #220603
157 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
158
159 # fix libxklavier automagic support
160 epatch "${FILESDIR}/${PN}-2.32.0-automagic-libxklavier-support.patch"
161
162 # plymouth support (in next release)
163 epatch "${FILESDIR}/${P}-save-root-window.patch"
164 epatch "${FILESDIR}/${P}-plymouth.patch"
165
166 # don't load accessibility support at runtime when USE=-accessibility
167 use accessibility || epatch "${FILESDIR}/${PN}-3.3.92.1-disable-accessibility.patch"
168
169 # make gdm-fallback session the default if USE=-gnome-shell
170 if ! use gnome-shell; then
171 sed -e "s:'gdm-shell':'gdm-fallback':" \
172 -i data/00-upstream-settings || die "sed failed"
173 fi
174
175 mkdir -p "${S}"/m4
176 intltoolize --force --copy --automake || die "intltoolize failed"
177 eautoreconf
178
179 gnome2_src_prepare
180 }
181
182 src_install() {
183 gnome2_src_install
184
185 # Install the systemd unit file
186 systemd_dounit "${FILESDIR}/3.2.1.1/gdm.service"
187
188 # gdm-binary should be gdm to work with our init (#5598)
189 rm -f "${ED}/usr/sbin/gdm"
190 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/sbin/gdm"
191 # our x11's scripts point to /usr/bin/gdm
192 ln -sfn /usr/sbin/gdm-binary "${ED}/usr/bin/gdm"
193
194 # log, etc.
195 keepdir /var/log/gdm
196
197 # add xinitrc.d scripts
198 exeinto /etc/X11/xinit/xinitrc.d
199 doexe "${FILESDIR}/49-keychain"
200 doexe "${FILESDIR}/50-ssh-agent"
201
202 # install XDG_DATA_DIRS gdm changes
203 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
204 doenvd 99xdg-gdm
205
206 # install PAM files
207 mkdir "${T}/pam.d" || die "mkdir failed"
208 cp "${FILESDIR}/3.2.1.1"/gdm{,-autologin,-password,-fingerprint,-smartcard,-welcome} \
209 "${T}/pam.d" || die "cp failed"
210 use gnome-keyring && sed -i "s:#Keyring=::g" "${T}/pam.d"/*
211 dopamd "${T}/pam.d"/*
212 }
213
214 pkg_postinst() {
215 gnome2_pkg_postinst
216
217 dbus-launch dconf update || die "'dconf update' failed"
218
219 ewarn
220 ewarn "This is an EXPERIMENTAL release, please bear with its bugs and"
221 ewarn "visit us on #gentoo-desktop if you have problems."
222 ewarn
223
224 elog "To make GDM start at boot, edit /etc/conf.d/xdm"
225 elog "and then execute 'rc-update add xdm default'."
226 elog "If you already have GDM running, you will need to restart it."
227
228 elog
229 elog "GDM ignores most non-localization environment variables. If you"
230 elog "need GDM to launch gnome-session with a particular environment,"
231 elog "you need to use pam_env.so in /etc/pam.d/gdm-welcome; see"
232 elog "the pam_env man page for more information."
233 elog
234
235 if use gnome-keyring; then
236 elog "For autologin to unlock your keyring, you need to set an empty"
237 elog "password on your keyring. Use app-crypt/seahorse for that."
238 fi
239
240 if [ -f "/etc/X11/gdm/gdm.conf" ]; then
241 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
242 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
243 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
244 fi
245
246 # https://bugzilla.redhat.com/show_bug.cgi?id=513579
247 # Lennart says this problem is fixed, but users are still reporting problems
248 # XXX: Do we want this elog?
249 # if has_version "media-libs/libcanberra[pulseaudio]" ; then
250 # elog
251 # elog "You have media-libs/libcanberra with the pulseaudio USE flag"
252 # elog "enabled. GDM will start a pulseaudio process to play sounds. This"
253 # elog "process should automatically terminate when a user logs into a"
254 # elog "desktop session. If GDM's pulseaudio fails to terminate and"
255 # elog "causes problems for users' audio, you can prevent GDM from"
256 # elog "starting pulseaudio by editing /var/lib/gdm/.pulse/client.conf"
257 # elog "so it contains the following two lines:"
258 # elog
259 # elog "autospawn = no"
260 # elog "daemon-binary = /bin/true"
261 # fi
262 }
263
264 pkg_postrm() {
265 gnome2_pkg_postrm
266
267 if rc-config list default | grep -q xdm; then
268 elog "To remove GDM from startup please execute"
269 elog "'rc-update del xdm default'"
270 fi
271 }

  ViewVC Help
Powered by ViewVC 1.1.13