]>
Commit | Line | Data |
---|---|---|
1dc61c50 | 1 | Summary: Remote desktop server |
2 | Summary(pl.UTF-8): Serwer remote desktop | |
3 | Name: xrdp | |
f36b3e91 | 4 | Version: 0.6.1 |
17c05fb2 | 5 | Release: 1 |
1dc61c50 | 6 | License: GPL |
7 | Group: X11/Applications/Networking | |
f36b3e91 JR |
8 | Source0: http://download.sourceforge.net/xrdp/%{name}-v%{version}.tar.gz |
9 | # Source0-md5: 26099c6588943262023607c1b4e774d8 | |
1dc61c50 | 10 | Source1: %{name}.init |
11 | Source2: %{name}.pamd | |
12 | Source3: %{name}.xrdp.ini | |
13 | Source4: %{name}.sesman.ini | |
14 | Source5: %{name}.README.PLD | |
15 | Source6: %{name}.README.PLD.pl | |
f36b3e91 JR |
16 | Patch0: format-security.patch |
17 | Patch1: build.patch | |
18 | Patch2: heimdal.patch | |
19 | Patch3: link.patch | |
1dc61c50 | 20 | URL: http://xrdp.sourceforge.net/ |
f36b3e91 JR |
21 | BuildRequires: autoconf |
22 | BuildRequires: automake | |
23 | BuildRequires: freerdp-devel | |
24 | BuildRequires: heimdal-devel >= 1.5.3-4 | |
25 | BuildRequires: libtool | |
3c8e42db | 26 | BuildRequires: openssl-devel |
1dc61c50 | 27 | BuildRequires: pam-devel |
de9a48ab | 28 | BuildRequires: rpmbuild(macros) >= 1.268 |
1dc61c50 | 29 | Requires(post,preun): /sbin/chkconfig |
f36b3e91 | 30 | Requires: /usr/bin/Xvnc |
de9a48ab | 31 | Requires: rc-scripts |
1dc61c50 | 32 | Requires: xinitrc-ng |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | xrdp is an open source Remote Desktop Protocol (rdp) server for | |
37 | UNIX-like systems. It is capable of accepting connections from | |
38 | rdesktop and Microsoft's own terminal server / remote desktop clients. | |
39 | ||
40 | Unlike Windows NT/2000/2003 server, xrdp will not display a Windows | |
41 | desktop but an X window desktop to the user. | |
42 | ||
43 | Xrdp uses Xvnc or X11rdp backends to manage the X session. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | xrdp jest serwerem protokołu Remote Desktop (rdp) dla systemów | |
2f4a4448 | 47 | UNIXowych. Do xrdp można się łączyć zarówno programem rdesktop, jak i |
48 | klientami protokołu rdp Microsoftu. | |
1dc61c50 | 49 | |
50 | xrdp używa jako backendu Xvnc lub X11rdp. | |
51 | ||
52 | %prep | |
f36b3e91 | 53 | %setup -q -n %{name}-v%{version} |
1dc61c50 | 54 | %patch0 -p1 |
55 | %patch1 -p1 | |
dd3859b7 | 56 | %patch2 -p1 |
f36b3e91 | 57 | %patch3 -p1 |
1dc61c50 | 58 | |
59 | install %{SOURCE5} README.PLD | |
60 | install %{SOURCE6} README.PLD.pl | |
61 | awk '{gsub("LIBDIR","%{_libdir}"); print}' < %{SOURCE3} > xrdp.ini | |
62 | ||
63 | %build | |
f36b3e91 JR |
64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
69 | export CFLAGS="%{rpmcflags} -DHEIMDAL" | |
70 | %configure \ | |
71 | --enable-kerberos \ | |
72 | --enable-freerdp1 | |
73 | %{__make} | |
1dc61c50 | 74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
f36b3e91 JR |
77 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{%{name},pam.d,rc.d/init.d} |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
1dc61c50 | 82 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/xrdp |
83 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sesman | |
84 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/sesman.ini | |
f36b3e91 JR |
85 | |
86 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*.{a,la,so} | |
1dc61c50 | 87 | |
88 | %post | |
1bf7136e | 89 | /sbin/ldconfig |
90 | /sbin/chkconfig --add xrdp | |
91 | %service xrdp restart "xrdp server" | |
1dc61c50 | 92 | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %preun | |
96 | if [ "$1" = "0" ]; then | |
97 | %service xrdp stop | |
98 | /sbin/chkconfig --del xrdp | |
99 | fi | |
100 | ||
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
107 | %doc *.txt | |
108 | %doc README.PLD | |
109 | %doc README.PLD.pl | |
1dc61c50 | 110 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sesman |
111 | %attr(754,root,root) /etc/rc.d/init.d/xrdp | |
f36b3e91 | 112 | %dir %{_sysconfdir}/%{name} |
1dc61c50 | 113 | %config(noreplace) %{_sysconfdir}/%{name}/xrdp.ini |
114 | %config(noreplace) %{_sysconfdir}/%{name}/rsakeys.ini | |
115 | %config(noreplace) %{_sysconfdir}/%{name}/sesman.ini | |
f36b3e91 JR |
116 | %{_sysconfdir}/%{name}/km-0407.ini |
117 | %{_sysconfdir}/%{name}/km-0409.ini | |
118 | %{_sysconfdir}/%{name}/km-040c.ini | |
119 | %{_sysconfdir}/%{name}/km-0410.ini | |
120 | %{_sysconfdir}/%{name}/km-0419.ini | |
121 | %{_sysconfdir}/%{name}/km-041d.ini | |
122 | %attr(755,root,root) %{_bindir}/xrdp-dis | |
123 | %attr(755,root,root) %{_bindir}/xrdp-genkeymap | |
124 | %attr(755,root,root) %{_bindir}/xrdp-keygen | |
125 | %attr(755,root,root) %{_bindir}/xrdp-sesadmin | |
126 | %attr(755,root,root) %{_bindir}/xrdp-sesrun | |
127 | %attr(755,root,root) %{_bindir}/xrdp-sestest | |
128 | %attr(755,root,root) %{_sbindir}/xrdp | |
129 | %attr(755,root,root) %{_sbindir}/xrdp-chansrv | |
130 | %attr(755,root,root) %{_sbindir}/xrdp-sesman | |
131 | %attr(755,root,root) %{_sbindir}/xrdp-sessvc | |
132 | %dir %{_libdir}/xrdp | |
133 | %attr(755,root,root) %{_libdir}/xrdp/libcommon.so.* | |
134 | %attr(755,root,root) %{_libdir}/xrdp/libmc.so.* | |
135 | %attr(755,root,root) %{_libdir}/xrdp/librdp.so.* | |
136 | %attr(755,root,root) %{_libdir}/xrdp/libscp.so.* | |
137 | %attr(755,root,root) %{_libdir}/xrdp/libvnc.so.* | |
138 | %attr(755,root,root) %{_libdir}/xrdp/libxrdp.so.* | |
139 | %attr(755,root,root) %{_libdir}/xrdp/libxrdpfreerdp1.so.* | |
140 | %attr(755,root,root) %{_libdir}/xrdp/libxup.so.* | |
141 | %dir %{_datadir}/xrdp | |
142 | %{_datadir}/xrdp/ad24b.bmp | |
143 | %{_datadir}/xrdp/ad256.bmp | |
144 | %{_datadir}/xrdp/cursor0.cur | |
145 | %{_datadir}/xrdp/cursor1.cur | |
146 | %{_datadir}/xrdp/sans-10.fv1 | |
147 | %{_datadir}/xrdp/xrdp24b.bmp | |
148 | %{_datadir}/xrdp/xrdp256.bmp | |
149 | %{_mandir}/man5/sesman.ini.5* | |
150 | %{_mandir}/man5/xrdp.ini.5* | |
151 | %{_mandir}/man8/xrdp-sesman.8* | |
152 | %{_mandir}/man8/xrdp-sesrun.8* | |
153 | %{_mandir}/man8/xrdp.8* |