]> git.pld-linux.org Git - packages/xorg-app-xdm.git/blob - xorg-app-xdm.spec
- mask sysv service for systemd, should be started via prefdm like the rest of DM
[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.11
10 Release:        2
11 License:        MIT
12 Group:          X11/Applications
13 Source0:        http://xorg.freedesktop.org/releases/individual/app/xdm-%{version}.tar.bz2
14 # Source0-md5:  64a1af1f7eb69feae12e75d4cc3aaf19
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 Patch3:         %{name}-consolekit.patch
24 URL:            http://xorg.freedesktop.org/
25 BuildRequires:  ConsoleKit-devel
26 BuildRequires:  autoconf >= 2.60
27 BuildRequires:  automake
28 BuildRequires:  cpp
29 BuildRequires:  libselinux-devel
30 BuildRequires:  libtool
31 BuildRequires:  pam-devel
32 BuildRequires:  pkgconfig >= 1:0.19
33 BuildRequires:  rpmbuild(macros) >= 1.627
34 BuildRequires:  xorg-lib-libX11-devel
35 BuildRequires:  xorg-lib-libXau-devel
36 BuildRequires:  xorg-lib-libXaw-devel
37 BuildRequires:  xorg-lib-libXdmcp-devel
38 BuildRequires:  xorg-lib-libXext-devel
39 BuildRequires:  xorg-lib-libXft-devel
40 BuildRequires:  xorg-lib-libXinerama-devel
41 BuildRequires:  xorg-lib-libXmu-devel
42 BuildRequires:  xorg-lib-libXpm-devel
43 BuildRequires:  xorg-lib-libXt-devel >= 1.0.0
44 BuildRequires:  xorg-lib-xtrans-devel
45 BuildRequires:  xorg-util-util-macros >= 1.8
46 Requires(post,preun):   /sbin/chkconfig
47 Requires:       mktemp
48 Requires:       pam >= 0.99.7.1
49 Requires:       rc-scripts
50 Requires:       xorg-app-sessreg
51 Requires:       xorg-app-xconsole
52 Requires:       xorg-app-xrdb
53 Requires:       xorg-app-xsetroot
54 Requires:       xorg-lib-libXt >= 1.0.0
55 Requires(post,preun,postun):    systemd-units >= 38
56 Requires:       systemd-units >= 38
57 Requires:       xterm
58 Provides:       XDM
59 Provides:       xdm = %{version}-%{release}
60 Obsoletes:      X11-xdm < 1:7.0.0
61 Obsoletes:      XFree86-xdm < 1:7.0.0
62 Obsoletes:      xdm < 1:7.0.0
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
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
74 terminali oraz standardem X Consortium XDMCP.
75
76 %description -l ru.UTF-8
77 Менеджер дисплея X.
78
79 %description -l uk.UTF-8
80 Менеджер дисплею X.
81
82 %prep
83 %setup -q -n xdm-%{version} -a1
84 %patch0 -p1
85 %patch1 -p1
86 %patch2 -p1
87 %patch3 -p1
88
89 %build
90 %{__libtoolize}
91 %{__aclocal} -I m4
92 %{__autoconf}
93 %{__autoheader}
94 %{__automake}
95 %configure \
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" \
98         --disable-static \
99         --enable-xdmshell \
100         --with-authdir=/var/lib/xdm \
101         --with-bw-pixmap=xdm-pld-logo-bw.xpm \
102         --with-color-pixmap=xdm-pld-logo.xpm \
103         --with-consolekit \
104         --with-default-vt=vt9 \
105         --with-pixmapdir=%{_sysconfdir}/X11/xdm/pixmaps \
106         --with-selinux \
107         --with-xdmconfigdir=%{_sysconfdir}/X11/xdm \
108         --with-xdmscriptdir=%{_sysconfdir}/X11/xdm
109
110 %{__make}
111
112 %install
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT/var/lib/xdm \
115         $RPM_BUILD_ROOT%{systemdunitdir}
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT \
119         appdefaultdir=%{_datadir}/X11/app-defaults
120
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/X11/xdm/libXdmGreet.la
122
123 # set up PLD xdm config
124 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xdm/{*Console,Xaccess,Xsession,Xsetup*}
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
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
131 ln -s /dev/null $RPM_BUILD_ROOT%{systemdunitdir}/gdm.service
132 install -d $RPM_BUILD_ROOT/etc/security
133 :> $RPM_BUILD_ROOT/etc/security/blacklist.xdm
134
135 %clean
136 rm -rf $RPM_BUILD_ROOT
137
138 %post
139 /sbin/chkconfig --add xdm
140 # -n skips restarting as it would otherise terminate all sessions opened from xdm!
141 %service -n xdm restart
142 %systemd_reload
143
144 %preun
145 if [ "$1" = "0" ]; then
146         /sbin/chkconfig --del xdm
147         %service xdm stop
148 fi
149
150 %postun
151 %systemd_reload
152
153 %files
154 %defattr(644,root,root,755)
155 %doc AUTHORS COPYING ChangeLog README
156 %attr(755,root,root) %{_bindir}/xdm
157 %attr(755,root,root) %{_bindir}/xdmshell
158 %{_datadir}/X11/app-defaults/Chooser
159 %dir %{_libdir}/X11/xdm
160 %attr(755,root,root) %{_libdir}/X11/xdm/libXdmGreet.so
161 %attr(755,root,root) %{_libdir}/X11/xdm/chooser
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
181 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xdm
182 %dir /var/lib/xdm
183 %{_mandir}/man1/xdm.1x*
184 %{_mandir}/man1/xdmshell.1x*
This page took 0.041429 seconds and 3 git commands to generate.