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