Gentoo Archives: gentoo-commits

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