Пакет xinitrc: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
Name: xinitrc
Version: 2.4.34
Release: alt2.M60T.0.M60C.1

Summary: The default startup scripts for the X Window System
License: GPL
Group: System/X11
Packager: Dmitry V. Levin <ldv@altlinux.org>

Source: %name-%version.tar

Provides: %_sysconfdir/X11/xinit.d, %_sysconfdir/X11/wmsession.d, %_sysconfdir/X11/wms-methods.d
Requires: app-defaults >= 0:0.2, xvt
Conflicts: kde-settings < 3.1.0-alt3, kdebase < 3.0.2-alt5, kde-config < 1.0-alt5
Conflicts: initscripts < 1:5.49.1-alt1

%description
The %name package contains system scripts used to start
X Window System session.

%prep
%setup -q

%build
%make_build -C po
make -C src rundm CFLAGS="%optflags"

%install
install -pD -m755 src/rundm %buildroot%_sbindir/rundm
mkdir -p %buildroot%_sysconfdir/X11/wmsession.d
mkdir -p %buildroot%_sysconfdir/X11/wms-methods.d

cp -av install/* %buildroot/
%make_install install -C po
%find_lang xrootwarn

%post
if [ $1 -eq 1 ]; then
	/sbin/chkconfig --add dm
	/sbin/chkconfig --add update_wms
fi
if grep -qs '^x:5:' /etc/inittab; then
	/sbin/chkconfig --add dm
	sed -i 's/^x:5:/#x:5:/' /etc/inittab
fi

%preun
if [ $1 -eq 0 ]; then
	/sbin/chkconfig --del dm
	/sbin/chkconfig --del update_wms
fi

%triggerpostun -- initscripts < 1:5.49.1-alt1
/sbin/chkconfig --add dm
/sbin/chkconfig --add update_wms

%triggerpostun -- xinitrc < 0:2.4.13-alt1
/sbin/chkconfig --add update_wms

%files -f xrootwarn.lang
%_sbindir/*
%_bindir/*
%_sysconfdir/X11/wmsession.d
%_sysconfdir/X11/wms-methods.d
%_rpmlibdir/*
%config %_initdir/*
%config %_sysconfdir/X11/Xsession
%config %_sysconfdir/X11/prefdm
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/X11/xinit*
%config(noreplace) %_sysconfdir/X11/xdm/*

%changelog
* Mon Oct 24 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.4.34-alt2.M60T.0.M60C.1
- Build for c6 with the last enhancements.

* Thu Oct 20 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.4.34-alt2.M60T.1
- Backported some enhancements (same as in 2.4.40-alt1.M70T.1):
  [2.4.46-alt1]
  + fixkeyboard: drop old XKB layout options instead of just appending the new.
  [2.4.45-alt1, 2.4.44-alt1]
  + xserverrc: specify -auth option to Xserver.
  [2.4.43-alt1]
  + runwm: add common Xsession compatibility (closes: #31259).
- Backported some older enhancements:
  + prefdm: fix signal handling (ldv@).
  [2.4.36-alt1]
  + prefdm: Added nodm support by Max Kosmach (closes: #27449).

* Tue May 17 2011 Mykola Grechukh <gns@altlinux.ru> 2.4.34-alt2
- prefdm: Added lightdm support.
- xserver: Do not listen tcp (by Alexey Gladkov).

* Tue May 18 2010 Dmitry V. Levin <ldv@altlinux.org> 2.4.34-alt1
- prefdm: Added lxdm support (by Nick S. Grechukh, closes: #23424).

* Thu Apr 09 2009 Igor Vlasenko <viy@altlinux.ru> 2.4.33-alt1
- added explicit Provides: of %_sysconfdir/X11/wms-methods.d

* Fri Apr 03 2009 Igor Vlasenko <viy@altlinux.ru> 2.4.32-alt1
- NMU: implemented Display Manager Policy
  (http://www.altlinux.org/Display_Manager_Policy)

* Thu Nov 20 2008 Dmitry V. Levin <ldv@altlinux.org> 2.4.31-alt1
- Implemented posttrans filetrigger for WM registration.
- update_wms: Changed to exit when executed during rpm package install.

* Tue Nov 11 2008 Dmitry V. Levin <ldv@altlinux.org> 2.4.30-alt1
- fixkeyboard: Run xmodmap also in case when XKEYBOARD extension
  is enabled (shrek).

* Fri Aug 29 2008 Dmitry V. Levin <ldv@altlinux.org> 2.4.29-alt1
- runwm: Fixed failsafe mode (closes: #16820).

* Thu Jan 17 2008 Alexey Gladkov <legion@altlinux.ru> 2.4.28-alt1
- Add xrandr 1.2 support (#13955).
  See /etc/sysconfig/xrandr for more information.
- %_sysconfdir/X11/xinit/xserverrc: Add two parameters:
  + IGNORE_ABI - disable ABI check;
  + DEPTH - sets the default color depth.

* Tue Dec 25 2007 Alexey Gladkov <legion@altlinux.ru> 2.4.27-alt1
- Add Xorg server startup arguments customization (#12403).
  See /etc/sysconfig/xserver for more information.
- %_sysconfdir/X11/xdm/Xsetup_0: Add two parameters
  into /etc/sysconfig/xinitrc:
  + XSETROOT - define xsetroot command;
  + XCONSOLE - enables xconsole run.
- prefdm uses system i18n settings (#10981).
- Fix xrootwarn message.

* Tue Sep 18 2007 Dmitry V. Levin <ldv@altlinux.org> 2.4.26-alt1
- Removed cvsid tags.
- runwm: Replaced "xterm" with "xvt" (#12773).

* Fri Mar 03 2006 Dmitry V. Levin <ldv@altlinux.org> 2.4.25-alt1
- %_sysconfdir/X11/xinit/fixkeyboard:
  + Enabled system xkb map support (#9177).
  + Removed obsolete stuff.
- Removed obsolete %_sysconfdir/X11/xinit/Xmodmap.

* Sat Jan 07 2006 Dmitry V. Levin <ldv@altlinux.org> 2.4.24-alt1
- Changed all scripts to avoid full paths to programs.
- Moved all utilities to %_bindir/.

* Fri Sep 30 2005 Dmitry V. Levin <ldv@altlinux.org> 2.4.23-alt1
- %_sysconfdir/X11/xdm/Xresources: Added Xcursor.theme (closes #7324).
- %_x11bindir/xscreenlock: Handle new XSS paths (closes #7617).
- %_x11bindir/runwm: When looking for default WM,
  honor /etc/sysconfig/desktop value (closes #8057).

* Sat Jun 12 2004 Dmitry V. Levin <ldv@altlinux.org> 2.4.22-alt1
- update_wms: deal with strange wm names (fixes #3907).
- Xsession, runwm, init.d/dm: do not use absolute pathnames
  where it is not necessary.

* Thu Jun 03 2004 Dmitry V. Levin <ldv@altlinux.org> 2.4.21-alt1
- update_wms: updated new GDM scheme support, by aris@ (#3907).

* Tue Jun 01 2004 Dmitry V. Levin <ldv@altlinux.org> 2.4.20-alt1
- update_wms: added new GDM scheme support, by aris@ (#3907).
- Xsession: updated TryXBrowser list (#4232).

* Mon Nov 03 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.19-alt1
- /etc/X11/xinit/xrootwarn.real: run xmessage with "-font fixed".

* Tue Oct 14 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.18-alt1
- /etc/X11/xinit/xserverrc: new file.
- /etc/X11/xdm/Xservers: use it.

* Fri Aug 22 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.17-alt1
- /etc/X11/xdm/Xservers, /etc/X11/prefdm:
  reverted #0002531 workarounds.
- %_sbindir/rundm: added dev list support.
- %_initdir/dm: pass dev list to rundm.

* Fri Aug 15 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.16-alt1
- /etc/X11/prefdm:
  added vt7 argument to autologin, to workaround #0002531.
  
* Wed Aug 06 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.15-alt1
- /etc/X11/xdm/Xservers:
  added vt7 argument, to workaround #0002531.

* Mon Jun 09 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.14-alt2
- Provides: %_sysconfdir/X11/wmsession.d

* Tue Jun 03 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.14-alt1
- init.d/update_wms: fixed $LOCKFILE handling.

* Wed May 21 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.13-alt1
- Added %_initdir/update_wms.
- Ported %_initdir/dm to new rc scheme.
- Added %_sysconfdir/X11/xinit.d to provides list.

* Tue Apr 22 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.12-alt1
- Relocated dm stuff from initscripts to this package.

* Fri Jan 24 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.11-alt1
- %_x11bindir/xscreenlock: new wrapper for xscreensaver/xlockmore.

* Tue Jan 21 2003 Dmitry V. Levin <ldv@altlinux.org> 2.4.10-alt1
- update_wms: updated.
- ru.po: updated xrootwarn translation.

* Fri Nov 15 2002 Dmitry V. Levin <ldv@altlinux.org> 2.4.9-alt1
- Xsession: pass args to scripts (#0001560).
- xrootwarn: workaround bash bug.

* Mon Nov 11 2002 Dmitry V. Levin <ldv@altlinux.org> 2.4.8-alt1
- Fixed system Xsession problem (#0000772).
- Fixed /etc/X11/xdm/Xresources (#0000965).
- Fixed autostart problem (#0001430).
- [INCOMPATIBLE] Changed user autostart directory to ~/.xsession.d/ (#0001431).
- Added sourcing of user ~/.xprofile file.
- Implemented xrootwarn.

* Wed Apr 10 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.4.7-alt1
- runwm: added --print option.
- Xsession: exec runwm default (#0000812).
- Set %_sysconfdir/X11/Xsession to %%config.

* Mon Mar 11 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.4.6-alt1
- update_wms: fixed GDM session generation (reported by Alexey Morozov).
- Xsession: redirect stderr to "~/.xsession-errors$DISPLAY".
- Xsession: source shell scripts from /etc/X11/profile.d/*.sh.
- Repackaged sources.

* Mon Feb 18 2002 Stanislav Ievlev <inger@altlinux.ru> 2.4.5-alt3
- Xresources moved into new app-defaults package

* Tue Feb 12 2002 Ivan Zakharyaschev <imz@altlinux.ru> 2.4.5-alt2.2
- change the License: Public Domain -> GPL (beacuse Xresources are under GPL)

* Mon Feb 11 2002 Ivan Zakharyaschev <imz@altlinux.ru> 2.4.5-alt2.1
- Xresources: sync with emacs-21.1-alt10 app-defaults

* Mon Jan 21 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.4.5-alt2
- Xsession: added support for forthcoming Xresources.* config files.

* Thu Jan 17 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.4.5-alt1
- runwm: return native WM names for "--list" option.
- update_wms: added WDM support.

* Wed Jan 09 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.4.5-alt0.1
- Rewritten wmsession.d support.

* Tue Apr 03 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.4.4-ipl38mdk
- Fixed Xsession to keep user-defined PATH.

* Wed Mar 07 2001 Dmitry V. Levin <ldv@fandra.org> 2.4.4-ipl37mdk
- /etc/X11/Xsession: execute as bash script.
- /etc/X11/Xresources: added wheel mouse translations for netscape.

* Fri Feb 16 2001 Dmitry V. Levin <ldv@fandra.org> 2.4.4-ipl36mdk
- /etc/X11/Xsession: source /etc/profile.d/lang.sh

* Wed Feb 14 2001 Dmitry V. Levin <ldv@fandra.org> 2.4.4-ipl35mdk
- Merged in patch from AEN.

* Sat Dec 30 2000 Dmitry V. Levin <ldv@fandra.org> 2.4.4-ipl34mdk
- Script cleanup.
- RE adaptions.

* Tue Dec 26 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-34mdk
- xinitrc-Mod_Meta_L_Disable: Add this ugly script, when a
  REMOVE_MOD_META_L=yes remove the MOD_META_L to make some
  applications happy (ie:xemacs).

* Tue Nov 28 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-33mdk
- added support for ssh2 (bug #871).
- use bash -login only on Xsession for xdm (bug #1505).

* Fri Oct 13 2000 Pablo Saratxaga <pablo@manderakesoft.com> 2.4.4-32mdk
- added auto-launching of XIM servers.

* Fri Oct 06 2000 David BAUDENS <baudens@mandrakesoft.com> 2.4.4-31mdk
- Set HELP_BROWSER

* Mon Oct  2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-30mdk
- removed ^@ in /etc/X11/Xsession.

* Mon Oct  2 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-29mdk
- remove xhost+ in /etc/X11/Xsession (let msec do this job).

* Tue Sep 12 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-28mdk
- fix resources to make xdm starts the X server only once and let init do its job.

* Fri Sep 01 2000 David BAUDENS <baudens@mandrakesoft.com> 2.4.4-27mdk
- Use Linux-Mandrake colors for xsetroot

* Wed Aug 30 2000 Christopher Molnar <molnarc@mandrakesoft.com> 2.4.4-26mdk
- Xsetup_0: commented out the kdmdesktop and added line to fix background colors

* Tue Jun  6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-25mdk
- Xsession: Resinsert /bin/bash -login.

* Mon Jun  5 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-24mdk
- Xsession: use /bin/sh instead of /bin/bash -login.

* Thu May  4 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-23mdk
- fix path of WindowMaker in RunWM.

* Thu Apr 27 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-22mdk
- added a fallback /etc/X11/xdm/Xsession.

* Thu Apr 20 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-21mdk
- Xsession: merge ~/.Xdefaults too.

* Thu Apr 13 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-20mdk
- xinitrc-RunWM: set wmaker to the right path (thanks
  john.cavan@sympatico.ca).

* Tue Apr 11 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-18mdk
- launch scripts in /etc/X11/xinit.d
- removed imwheel stuff.

* Fri Apr  7 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-18mdk
- Cvs import clean up spec file.

* Thu Apr  6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-17mdk
- Another fix of Xsession.

* Thu Apr  6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.4.4-16mdk
- Try to get chksession feature when launching with startx (aka:
  fix merge of flepied).

* Thu Apr  6 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.4.4-15mdk
- smaller xterm in Xsession for failsafe setting, in order
  to stay in screen when having 800x600

* Thu Mar 30 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-14mdk
- activate imwheel only if WHEEL is yes in /etc/sysconfig/mouse.
- end the merge of xinit and xdm startup.

* Thu Mar 09 2000 Francis Galiegue <francis@mandrakesoft.com> 2.4.4-13mdk
- imwheel -k added to Xsession

* Wed Mar  1 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-12mdk
- make Xsession ssh aware.

* Mon Feb  7 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-11mdk

- unified xdm and startx init sequences.

* Thu Jan  6 2000 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-10mdk

- load xmodmaps the same way in xinit and xdm modes.

* Wed Dec 22 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Do an exec for chksession. (c) Chmouel.

* Wed Dec 22 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Do an exec (flepied).

* Wed Dec 22 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Xsession and Xclients for new chksession.

* Tue Dec 21 1999 Frederic Lepied <flepied@mandrakesoft.com> 2.4.4-5mdk

- fix RunWM for WindowMaker.
- fix Xclients to be able to launch something else than KDE, GNOME or AnotherLevel.

* Thu Dec 16 1999 Frederic Lepied <flepied@mandrakesoft.com>

- fixed a typo in /etc/X11/xinit/xinitrc.

* Wed Nov 24 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- By default if there is no windows manager launch icewm-light no fvwm.
- Put a midnight color by default.

* Wed Nov  3 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Add xmodmap files.
- 2.4.4.

* Thu Jul 22 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Add Xsession files.
- Oups typo :-((

* Sun May 09 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- By default we run kde (again 8-)

* Mon May 03 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Mandrake adpatations.
- By default Mandrake launch KDE.

* Mon Apr 19 1999 Preston Brown <pbrown@redhat.com>
- argh, fixed my changes from yesterday

* Sun Apr 18 1999 Preston Brown <pbrown@redhat.com>
- added /etc/sysconfig/desktop support

* Mon Mar 22 1999 Bill Nottingham <notting@redhat.com>
- make /etc/X11/xinit/* %%config (bug #1051)

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- auto rebuild in the new build environment (release 2)

* Tue Feb 02 1999 Preston Brown <pbrown@redhat.com>
- added ability to have KDE recognized if it is all that is installed

* Wed Jan 27 1999 Preston Brown <pbrown@redhat.com>
- updated so that GNOME is the default, and a few other cleanups

* Fri Sep 18 1998 Cristian Gafton <gafton@redhat.com>
- added the RunWM script and modified Xclients to use this new script

* Sun Sep 13 1998 Cristian Gafton <gafton@redhat.com>
- included WindowMaker hints

* Thu May 07 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Wed Apr 22 1998 Cristian Gafton <gafton@redhat.com>
- handle AfterStep (and possibly other window managers)

* Tue Nov 11 1997 Michael K. Johnson <johnsonm@redhat.com>
- export the BROWSER variable.

* Fri Nov 08 1997 Cristian Gafton <gafton@redhat.com>
- added handling for the BROWSER variable

* Wed Oct 15 1997 Cristian Gaftin <gafton@redhat.com>
- updated for AnotherLevel

* Fri Jul 18 1997 Erik Troan <ewt@redhat.com>
- built for glibc, added dependencies

* Thu Mar 20 1997 Erik Troan <ewt@redhat.com>
- Added /etc/X11/xinitrc/Xclients to this file and removed it from rootfiles
  and etcskel.