]>
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 |
17364812 | 9 | Version: 1.1.11 |
fd3cba9c | 10 | Release: 5 |
1dd97985 JB |
11 | License: MIT |
12 | Group: X11/Applications | |
6cdb3266 | 13 | Source0: http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2 |
17364812 | 14 | # Source0-md5: 64a1af1f7eb69feae12e75d4cc3aaf19 |
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 |
1dd97985 | 24 | URL: http://xorg.freedesktop.org/ |
0fcc1ff4 | 25 | BuildRequires: ConsoleKit-devel |
c3e0e028 | 26 | BuildRequires: autoconf >= 2.60 |
1dd97985 JB |
27 | BuildRequires: automake |
28 | BuildRequires: cpp | |
c3e0e028 | 29 | BuildRequires: libselinux-devel |
6cdb3266 | 30 | BuildRequires: libtool |
1dd97985 | 31 | BuildRequires: pam-devel |
69ea3c48 | 32 | BuildRequires: pkgconfig >= 1:0.19 |
154006ae | 33 | BuildRequires: rpmbuild(macros) >= 1.627 |
17364812 | 34 | BuildRequires: xorg-lib-libX11-devel |
10cae44a | 35 | BuildRequires: xorg-lib-libXau-devel |
1dd97985 JB |
36 | BuildRequires: xorg-lib-libXaw-devel |
37 | BuildRequires: xorg-lib-libXdmcp-devel | |
17364812 | 38 | BuildRequires: xorg-lib-libXext-devel |
10cae44a | 39 | BuildRequires: xorg-lib-libXft-devel |
1dd97985 | 40 | BuildRequires: xorg-lib-libXinerama-devel |
10cae44a | 41 | BuildRequires: xorg-lib-libXmu-devel |
1dd97985 | 42 | BuildRequires: xorg-lib-libXpm-devel |
7a11f203 | 43 | BuildRequires: xorg-lib-libXt-devel >= 1.0.0 |
1dd97985 | 44 | BuildRequires: xorg-lib-xtrans-devel |
17364812 | 45 | BuildRequires: xorg-util-util-macros >= 1.8 |
901488fd | 46 | BuildRequires: systemd-units >= 38 |
47aec575 | 47 | Requires(post,preun): /sbin/chkconfig |
6cdb3266 | 48 | Requires: mktemp |
e675c473 | 49 | Requires: pam >= 0.99.7.1 |
47aec575 | 50 | Requires: rc-scripts |
154006ae | 51 | Requires: xorg-app-sessreg |
47aec575 | 52 | Requires: xorg-app-xconsole |
ad0d559d | 53 | Requires: xorg-app-xrdb |
47aec575 | 54 | Requires: xorg-app-xsetroot |
1a9481c5 | 55 | Requires: xorg-lib-libXt >= 1.0.0 |
154006ae ER |
56 | Requires(post,preun,postun): systemd-units >= 38 |
57 | Requires: systemd-units >= 38 | |
ad0d559d | 58 | Requires: xterm |
1dd97985 JB |
59 | Provides: XDM |
60 | Provides: xdm = %{version}-%{release} | |
386d434c AM |
61 | Obsoletes: X11-xdm < 1:7.0.0 |
62 | Obsoletes: XFree86-xdm < 1:7.0.0 | |
386d434c | 63 | Obsoletes: xdm < 1:7.0.0 |
1dd97985 JB |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
66 | %description | |
67 | Xdm manages a collection of X displays, which may be on the local host | |
68 | or remote servers. The design of xdm was guided by the needs of X | |
69 | terminals as well as the X Consortium standard XDMCP, the X Display | |
70 | Manager Control Protocol. | |
71 | ||
f64a098e JR |
72 | %description -l pl.UTF-8 |
73 | Xdm zarządza zestawem ekranów X, które mogą być lokalne lub na | |
74 | zdalnych serwerach. Został zaprojektowany zgodnie z potrzebami X | |
1dd97985 JB |
75 | terminali oraz standardem X Consortium XDMCP. |
76 | ||
f64a098e JR |
77 | %description -l ru.UTF-8 |
78 | Менеджер дисплея X. | |
1dd97985 | 79 | |
f64a098e JR |
80 | %description -l uk.UTF-8 |
81 | Менеджер дисплею X. | |
1dd97985 JB |
82 | |
83 | %prep | |
7898c7f1 | 84 | %setup -q -n xdm-%{version} -a1 |
094b3a04 | 85 | %patch0 -p1 |
5993105f | 86 | %patch1 -p1 |
a58556d8 | 87 | %patch2 -p1 |
c3e0e028 | 88 | %patch3 -p1 |
47aec575 | 89 | |
1dd97985 | 90 | %build |
6cdb3266 | 91 | %{__libtoolize} |
c3e0e028 | 92 | %{__aclocal} -I m4 |
1dd97985 JB |
93 | %{__autoconf} |
94 | %{__autoheader} | |
95 | %{__automake} | |
93c6d229 | 96 | %configure \ |
ad0d559d JB |
97 | DEF_SYSTEM_PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin" \ |
98 | DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \ | |
7898c7f1 | 99 | --disable-static \ |
17364812 | 100 | --enable-xdmshell \ |
c3e0e028 | 101 | --with-authdir=/var/lib/xdm \ |
7759338c JB |
102 | --with-bw-pixmap=xdm-pld-logo-bw.xpm \ |
103 | --with-color-pixmap=xdm-pld-logo.xpm \ | |
0fcc1ff4 | 104 | --with-consolekit \ |
fe288ddc | 105 | --with-default-vt=vt9 \ |
7898c7f1 | 106 | --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \ |
c3e0e028 | 107 | --with-selinux \ |
7898c7f1 JB |
108 | --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \ |
109 | --with-xdmscriptdir=%{_sysconfdir}/X11/xdm | |
1dd97985 JB |
110 | |
111 | %{__make} | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
154006ae ER |
115 | install -d $RPM_BUILD_ROOT/var/lib/xdm \ |
116 | $RPM_BUILD_ROOT%{systemdunitdir} | |
1dd97985 JB |
117 | |
118 | %{__make} install \ | |
086fc757 JB |
119 | DESTDIR=$RPM_BUILD_ROOT \ |
120 | appdefaultdir=%{_datadir}/X11/app-defaults | |
1dd97985 | 121 | |
17364812 | 122 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la |
93c6d229 | 123 | |
7898c7f1 | 124 | # set up PLD xdm config |
17364812 | 125 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*} |
7898c7f1 JB |
126 | install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps |
127 | install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm | |
128 | ||
154006ae ER |
129 | install -Dp %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm |
130 | install -Dp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm | |
131 | install -Dp %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm | |
901488fd | 132 | ln -sf /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/xdm.service |
7898c7f1 JB |
133 | install -d $RPM_BUILD_ROOT/etc/security |
134 | :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm | |
135 | ||
1dd97985 JB |
136 | %clean |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
47aec575 JB |
139 | %post |
140 | /sbin/chkconfig --add xdm | |
154006ae ER |
141 | # -n skips restarting as it would otherise terminate all sessions opened from xdm! |
142 | %service -n xdm restart | |
143 | %systemd_reload | |
47aec575 JB |
144 | |
145 | %preun | |
146 | if [ "$1" = "0" ]; then | |
147 | /sbin/chkconfig --del xdm | |
148 | %service xdm stop | |
149 | fi | |
150 | ||
154006ae ER |
151 | %postun |
152 | %systemd_reload | |
153 | ||
1dd97985 JB |
154 | %files |
155 | %defattr(644,root,root,755) | |
3cc4334d | 156 | %doc AUTHORS COPYING ChangeLog README |
1dd97985 JB |
157 | %attr(755,root,root) %{_bindir}/xdm |
158 | %attr(755,root,root) %{_bindir}/xdmshell | |
7a11f203 | 159 | %{_datadir}/X11/app-defaults/Chooser |
1dd97985 | 160 | %dir %{_libdir}/X11/xdm |
93c6d229 | 161 | %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so |
1dd97985 | 162 | %attr(755,root,root) %{_libdir}/X11/xdm/chooser |
7898c7f1 JB |
163 | %dir %{_sysconfdir}/X11/xdm |
164 | # scripts | |
165 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole | |
166 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole | |
167 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset | |
168 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession | |
169 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0 | |
170 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup | |
171 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling | |
172 | # configs | |
173 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess | |
174 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources | |
175 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers | |
176 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config | |
177 | # pixmaps | |
178 | %{_sysconfdir}/X11/xdm/pixmaps | |
179 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm | |
180 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm | |
181 | %attr(754,root,root) /etc/rc.d/init.d/xdm | |
b0dafa85 | 182 | %{systemdunitdir}/xdm.service |
7898c7f1 JB |
183 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm |
184 | %dir /var/lib/xdm | |
fd3cba9c JR |
185 | %{_mandir}/man1/xdm.1* |
186 | %{_mandir}/man1/xdmshell.1* |