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