1 |
mrpouet 09/08/24 22:54:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gdm-2.20.10-r2.ebuild |
5 |
Removed: gdm-2.20.10-r1.ebuild |
6 |
Log: |
7 |
Fix bug #281442, wrong DESKTOP_SESSION set if ${HOME}/.dmrc is empty and autologin enabled. Thanks to Fabio Erculiani <lxnay@××××××××××××.org> for this work. Clean up old revision |
8 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.302 gnome-base/gdm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.302&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?rev=1.302&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/ChangeLog?r1=1.301&r2=1.302 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v |
20 |
retrieving revision 1.301 |
21 |
retrieving revision 1.302 |
22 |
diff -u -r1.301 -r1.302 |
23 |
--- ChangeLog 26 Jul 2009 22:10:50 -0000 1.301 |
24 |
+++ ChangeLog 24 Aug 2009 22:54:11 -0000 1.302 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for gnome-base/gdm |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.301 2009/07/26 22:10:50 eva Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/ChangeLog,v 1.302 2009/08/24 22:54:11 mrpouet Exp $ |
30 |
+ |
31 |
+*gdm-2.20.10-r2 (24 Aug 2009) |
32 |
+ |
33 |
+ 24 Aug 2009; Romain Perier <mrpouet@g.o> |
34 |
+ -gdm-2.20.10-r1.ebuild, +gdm-2.20.10-r2.ebuild, |
35 |
+ +files/gdm-2.20.10-desktop-session-dmrc-autologin.patch: |
36 |
+ Fix bug #281442, wrong DESKTOP_SESSION set if ${HOME}/.dmrc is empty and |
37 |
+ autologin enabled. Thanks to Fabio Erculiani <lxnay@××××××××××××.org> for |
38 |
+ this work. Clean up old revision. |
39 |
|
40 |
26 Jul 2009; Gilles Dartiguelongue <eva@g.o> files/50-ssh-agent, |
41 |
-gdm-2.20.10.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 gnome-base/gdm/gdm-2.20.10-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/gdm-2.20.10-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-base/gdm/gdm-2.20.10-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: gdm-2.20.10-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2009 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gdm/gdm-2.20.10-r2.ebuild,v 1.1 2009/08/24 22:54:11 mrpouet Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
inherit eutils pam gnome2 |
59 |
|
60 |
DESCRIPTION="GNOME Display Manager" |
61 |
HOMEPAGE="http://www.gnome.org/projects/gdm/" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
66 |
|
67 |
IUSE_LIBC="elibc_glibc" |
68 |
IUSE="accessibility afs branding +consolekit dmx ipv6 gnome-keyring pam remote selinux tcpd xinerama $IUSE_LIBC" |
69 |
|
70 |
# Name of the tarball with gentoo specific files |
71 |
GDM_EXTRA="${PN}-2.20.9-gentoo-files-r1" |
72 |
|
73 |
SRC_URI="${SRC_URI} |
74 |
mirror://gentoo/${GDM_EXTRA}.tar.bz2 |
75 |
branding? ( mirror://gentoo/gentoo-gdm-theme-r3.tar.bz2 )" |
76 |
|
77 |
RDEPEND=">=dev-libs/glib-2.12 |
78 |
>=x11-libs/gtk+-2.6 |
79 |
>=x11-libs/pango-1.3 |
80 |
>=gnome-base/libglade-2 |
81 |
>=gnome-base/libgnomecanvas-2 |
82 |
>=gnome-base/librsvg-1.1.1 |
83 |
>=dev-libs/libxml2-2.4.12 |
84 |
>=media-libs/libart_lgpl-2.3.11 |
85 |
x11-libs/gksu |
86 |
x11-libs/libXi |
87 |
x11-libs/libXau |
88 |
x11-libs/libX11 |
89 |
x11-libs/libXext |
90 |
x11-apps/sessreg |
91 |
x11-libs/libXdmcp |
92 |
xinerama? ( x11-libs/libXinerama ) |
93 |
consolekit? ( |
94 |
sys-auth/consolekit |
95 |
dev-libs/dbus-glib ) |
96 |
accessibility? ( x11-libs/libXevie ) |
97 |
afs? ( net-fs/openafs sys-libs/lwp ) |
98 |
dmx? ( x11-libs/libdmx ) |
99 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.22[pam] ) |
100 |
pam? ( virtual/pam ) |
101 |
!pam? ( elibc_glibc? ( sys-apps/shadow ) ) |
102 |
remote? ( gnome-extra/zenity ) |
103 |
selinux? ( sys-libs/libselinux ) |
104 |
tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) |
105 |
>=x11-misc/xdg-utils-1.0.2-r3" |
106 |
DEPEND="${RDEPEND} |
107 |
dmx? ( x11-proto/dmxproto ) |
108 |
xinerama? ( x11-proto/xineramaproto ) |
109 |
sys-devel/gettext |
110 |
x11-proto/inputproto |
111 |
>=dev-util/intltool-0.35 |
112 |
>=dev-util/pkgconfig-0.19 |
113 |
>=app-text/scrollkeeper-0.1.4 |
114 |
>=app-text/gnome-doc-utils-0.3.2" |
115 |
PDEPEND="pam? ( >=sys-auth/pambase-20090430[consolekit=,gnome-keyring=] )" |
116 |
|
117 |
DOCS="AUTHORS ChangeLog NEWS README TODO" |
118 |
|
119 |
pkg_setup() { |
120 |
G2CONF="${G2CONF} |
121 |
--with-prefetch |
122 |
--sysconfdir=/etc/X11 |
123 |
--localstatedir=/var |
124 |
--with-xdmcp=yes |
125 |
--with-pam-prefix=/etc |
126 |
SOUND_PROGRAM=/usr/bin/gdmplay |
127 |
$(use_enable accessibility xevie) |
128 |
$(use_enable ipv6) |
129 |
$(use_enable remote secureremote) |
130 |
$(use_with consolekit console-kit) |
131 |
$(use_with dmx) |
132 |
$(use_with selinux) |
133 |
$(use_with tcpd tcp-wrappers) |
134 |
$(use_with xinerama)" |
135 |
|
136 |
if use pam; then |
137 |
G2CONF="${G2CONF} --enable-authentication-scheme=pam" |
138 |
else |
139 |
G2CONF="${G2CONF} --enable-console-helper=no" |
140 |
if use elibc_glibc ; then |
141 |
G2CONF="${G2CONF} --enable-authentication-scheme=shadow" |
142 |
else |
143 |
G2CONF="${G2CONF} --enable-authentication-scheme=crypt" |
144 |
fi |
145 |
fi |
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 (#41022) |
155 |
epatch "${FILESDIR}/${PN}-2.13.0.1-selinux-remove-attr.patch" |
156 |
|
157 |
# Add gksu to gdmsetup menu entry |
158 |
epatch "${FILESDIR}/${PN}-2.20.2-gksu.patch" |
159 |
|
160 |
# Fix parallel install, bug #217037 |
161 |
epatch "${FILESDIR}/${PN}-2.20.9-parallel-make.patch" |
162 |
|
163 |
# Make custom session work, bug #216984 |
164 |
epatch "${FILESDIR}/${PN}-2.20.10-custom-session.patch" |
165 |
|
166 |
# ssh-agent handling must be done at xinitrc.d, bug #220603 |
167 |
epatch "${FILESDIR}/${PN}-2.20.10-xinitrc-ssh-agent.patch" |
168 |
|
169 |
# Fix wrong DESKTOP_SESSION set if ${HOME}/.dmrc is not found or |
170 |
# does not contain any relevant data and autologin enabled, bug #281442 |
171 |
epatch "${FILESDIR}/${P}-desktop-session-dmrc-autologin.patch" |
172 |
} |
173 |
|
174 |
src_install() { |
175 |
gnome2_src_install |
176 |
|
177 |
local gentoodir="${WORKDIR}/${GDM_EXTRA}" |
178 |
|
179 |
# gdm-binary should be gdm to work with our init (#5598) |
180 |
rm -f "${D}/usr/sbin/gdm" |
181 |
dosym /usr/sbin/gdm-binary /usr/sbin/gdm |
182 |
|
183 |
# our x11's scripts point to /usr/bin/gdm |
184 |
dosym /usr/sbin/gdm-binary /usr/bin/gdm |
185 |
|
186 |
# log, etc. |
187 |
keepdir /var/log/gdm |
188 |
keepdir /var/gdm |
189 |
|
190 |
fowners root:gdm /var/gdm |
191 |
fperms 1770 /var/gdm |
192 |
|
193 |
# add a custom xsession .desktop by default (#44537) |
194 |
exeinto /etc/X11/dm/Sessions |
195 |
doexe "${gentoodir}/custom.desktop" |
196 |
|
197 |
# add xinitrc.d scripts |
198 |
exeinto /etc/X11/xinit/xinitrc.d |
199 |
doexe "${FILESDIR}/49-keychain" || die "doexe 1 failed" |
200 |
doexe "${FILESDIR}/50-ssh-agent" || die "doexe 2 failed" |
201 |
|
202 |
# install XDG_DATA_DIRS gdm changes |
203 |
echo 'XDG_DATA_DIRS="/usr/share/gdm"' > 99xdg-gdm |
204 |
doenvd 99xdg-gdm || die "doenvd failed" |
205 |
|
206 |
# add a custom sound playing script (#248253) |
207 |
dobin "${gentoodir}/gdmplay" || die "dobin failed" |
208 |
|
209 |
# avoid file collision, bug #213118 |
210 |
rm -f "${D}/usr/share/xsessions/gnome.desktop" |
211 |
|
212 |
# We replace the pam stuff by our own |
213 |
rm -rf "${D}/etc/pam.d" |
214 |
|
215 |
if use pam ; then |
216 |
use gnome-keyring && sed -i "s:#Keyring=::g" "${gentoodir}"/pam.d/* |
217 |
|
218 |
dopamd "${gentoodir}"/pam.d/* |
219 |
dopamsecurity console.apps "${gentoodir}/security/console.apps/gdmsetup" |
220 |
fi |
221 |
|
222 |
# use graphical greeter local |
223 |
dosed "s:#Greeter=/usr/libexec/gdmlogin:Greeter=/usr/libexec/gdmgreeter:" \ |
224 |
/usr/share/gdm/defaults.conf |
225 |
|
226 |
# list available users |
227 |
dosed "s:^#MinimalUID=.*:MinimalUID=1000:" /usr/share/gdm/defaults.conf |
228 |
dosed "s:^#IncludeAll=.*:IncludeAll=true:" /usr/share/gdm/defaults.conf |
229 |
|
230 |
# Fix old X11R6 paths |
231 |
dosed "s:/usr/X11R6/bin:/usr/bin:" /usr/share/gdm/defaults.conf |
232 |
|
233 |
# Use Clearlooks as default theme, bug #268496 |
234 |
dosed "s:#GtkTheme=Default:GtkTheme=Clearlooks:" /usr/share/gdm/defaults.conf |
235 |
|
236 |
# Move Gentoo theme in |
237 |
if use branding ; then |
238 |
mv "${WORKDIR}"/gentoo-* "${D}/usr/share/gdm/themes" |
239 |
fi |
240 |
} |
241 |
|
242 |
pkg_postinst() { |
243 |
gnome2_pkg_postinst |
244 |
|
245 |
elog "To make GDM start at boot, edit /etc/conf.d/xdm" |
246 |
elog "and then execute 'rc-update add xdm default'." |
247 |
|
248 |
elog "GDM has changed the location of its configuration file. Please" |
249 |
elog "edit /etc/X11/gdm/custom.conf. The factory defaults are located" |
250 |
elog "at /usr/share/gdm/{defaults.conf,factory-defaults.conf}" |
251 |
|
252 |
elog "See README.install for more information about the change." |
253 |
|
254 |
if use gnome-keyring; then |
255 |
elog "For autologin to unlock your keyring, you need to set an empty" |
256 |
elog "password on your keyring. Use app-crypt/seahorse for that." |
257 |
fi |
258 |
|
259 |
if [ -f "/etc/X11/gdm/gdm.conf" ]; then |
260 |
elog "You had /etc/X11/gdm/gdm.conf which is the old configuration" |
261 |
elog "file. It has been moved to /etc/X11/gdm/gdm-pre-gnome-2.16" |
262 |
mv /etc/X11/gdm/gdm.conf /etc/X11/gdm/gdm-pre-gnome-2.16 |
263 |
fi |
264 |
|
265 |
# Soft restart, assumes Gentoo defaults for file locations |
266 |
# Do restart after gdm.conf move above |
267 |
FIFOFILE=/var/gdm/.gdmfifo |
268 |
PIDFILE=/var/run/gdm.pid |
269 |
|
270 |
if [ -w ${FIFOFILE} ] ; then |
271 |
if [ -f ${PIDFILE} ] ; then |
272 |
if kill -0 `cat ${PIDFILE}`; then |
273 |
(echo;echo SOFT_RESTART) >> ${FIFOFILE} |
274 |
fi |
275 |
fi |
276 |
fi |
277 |
} |
278 |
|
279 |
pkg_postrm() { |
280 |
gnome2_pkg_postrm |
281 |
|
282 |
if [ "$(rc-config list default | grep xdm)" != "" ] ; then |
283 |
elog "To remove GDM from startup please execute" |
284 |
elog "'rc-update del xdm default'" |
285 |
fi |
286 |
} |