1
%define sysconfdir /etc
3
Summary: The GNOME Display Manager.
9
Group: User Interface/X
10
Source: ftp://ftp.5z.com/pub/unix/gdm-%{version}.tar.gz
11
BuildRoot: %{_tmppath}/gdm-%{version}-root
12
Prereq: /usr/sbin/useradd
14
Requires: gnome-libs >= 1.0.17
15
Requires: gtk2 >= 2.6.0
16
BuildRequires: usermode, libglade-devel
17
BuildRequires: gnome-libs-devel >= 1.0.17
18
BuildRequires: gdk-pixbuf-devel >= 0.7.0
21
Gdm (the GNOME Display Manager) is a highly configurable
22
reimplementation of xdm, the X Display Manager. Gdm allows you to log
23
into your system with the X Window System running and supports running
24
several different X sessions on your local machine at the same time.
30
CFLAGS="-g $RPM_OPT_FLAGS" ./configure --localstatedir=%{_localstatedir} \
31
--prefix=%{_prefix} --sysconfdir=%{sysconfdir}/X11 \
32
--bindir=%{_bindir} --datadir=%{_datadir} --sbindir=%{_sbindir} \
33
--enable-console-helper --with-pam-prefix=%{sysconfdir}
38
rm -rf $RPM_BUILD_ROOT
40
/usr/sbin/useradd -r gdm > /dev/null 2>&1 || /bin/true
42
make sysconfdir=$RPM_BUILD_ROOT%{sysconfdir}/X11 \
43
prefix=$RPM_BUILD_ROOT%{_prefix} \
44
bindir=$RPM_BUILD_ROOT%{_bindir} \
45
datadir=$RPM_BUILD_ROOT%{_datadir} \
46
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
47
sbindir=$RPM_BUILD_ROOT%{_sbindir} \
48
PAM_PREFIX=$RPM_BUILD_ROOT%{sysconfdir} \
52
# install RH specific session files
53
# rm -f $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/*
55
# install -m 755 config/Default.redhat $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/Default
56
# install -m 755 config/Gnome $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/Gnome
57
# ln -sf Default $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Sessions/default
59
# change default Init script to be Red Hat default
60
# Note that this just sets up background and we already do that ourselves
61
#ln -sf ../../xdm/Xsetup_0 $RPM_BUILD_ROOT%{sysconfdir}/X11/gdm/Init/Default
64
# move pam.d stuff to right place
65
# mv $RPM_BUILD_ROOT%{sysconfdir}/X11/pam.d $RPM_BUILD_ROOT%{sysconfdir}
66
# move security stuff to right place
67
# mv $RPM_BUILD_ROOT%{sysconfdir}/X11/security $RPM_BUILD_ROOT%{sysconfdir}
68
%find_lang %{name}-2.4
71
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
74
/usr/sbin/useradd -u 42 -r gdm > /dev/null 2>&1
75
# ignore errors, as we can't disambiguate between gdm already existed
76
# and couldn't create account with the current adduser.
80
# Attempt to restart GDM softly by use of the fifo. Wont work on older
81
# then 2.2.3.1 versions but should work nicely on later upgrades.
82
# FIXME: this is just way too complex
83
FIFOFILE=`grep '^ServAuthDir=' %{sysconfdir}/X11/gdm/gdm.conf | sed -e 's/^ServAuthDir=//'`
84
if test x$FIFOFILE = x ; then
85
FIFOFILE=%{_localstatedir}/gdm/.gdmfifo
87
FIFOFILE="$FIFOFILE"/.gdmfifo
90
PIDFILE=`gdmflexiserver --command="GET_CONFIG daemon/PidFile"`
91
CHECKPIDFILE=`echo $PIDFILE | sed 's/^\([^ ]*\) .*$/\1/'`
92
if [ "x$CHECKPIDFILE" = "xOK" ]; then
93
PIDFILE=`echo $PIDFILE | sed 's/^.* \(.*\)$/\1/'`
98
if test x$PIDFILE = x ; then
99
PIDFILE=/var/run/gdm.pid
101
if test -w $FIFOFILE ; then
102
if test -f $PIDFILE ; then
103
if kill -0 `cat $PIDFILE` ; then
104
(echo;echo SOFT_RESTART) >> $FIFOFILE
108
# ignore error in the above
111
%files -f %name-2.4.lang
112
%defattr(-, root, root)
114
%doc AUTHORS COPYING ChangeLog NEWS README
118
%{_libdir}/gtk-2.0/modules/*
119
%config %{sysconfdir}/pam.d/*
120
%config %{sysconfdir}/X11/gdm
121
%config %{sysconfdir}/security/console.apps/*
122
%{_datadir}/pixmaps/*
123
%{_datadir}/xsessions/*
125
%{_datadir}/applications/*
126
%{_datadir}/gnome/capplets/*
129
%{_datadir}/gnome/help/gdm
130
%{_prefix}/man/man*/*
131
%{_localstatedir}/scrollkeeper/*/*
132
%{_localstatedir}/scrollkeeper/scrollkeeper_docs
134
%attr(1770, root, gdm) %dir %{_localstatedir}/gdm
135
%attr(755, root, root) %dir %{_localstatedir}/log/gdm
139
* Mon Aug 26 2003 George Lebl <jirka@5z.com>
140
- whack localstatedir
143
* Mon Aug 25 2003 George Lebl <jirka@5z.com>
146
* Mon Jun 9 2003 George Lebl <jirka@5z.com>
147
- Updated for the new session setup
149
* Mon May 5 2003 George Lebl <jirka@5z.com>
150
- Updated the lang stuff, and the file lists
152
* Tue Nov 6 2001 Gregory Leblanc <gleblanc@linuxweasel.com>
153
- removed some unnecessary %defines
154
- fixed find_lang stuff
155
- added some BuildRequires lines
157
* Sun Jul 01 2001 George Lebl <jirka@5z.com>
160
* Sun May 24 2001 George Lebl <jirka@5z.com>
161
- Hmmm, simplified the file listing, dunno why normally people list
162
things file by file/dir by dir, but the old file list was out of date
164
* Sun May 06 2001 George Lebl <jirka@5z.com>
165
- Kill the Failsafe script. GDM will now do failsafe itself, in an actual
166
failsafe way (meaning it will work with greater degree of hosage)
168
* Wed Mar 07 2001 George Lebl <jirka@5z.com>
169
- Fixups, move the security dir as well and build with console helper and
170
hardwire the sysconfdir to /etc as that seems broke on my 6.2 box otherwise
172
* Wed Mar 07 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
173
- finalize patches that have been pending. Merge changes forward, and
176
* Mon Mar 05 2001 Lee Mallabone <lee0@callnetuk.com>
177
- Change glade file paths and add gdmchooser glade file.
179
* Wed Feb 28 2001 Lee Mallabone <lee0@callnetuk.com>
180
- Add necessary paths/flags to use console-helper for gdmconfig.
182
* Thu Feb 22 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
183
- %define localstatedir /var/lib and related changes
185
* Tue Feb 20 2001 Gregory Leblanc <gleblanc@cu-portland.edu>
188
* Fri Feb 03 2001 George Lebl <jirka@5z.com>
189
- Add gdmconfig files
191
* Fri Feb 02 2001 George Lebl <jirka@5z.com>
192
- Remove all the patches and do the voodoo that I don't do so well
193
to make this thingie work with 2.0.97.1
195
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
196
- Modify Default.session and Failsafe.session not to add -login option to bash
197
- exec the session scripts with the user's shell with a hyphen prepended
198
- doesn't seem to actually work yet with tcsh, but it doesn't seem to
199
break anything. needs a look to see why it doesn't work
201
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
202
- Link PreSession/Default to xdm/GiveConsole
203
- Link PostSession/Default to xdm/TakeConsole
205
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
206
- Fix the fix to the fix (8877)
207
- remove docs/gdm-manual.txt which doesn't seem to exist from %doc
209
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
210
- Enhance 8877 fix by not deleting the "Please login"
213
* Fri Feb 04 2000 Havoc Pennington <hp@redhat.com>
214
- Try to fix bug 8877 by clearing the message below
215
the entry box when the prompt changes. may turn
216
out to be a bad idea.
218
* Mon Jan 17 2000 Elliot Lee <sopwith@redhat.com>
219
- Fix bug #7666: exec Xsession instead of just running it
221
* Mon Oct 25 1999 Jakub Jelinek <jakub@redhat.com>
222
- Work around so that russian works (uses koi8-r instead
223
of the default iso8859-5)
225
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
228
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
229
- More fixes for i18n
231
* Tue Oct 12 1999 Owen Taylor <otaylor@redhat.com>
234
* Fri Sep 26 1999 Elliot Lee <sopwith@redhat.com>
235
- Fixed pipewrite bug (found by mkj & ewt).
237
* Fri Sep 17 1999 Michael Fulbright <drmike@redhat.com>
238
- added requires for pam >= 0.68
240
* Fri Sep 10 1999 Elliot Lee <sopwith@redhat.com>
241
- I just update this package every five minutes, so any recent changes are my fault.
243
* Thu Sep 02 1999 Michael K. Johnson <johnsonm@redhat.com>
246
* Mon Aug 30 1999 Michael K. Johnson <johnsonm@redhat.com>
249
* Tue Aug 17 1999 Michael Fulbright <drmike@redhat.com>
250
- included rmeier@liberate.com patch for tcp socket X connections
252
* Mon Apr 19 1999 Michael Fulbright <drmike@redhat.com>
253
- fix to handling ancient gdm config files with non-standard language specs
254
- dont close display connection for xdmcp connections, else we die if remote
257
* Fri Apr 16 1999 Michael Fulbright <drmike@redhat.com>
258
- fix language handling to set GDM_LANG variable so gnome-session
261
* Wed Apr 14 1999 Michael Fulbright <drmike@redhat.com>
262
- fix so certain dialog boxes dont overwrite background images
264
* Wed Apr 14 1999 Michael K. Johnson <johnsonm@redhat.com>
265
- do not specify -r 42 to useradd -- it doesn't know how to fall back
266
if id 42 is already taken
268
* Fri Apr 9 1999 Michael Fulbright <drmike@redhat.com>
269
- removed suspend feature
271
* Mon Apr 5 1999 Jonathan Blandford <jrb@redhat.com>
272
- added patch from otaylor to not call gtk funcs from a signal.
273
- added patch to tab when username not added.
274
- added patch to center About box (and bring up only one) and ignore "~"
277
* Fri Mar 26 1999 Michael Fulbright <drmike@redhat.com>
278
- fixed handling of default session, merged all gdmgreeter patches into one
280
* Tue Mar 23 1999 Michael Fulbright <drmike@redhat.com>
281
- remove GNOME/KDE/AnotherLevel session scripts, these have been moved to
282
the appropriate packages instead.
283
- added patch to make option menus always active (security problem otherwise)
284
- added jrb's patch to disable stars in passwd entry field
286
* Fri Mar 19 1999 Michael Fulbright <drmike@redhat.com>
287
- made sure /usr/bin isnt in default path twice
290
* Wed Mar 17 1999 Michael Fulbright <drmike@redhat.com>
291
- fixed to use proper system path when root logs in
293
* Tue Mar 16 1999 Michael Fulbright <drmike@redhat.com>
294
- linked Init/Default to Red Hat default init script for xdm
295
- removed logo from login dialog box
297
* Mon Mar 15 1999 Michael Johnson <johnsonm@redhat.com>
298
- pam_console integration
300
* Tue Mar 09 1999 Michael Fulbright <drmike@redhat.com>
301
- added session files for GNOME/KDE/AnotherLevel/Default/Failsafe
302
- patched gdmgreeter to not complete usernames
303
- patched gdmgreeter to not safe selected session permanently
304
- patched gdmgreeter to center dialog boxes
306
* Mon Mar 08 1999 Michael Fulbright <drmike@redhat.com>
307
- removed comments from gdm.conf file, these are not parsed correctly
309
* Sun Mar 07 1999 Michael Fulbright <drmike@redhat.com>
310
- updated source line for accuracy
312
* Fri Feb 26 1999 Owen Taylor <otaylor@redhat.com>
313
- Updated patches for 1.0.0
314
- Fixed some problems in 1.0.0 with installation directories
315
- moved /usr/var/gdm /var/gdm
317
* Thu Feb 25 1999 Michael Fulbright <drmike@redhat.com>
318
- moved files from /usr/etc to /etc
320
* Tue Feb 16 1999 Michael Johnson <johnsonm@redhat.com>
321
- removed commented-out #1 definition -- put back after testing gnome-libs
324
* Sat Feb 06 1999 Michael Johnson <johnsonm@redhat.com>