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