]>
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 |
7c63bc72 ER |
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 |
c3e0e028 | 9 | Version: 1.1.10 |
45f0b770 | 10 | Release: 1 |
1dd97985 JB |
11 | License: MIT |
12 | Group: X11/Applications | |
6cdb3266 | 13 | Source0: http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2 |
c3e0e028 | 14 | # Source0-md5: 329383040cdbda5b5c8ce6c7e1120c97 |
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 |
0fcc1ff4 | 23 | Patch3: %{name}-consolekit.patch |
24 | Patch4: %{name}-selinux.patch | |
1dd97985 | 25 | URL: http://xorg.freedesktop.org/ |
0fcc1ff4 | 26 | BuildRequires: ConsoleKit-devel |
c3e0e028 | 27 | BuildRequires: autoconf >= 2.60 |
1dd97985 JB |
28 | BuildRequires: automake |
29 | BuildRequires: cpp | |
c3e0e028 | 30 | BuildRequires: libselinux-devel |
6cdb3266 | 31 | BuildRequires: libtool |
1dd97985 | 32 | BuildRequires: pam-devel |
69ea3c48 | 33 | BuildRequires: pkgconfig >= 1:0.19 |
10cae44a | 34 | BuildRequires: xorg-lib-libXau-devel |
1dd97985 JB |
35 | BuildRequires: xorg-lib-libXaw-devel |
36 | BuildRequires: xorg-lib-libXdmcp-devel | |
10cae44a | 37 | BuildRequires: xorg-lib-libXft-devel |
1dd97985 | 38 | BuildRequires: xorg-lib-libXinerama-devel |
10cae44a | 39 | BuildRequires: xorg-lib-libXmu-devel |
1dd97985 | 40 | BuildRequires: xorg-lib-libXpm-devel |
7a11f203 | 41 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 |
1dd97985 | 42 | BuildRequires: xorg-lib-xtrans-devel |
c3e0e028 | 43 | BuildRequires: xorg-util-util-macros >= 1.4 |
47aec575 | 44 | Requires(post,preun): /sbin/chkconfig |
6cdb3266 | 45 | Requires: mktemp |
e675c473 | 46 | Requires: pam >= 0.99.7.1 |
47aec575 JB |
47 | Requires: rc-scripts |
48 | Requires: xorg-app-xconsole | |
ad0d559d | 49 | Requires: xorg-app-xrdb |
47aec575 | 50 | Requires: xorg-app-xsetroot |
1dd97985 | 51 | Requires: xorg-app-sessreg |
1a9481c5 | 52 | Requires: xorg-lib-libXt >= 1.0.0 |
ad0d559d | 53 | Requires: xterm |
1dd97985 JB |
54 | Provides: XDM |
55 | Provides: xdm = %{version}-%{release} | |
386d434c AM |
56 | Obsoletes: X11-xdm < 1:7.0.0 |
57 | Obsoletes: XFree86-xdm < 1:7.0.0 | |
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 |
c3e0e028 | 83 | %patch3 -p1 |
0fcc1ff4 | 84 | %patch4 -p1 |
47aec575 | 85 | |
1dd97985 | 86 | %build |
6cdb3266 | 87 | %{__libtoolize} |
c3e0e028 | 88 | %{__aclocal} -I m4 |
1dd97985 JB |
89 | %{__autoconf} |
90 | %{__autoheader} | |
91 | %{__automake} | |
93c6d229 | 92 | %configure \ |
ad0d559d JB |
93 | DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \ |
94 | DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \ | |
7898c7f1 | 95 | --disable-static \ |
c3e0e028 | 96 | --with-authdir=/var/lib/xdm \ |
7759338c JB |
97 | --with-bw-pixmap=xdm-pld-logo-bw.xpm \ |
98 | --with-color-pixmap=xdm-pld-logo.xpm \ | |
0fcc1ff4 | 99 | --with-consolekit \ |
fe288ddc | 100 | --with-default-vt=vt9 \ |
7898c7f1 | 101 | --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \ |
c3e0e028 | 102 | --with-selinux \ |
7898c7f1 JB |
103 | --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \ |
104 | --with-xdmscriptdir=%{_sysconfdir}/X11/xdm | |
1dd97985 JB |
105 | |
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
7898c7f1 | 110 | install -d $RPM_BUILD_ROOT/var/lib/xdm |
1dd97985 JB |
111 | |
112 | %{__make} install \ | |
086fc757 JB |
113 | DESTDIR=$RPM_BUILD_ROOT \ |
114 | appdefaultdir=%{_datadir}/X11/app-defaults | |
1dd97985 | 115 | |
93c6d229 JB |
116 | rm -f $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la |
117 | ||
7898c7f1 JB |
118 | # set up PLD xdm config |
119 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*} | |
120 | install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps | |
121 | install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm | |
122 | ||
123 | install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm | |
124 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm | |
125 | install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm | |
126 | install -d $RPM_BUILD_ROOT/etc/security | |
127 | :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm | |
128 | ||
1dd97985 JB |
129 | %clean |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
47aec575 JB |
132 | %post |
133 | /sbin/chkconfig --add xdm | |
134 | if [ -f /var/lock/subsys/xdm ]; then | |
135 | echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2 | |
136 | echo "WARNING: it will terminate all sessions opened from xdm!" >&2 | |
137 | else | |
138 | echo "Run \"/sbin/service xdm start\" to start xdm." >&2 | |
139 | fi | |
140 | ||
141 | %preun | |
142 | if [ "$1" = "0" ]; then | |
143 | /sbin/chkconfig --del xdm | |
144 | %service xdm stop | |
145 | fi | |
146 | ||
1dd97985 JB |
147 | %files |
148 | %defattr(644,root,root,755) | |
3cc4334d | 149 | %doc AUTHORS COPYING ChangeLog README |
1dd97985 JB |
150 | %attr(755,root,root) %{_bindir}/xdm |
151 | %attr(755,root,root) %{_bindir}/xdmshell | |
7a11f203 | 152 | %{_datadir}/X11/app-defaults/Chooser |
1dd97985 | 153 | %dir %{_libdir}/X11/xdm |
93c6d229 | 154 | %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so |
1dd97985 | 155 | %attr(755,root,root) %{_libdir}/X11/xdm/chooser |
7898c7f1 JB |
156 | %dir %{_sysconfdir}/X11/xdm |
157 | # scripts | |
158 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole | |
159 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole | |
160 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset | |
161 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession | |
162 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0 | |
163 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup | |
164 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling | |
165 | # configs | |
166 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess | |
167 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources | |
168 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers | |
169 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config | |
170 | # pixmaps | |
171 | %{_sysconfdir}/X11/xdm/pixmaps | |
172 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm | |
173 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm | |
174 | %attr(754,root,root) /etc/rc.d/init.d/xdm | |
175 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm | |
176 | %dir /var/lib/xdm | |
4a330895 | 177 | %{_mandir}/man1/xdm.1x* |