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