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: gdm-2.32.0.ebuild ChangeLog
Date: Thu, 04 Nov 2010 23:22:34
Message-Id: 20101104232229.6043E20054@flycatcher.gentoo.org
1 eva 10/11/04 23:22:29
2
3 Modified: ChangeLog
4 Added: gdm-2.32.0.ebuild
5 Log:
6 Version bump. Update all patches against master and stop shipping them in a separate tarball, their size does not justify it.
7
8 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.332 gnome-base/gdm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.332&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.332&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.331&r2=1.332
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v
20 retrieving revision 1.331
21 retrieving revision 1.332
22 diff -u -r1.331 -r1.332
23 --- ChangeLog 1 Nov 2010 07:19:28 -0000 1.331
24 +++ ChangeLog 4 Nov 2010 23:22:29 -0000 1.332
25 @@ -1,6 +1,18 @@
26 # ChangeLog for gnome-base/gdm
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.331 2010/11/01 07:19:28 ford_prefect Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.332 2010/11/04 23:22:29 eva Exp $
30 +
31 +*gdm-2.32.0 (04 Nov 2010)
32 +
33 + 04 Nov 2010; Gilles Dartiguelongue <eva@g.o> +gdm-2.32.0.ebuild,
34 + +files/gdm-2.32.0-automagic-libxklavier-support.patch,
35 + +files/gdm-2.32.0-broken-VT-detection.patch,
36 + +files/gdm-2.32.0-custom-session.patch,
37 + +files/gdm-2.32.0-fix-daemonize-regression.patch,
38 + +files/gdm-2.32.0-selinux-remove-attr.patch,
39 + +files/gdm-2.32.0-xinitrc-ssh-agent.patch:
40 + Version bump. Update all patches against master and stop shipping them in
41 + a separate tarball, their size does not justify it.
42
43 01 Nov 2010; Arun Raghavan <ford_prefect@g.o> gdm-2.28.2-r1.ebuild:
44 Clarify GTK+ dep as being gtk+:2
45
46
47
48 1.1 gnome-base/gdm/gdm-2.32.0.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-2.32.0.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gdm/gdm-2.32.0.ebuild?rev=1.1&content-type=text/plain
52
53 Index: gdm-2.32.0.ebuild
54 ===================================================================
55 # Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.32.0.ebuild,v 1.1 2010/11/04 23:22:29 eva Exp $
58
59 EAPI="3"
60 GCONF_DEBUG="yes"
61
62 inherit autotools eutils gnome2 pam
63
64 DESCRIPTION="GNOME Display Manager"
65 HOMEPAGE="http://www.gnome.org/projects/gdm/"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~sh ~sparc ~x86"
70
71 IUSE_LIBC="elibc_glibc"
72 IUSE="accessibility +consolekit ipv6 gnome-keyring selinux tcpd test xinerama +xklavier $IUSE_LIBC"
73
74 # Name of the tarball with gentoo specific files
75 GDM_EXTRA="${PN}-2.20.9-gentoo-files-r1"
76
77 SRC_URI="${SRC_URI}
78 mirror://gentoo/${GDM_EXTRA}.tar.bz2"
79
80 # NOTE: x11-base/xorg-server dep is for X_SERVER_PATH etc, bug #295686
81 RDEPEND="
82 >=dev-libs/dbus-glib-0.74
83 >=dev-libs/glib-2.22:2
84 >=x11-libs/gtk+-2.20.2:2
85 >=x11-libs/pango-1.3
86 >=media-libs/libcanberra-0.4[gtk]
87 >=gnome-base/gconf-2.31.3
88 >=gnome-base/gnome-panel-2
89 >=gnome-base/gnome-session-2.28
90 >=x11-misc/xdg-utils-1.0.2-r3
91 >=sys-power/upower-0.9
92 app-text/iso-codes
93
94 x11-base/xorg-server
95 x11-libs/libXi
96 x11-libs/libXau
97 x11-libs/libX11
98 x11-libs/libXdmcp
99 x11-libs/libXext
100 x11-libs/libXft
101 x11-apps/sessreg
102
103 virtual/pam
104 consolekit? ( sys-auth/consolekit )
105
106 accessibility? ( x11-libs/libXevie )
107 gnome-keyring? ( >=gnome-base/gnome-keyring-2.22[pam] )
108 selinux? ( sys-libs/libselinux )
109 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
110 xinerama? ( x11-libs/libXinerama )
111 xklavier? ( >=x11-libs/libxklavier-4 )
112
113 !gnome-extra/fast-user-switch-applet"
114 DEPEND="${RDEPEND}
115 test? ( >=dev-libs/check-0.9.4 )
116 xinerama? ( x11-proto/xineramaproto )
117 app-text/docbook-xml-dtd:4.1.2
118 sys-devel/gettext
119 x11-proto/inputproto
120 >=dev-util/intltool-0.40
121 >=dev-util/pkgconfig-0.19
122 >=app-text/scrollkeeper-0.1.4
123 >=app-text/gnome-doc-utils-0.3.2"
124 PDEPEND=">=sys-auth/pambase-20090430[consolekit=,gnome-keyring=]"
125
126 pkg_setup() {
127 DOCS="AUTHORS ChangeLog NEWS README TODO"
128
129 # PAM is the only auth scheme supported
130 # even though configure lists shadow and crypt
131 # they don't have any corresponding code
132 G2CONF="${G2CONF}
133 --disable-schemas-install
134 --localstatedir=/var
135 --with-xdmcp=yes
136 --enable-authentication-scheme=pam
137 --with-pam-prefix=/etc
138 SOUND_PROGRAM=/usr/bin/gdmplay
139 $(use_with accessibility xevie)
140 $(use_enable ipv6)
141 $(use_enable xklavier libxklavier)
142 $(use_with consolekit console-kit)
143 $(use_with selinux)
144 $(use_with tcpd tcp-wrappers)
145 $(use_with xinerama)"
146
147 enewgroup gdm
148 enewuser gdm -1 -1 /var/lib/gdm gdm
149 }
150
151 src_prepare() {
152 gnome2_src_prepare
153
154 # remove unneeded linker directive for selinux, bug #41022
155 epatch "${FILESDIR}/${PN}-2.32.0-selinux-remove-attr.patch"
156
157 # daemonize so that the boot process can continue, bug #236701
158 epatch "${FILESDIR}/${PN}-2.32.0-fix-daemonize-regression.patch"
159
160 # fix VT grab problem causing GDM to grab VT2 instead of 7, bug #261339
161 epatch "${FILESDIR}/${PN}-2.32.0-broken-VT-detection.patch"
162
163 # make custom session work, bug #216984
164 epatch "${FILESDIR}/${PN}-2.32.0-custom-session.patch"
165
166 # ssh-agent handling must be done at xinitrc.d, bug #220603
167 epatch "${FILESDIR}/${PN}-2.32.0-xinitrc-ssh-agent.patch"
168
169 # fix libxklavier automagic support
170 epatch "${FILESDIR}/${PN}-2.32.0-automagic-libxklavier-support.patch"
171
172 mkdir "${S}"/m4
173 intltoolize --force --copy --automake || die "intltoolize failed"
174 eautoreconf
175 }
176
177 src_install() {
178 gnome2_src_install
179
180 local gentoodir="${WORKDIR}/${GDM_EXTRA}"
181
182 # gdm-binary should be gdm to work with our init (#5598)
183 rm -f "${D}/usr/sbin/gdm"
184 dosym /usr/sbin/gdm-binary /usr/sbin/gdm
185
186 # our x11's scripts point to /usr/bin/gdm
187 dosym /usr/sbin/gdm-binary /usr/bin/gdm
188
189 # log, etc.
190 keepdir /var/log/gdm
191 keepdir /var/gdm
192
193 fowners root:gdm /var/gdm
194 fperms 1770 /var/gdm
195
196 # add a custom xsession .desktop by default (#44537)
197 exeinto /etc/X11/dm/Sessions
198 doexe "${gentoodir}/custom.desktop" || die "doexe 1 failed"
199
200 # add xinitrc.d scripts
201 exeinto /etc/X11/xinit/xinitrc.d
202 doexe "${FILESDIR}/49-keychain" || die "doexe 2 failed"
203 doexe "${FILESDIR}/50-ssh-agent" || die "doexe 3 failed"
204
205 # install XDG_DATA_DIRS gdm changes
206 echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm
207 doenvd 99xdg-gdm || die "doenvd failed"
208
209 # add a custom sound playing script (#248253)
210 dobin "${gentoodir}/gdmplay"
211
212 # avoid file collision, bug #213118
213 rm -f "${D}/usr/share/xsessions/gnome.desktop"
214
215 # We replace the pam stuff by our own
216 rm -rf "${D}/etc/pam.d"
217
218 use gnome-keyring && sed -i "s:#Keyring=::g" "${gentoodir}"/pam.d/*
219
220 dopamd "${gentoodir}"/pam.d/*
221 dopamsecurity console.apps "${gentoodir}/security/console.apps/gdmsetup"
222 }
223
224 pkg_postinst() {
225 gnome2_pkg_postinst
226
227 ewarn
228 ewarn "This is an EXPERIMENTAL release, please bear with its bugs and"
229 ewarn "visit us on #gentoo-desktop if you have problems."
230 ewarn
231
232 elog "To make GDM start at boot, edit /etc/conf.d/xdm"
233 elog "and then execute 'rc-update add xdm default'."
234 elog "If you already have GDM running, you will need to restart it."
235
236 if use gnome-keyring; then
237 elog "For autologin to unlock your keyring, you need to set an empty"
238 elog "password on your keyring. Use app-crypt/seahorse for that."
239 fi
240
241 if [ -f "/etc/X11/gdm/gdm.conf" ]; then
242 elog "You had /etc/X11/gdm/gdm.conf which is the old configuration"
243 elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16"
244 mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16
245 fi
246 }
247
248 pkg_postrm() {
249 gnome2_pkg_postrm
250
251 if rc-config list default | grep -q xdm; then
252 elog "To remove GDM from startup please execute"
253 elog "'rc-update del xdm default'"
254 fi
255 }