]>
Commit | Line | Data |
---|---|---|
b46d2fd6 ER |
1 | # TODO |
2 | # - Source1 contains X11R6 paths and the scripts inside should be reviewed for | |
3 | # security issues | |
1dd97985 | 4 | Summary: xdm - X Display Manager with support for XDMCP, host chooser |
f64a098e JR |
5 | Summary(pl.UTF-8): XDM - zarządca ekranów z obsługą XDMCP i wybieraniem hostów |
6 | Summary(ru.UTF-8): Менеджер дисплея X | |
7 | Summary(uk.UTF-8): Менеджер дисплею X | |
1dd97985 | 8 | Name: xorg-app-xdm |
ce8a3722 | 9 | Version: 1.1.4 |
e675c473 | 10 | Release: 2 |
1dd97985 JB |
11 | License: MIT |
12 | Group: X11/Applications | |
6cdb3266 | 13 | Source0: http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2 |
ce8a3722 | 14 | # Source0-md5: a2b4c280f3e324d081a0d9ed76a8a123 |
7898c7f1 | 15 | Source1: ftp://ftp.pld-linux.org/software/xinit/xdm-xinitrc-0.2.tar.bz2 |
186bc39c | 16 | # Source1-md5: 0a15b1c374256b5cad7961807baa3896 |
7898c7f1 JB |
17 | Source2: xdm.pamd |
18 | Source3: xdm.init | |
19 | Source4: xdm.sysconfig | |
094b3a04 | 20 | Patch0: %{name}-Xsession.patch |
5993105f | 21 | Patch1: %{name}-pam_tty.patch |
a58556d8 | 22 | Patch2: %{name}-config.patch |
1dd97985 JB |
23 | URL: http://xorg.freedesktop.org/ |
24 | BuildRequires: autoconf >= 2.57 | |
25 | BuildRequires: automake | |
26 | BuildRequires: cpp | |
6cdb3266 | 27 | BuildRequires: libtool |
1dd97985 | 28 | BuildRequires: pam-devel |
69ea3c48 | 29 | BuildRequires: pkgconfig >= 1:0.19 |
10cae44a | 30 | BuildRequires: xorg-lib-libXau-devel |
1dd97985 JB |
31 | BuildRequires: xorg-lib-libXaw-devel |
32 | BuildRequires: xorg-lib-libXdmcp-devel | |
10cae44a | 33 | BuildRequires: xorg-lib-libXft-devel |
1dd97985 | 34 | BuildRequires: xorg-lib-libXinerama-devel |
10cae44a | 35 | BuildRequires: xorg-lib-libXmu-devel |
1dd97985 | 36 | BuildRequires: xorg-lib-libXpm-devel |
7a11f203 | 37 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 |
1dd97985 | 38 | BuildRequires: xorg-lib-xtrans-devel |
4a330895 | 39 | BuildRequires: xorg-util-util-macros >= 0.99.2 |
47aec575 | 40 | Requires(post,preun): /sbin/chkconfig |
6cdb3266 | 41 | Requires: mktemp |
e675c473 | 42 | Requires: pam >= 0.99.7.1 |
47aec575 JB |
43 | Requires: rc-scripts |
44 | Requires: xorg-app-xconsole | |
ad0d559d | 45 | Requires: xorg-app-xrdb |
47aec575 | 46 | Requires: xorg-app-xsetroot |
1dd97985 | 47 | Requires: xorg-app-sessreg |
1a9481c5 | 48 | Requires: xorg-lib-libXt >= 1.0.0 |
ad0d559d | 49 | Requires: xterm |
1dd97985 JB |
50 | Provides: XDM |
51 | Provides: xdm = %{version}-%{release} | |
386d434c AM |
52 | Obsoletes: X11-xdm < 1:7.0.0 |
53 | Obsoletes: XFree86-xdm < 1:7.0.0 | |
1dd97985 JB |
54 | Obsoletes: entrance |
55 | Obsoletes: gdm | |
56 | Obsoletes: kdm | |
57 | Obsoletes: wdm | |
386d434c | 58 | Obsoletes: xdm < 1:7.0.0 |
1dd97985 JB |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
61 | %description | |
62 | Xdm manages a collection of X displays, which may be on the local host | |
63 | or remote servers. The design of xdm was guided by the needs of X | |
64 | terminals as well as the X Consortium standard XDMCP, the X Display | |
65 | Manager Control Protocol. | |
66 | ||
f64a098e JR |
67 | %description -l pl.UTF-8 |
68 | Xdm zarządza zestawem ekranów X, które mogą być lokalne lub na | |
69 | zdalnych serwerach. Został zaprojektowany zgodnie z potrzebami X | |
1dd97985 JB |
70 | terminali oraz standardem X Consortium XDMCP. |
71 | ||
f64a098e JR |
72 | %description -l ru.UTF-8 |
73 | Менеджер дисплея X. | |
1dd97985 | 74 | |
f64a098e JR |
75 | %description -l uk.UTF-8 |
76 | Менеджер дисплею X. | |
1dd97985 JB |
77 | |
78 | %prep | |
7898c7f1 | 79 | %setup -q -n xdm-%{version} -a1 |
094b3a04 | 80 | %patch0 -p1 |
5993105f | 81 | %patch1 -p1 |
a58556d8 | 82 | %patch2 -p1 |
47aec575 | 83 | |
1dd97985 | 84 | %build |
6cdb3266 | 85 | %{__libtoolize} |
1dd97985 JB |
86 | %{__aclocal} |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
93c6d229 | 90 | %configure \ |
ad0d559d JB |
91 | DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \ |
92 | DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \ | |
7898c7f1 | 93 | --disable-static \ |
7759338c JB |
94 | --with-bw-pixmap=xdm-pld-logo-bw.xpm \ |
95 | --with-color-pixmap=xdm-pld-logo.xpm \ | |
fe288ddc | 96 | --with-default-vt=vt9 \ |
7898c7f1 | 97 | --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \ |
a58556d8 | 98 | --with-xdmauthdir=/var/lib/xdm \ |
7898c7f1 JB |
99 | --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \ |
100 | --with-xdmscriptdir=%{_sysconfdir}/X11/xdm | |
1dd97985 JB |
101 | |
102 | %{__make} | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
7898c7f1 | 106 | install -d $RPM_BUILD_ROOT/var/lib/xdm |
1dd97985 JB |
107 | |
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
93c6d229 JB |
111 | rm -f $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la |
112 | ||
7898c7f1 JB |
113 | # set up PLD xdm config |
114 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*} | |
115 | install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps | |
116 | install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm | |
117 | ||
118 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm | |
119 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm | |
120 | install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm | |
121 | install -d $RPM_BUILD_ROOT/etc/security | |
122 | :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm | |
123 | ||
1dd97985 JB |
124 | %clean |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
47aec575 JB |
127 | %post |
128 | /sbin/chkconfig --add xdm | |
129 | if [ -f /var/lock/subsys/xdm ]; then | |
130 | echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2 | |
131 | echo "WARNING: it will terminate all sessions opened from xdm!" >&2 | |
132 | else | |
133 | echo "Run \"/sbin/service xdm start\" to start xdm." >&2 | |
134 | fi | |
135 | ||
136 | %preun | |
137 | if [ "$1" = "0" ]; then | |
138 | /sbin/chkconfig --del xdm | |
139 | %service xdm stop | |
140 | fi | |
141 | ||
1dd97985 JB |
142 | %files |
143 | %defattr(644,root,root,755) | |
7a11f203 | 144 | %doc COPYING ChangeLog |
1dd97985 JB |
145 | %attr(755,root,root) %{_bindir}/xdm |
146 | %attr(755,root,root) %{_bindir}/xdmshell | |
7a11f203 | 147 | %{_datadir}/X11/app-defaults/Chooser |
1dd97985 | 148 | %dir %{_libdir}/X11/xdm |
93c6d229 | 149 | %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so |
1dd97985 | 150 | %attr(755,root,root) %{_libdir}/X11/xdm/chooser |
7898c7f1 JB |
151 | %dir %{_sysconfdir}/X11/xdm |
152 | # scripts | |
153 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole | |
154 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole | |
155 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset | |
156 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession | |
157 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0 | |
158 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup | |
159 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling | |
160 | # configs | |
161 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess | |
162 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources | |
163 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers | |
164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config | |
165 | # pixmaps | |
166 | %{_sysconfdir}/X11/xdm/pixmaps | |
167 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm | |
168 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm | |
169 | %attr(754,root,root) /etc/rc.d/init.d/xdm | |
170 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm | |
171 | %dir /var/lib/xdm | |
4a330895 | 172 | %{_mandir}/man1/xdm.1x* |