]> git.pld-linux.org Git - packages/xorg-app-xdm.git/blob - xorg-app-xdm.spec
- up to 1.1.6
[packages/xorg-app-xdm.git] / xorg-app-xdm.spec
1 # TODO
2 # - Source1 contains X11R6 paths and the scripts inside should be reviewed for
3 #   security issues
4 Summary:        xdm - X Display Manager with support for XDMCP, host chooser
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
8 Name:           xorg-app-xdm
9 Version:        1.1.6
10 Release:        1
11 License:        MIT
12 Group:          X11/Applications
13 Source0:        http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2
14 # Source0-md5:  c89f8bc74fda4d19e5f374f59c88810f
15 Source1:        ftp://ftp.pld-linux.org/software/xinit/xdm-xinitrc-0.2.tar.bz2
16 # Source1-md5:  0a15b1c374256b5cad7961807baa3896
17 Source2:        xdm.pamd
18 Source3:        xdm.init
19 Source4:        xdm.sysconfig
20 Patch0:         %{name}-Xsession.patch
21 Patch1:         %{name}-pam_tty.patch
22 Patch2:         %{name}-config.patch
23 URL:            http://xorg.freedesktop.org/
24 BuildRequires:  autoconf >= 2.57
25 BuildRequires:  automake
26 BuildRequires:  cpp
27 BuildRequires:  libtool
28 BuildRequires:  pam-devel
29 BuildRequires:  pkgconfig >= 1:0.19
30 BuildRequires:  xorg-lib-libXau-devel
31 BuildRequires:  xorg-lib-libXaw-devel
32 BuildRequires:  xorg-lib-libXdmcp-devel
33 BuildRequires:  xorg-lib-libXft-devel
34 BuildRequires:  xorg-lib-libXinerama-devel
35 BuildRequires:  xorg-lib-libXmu-devel
36 BuildRequires:  xorg-lib-libXpm-devel
37 BuildRequires:  xorg-lib-libXt-devel >= 1.0.0
38 BuildRequires:  xorg-lib-xtrans-devel
39 BuildRequires:  xorg-util-util-macros >= 0.99.2
40 Requires(post,preun):   /sbin/chkconfig
41 Requires:       mktemp
42 Requires:       pam >= 0.99.7.1
43 Requires:       rc-scripts
44 Requires:       xorg-app-xconsole
45 Requires:       xorg-app-xrdb
46 Requires:       xorg-app-xsetroot
47 Requires:       xorg-app-sessreg
48 Requires:       xorg-lib-libXt >= 1.0.0
49 Requires:       xterm
50 Provides:       XDM
51 Provides:       xdm = %{version}-%{release}
52 Obsoletes:      X11-xdm < 1:7.0.0
53 Obsoletes:      XFree86-xdm < 1:7.0.0
54 Obsoletes:      xdm < 1:7.0.0
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
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
66 terminali oraz standardem X Consortium XDMCP.
67
68 %description -l ru.UTF-8
69 Менеджер дисплея X.
70
71 %description -l uk.UTF-8
72 Менеджер дисплею X.
73
74 %prep
75 %setup -q -n xdm-%{version} -a1
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal}
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86 %configure \
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" \
89         --disable-static \
90         --with-bw-pixmap=xdm-pld-logo-bw.xpm \
91         --with-color-pixmap=xdm-pld-logo.xpm \
92         --with-default-vt=vt9 \
93         --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
94         --with-xdmauthdir=/var/lib/xdm \
95         --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
96         --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
97
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT/var/lib/xdm
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 rm -f $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
108
109 # set up PLD xdm config
110 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
111 install xdm-xinitrc-*/pixmaps/* $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/pixmaps
112 install xdm-xinitrc-*/{*Console,Xaccess,Xsession,Xsetup*} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm
113
114 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/xdm
115 install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/xdm
116 install -D %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/xdm
117 install -d $RPM_BUILD_ROOT/etc/security
118 :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post
124 /sbin/chkconfig --add xdm
125 if [ -f /var/lock/subsys/xdm ]; then
126         echo "Run \"/sbin/service xdm restart\" to restart xdm." >&2
127         echo "WARNING: it will terminate all sessions opened from xdm!" >&2
128 else
129         echo "Run \"/sbin/service xdm start\" to start xdm." >&2
130 fi
131
132 %preun
133 if [ "$1" = "0" ]; then
134         /sbin/chkconfig --del xdm
135         %service xdm stop
136 fi
137
138 %files
139 %defattr(644,root,root,755)
140 %doc COPYING ChangeLog
141 %attr(755,root,root) %{_bindir}/xdm
142 %attr(755,root,root) %{_bindir}/xdmshell
143 %{_datadir}/X11/app-defaults/Chooser
144 %dir %{_libdir}/X11/xdm
145 %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
146 %attr(755,root,root) %{_libdir}/X11/xdm/chooser
147 %dir %{_sysconfdir}/X11/xdm
148 # scripts
149 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/GiveConsole
150 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/TakeConsole
151 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xreset
152 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsession
153 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xsetup_0
154 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xstartup
155 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xwilling
156 # configs
157 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xaccess
158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xresources
159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/Xservers
160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/xdm/xdm-config
161 # pixmaps
162 %{_sysconfdir}/X11/xdm/pixmaps
163 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/xdm
164 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.xdm
165 %attr(754,root,root) /etc/rc.d/init.d/xdm
166 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
167 %dir /var/lib/xdm
168 %{_mandir}/man1/xdm.1x*
This page took 0.435141 seconds and 4 git commands to generate.