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