SPECS: xrdp.spec (NEW) - RDP server for UNIX - initial release

pawelz pawelz at pld-linux.org
Wed Jul 2 19:12:16 CEST 2008


Author: pawelz                       Date: Wed Jul  2 17:12:16 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- RDP server for UNIX
- initial release

---- Files affected:
SPECS:
   xrdp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/xrdp.spec
diff -u /dev/null SPECS/xrdp.spec:1.1
--- /dev/null	Wed Jul  2 19:12:16 2008
+++ SPECS/xrdp.spec	Wed Jul  2 19:12:10 2008
@@ -0,0 +1,137 @@
+# $Revision$, $Date$
+#
+Summary:	Remote desktop server
+Summary(pl.UTF-8):	Serwer remote desktop
+Name:		xrdp
+Version:	0.4.0
+Release:	1
+License:	GPL
+Group:		X11/Applications/Networking
+Source0:	http://dl.sourceforge.net/xrdp/%{name}-%{version}.tar.gz
+# Source0-md5:	dc83d149e385c4cd402d990695691f55
+Source1:	%{name}.init
+Source2:	%{name}.pamd
+Source3:	%{name}.xrdp.ini
+Source4:	%{name}.sesman.ini
+Source5:	%{name}.README.PLD
+Source6:	%{name}.README.PLD.pl
+Patch0:		%{name}-paths.patch
+Patch1:		%{name}-make.patch
+URL:		http://xrdp.sourceforge.net/
+BuildRequires:	pam-devel
+Requires(post,preun):	/sbin/chkconfig
+Requires:	tightvnc-server
+Requires:	xinitrc-ng
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+xrdp is an open source Remote Desktop Protocol (rdp) server for
+UNIX-like systems. It is capable of accepting connections from
+rdesktop and Microsoft's own terminal server / remote desktop clients.
+
+Unlike Windows NT/2000/2003 server, xrdp will not display a Windows
+desktop but an X window desktop to the user.
+
+Xrdp uses Xvnc or X11rdp backends to manage the X session.
+
+%description -l pl.UTF-8
+xrdp jest serwerem protokołu Remote Desktop (rdp) dla systemów
+UNIXowych. Do xrdp można się łączyć zarówno programem rdesktop, jak i
+klientami protokołu rdp Microsoftu.
+
+xrdp używa jako backendu Xvnc lub X11rdp.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+install %{SOURCE5} README.PLD
+install %{SOURCE6} README.PLD.pl
+awk '{gsub("LIBDIR","%{_libdir}"); print}' < %{SOURCE3} > xrdp.ini
+
+%build
+LDFLAGS="-L%{_libdir}" %{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir}/xrdp,%{_sbindir},%{_docdir},%{_localstatedir}/run,%{_datadir}/%{name}} \
+	$RPM_BUILD_ROOT%{_mandir}/man{5,8} \
+	$RPM_BUILD_ROOT%{_sysconfdir}/{%{name},pam.d,rc.d/init.d} \
+	$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/xrdp
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/sesman
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/sesman.ini
+install xrdp.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/xrdp.ini
+install libxrdp/libxrdp.so $RPM_BUILD_ROOT%{_libdir}/libxrdp.so
+install rdp/librdp.so $RPM_BUILD_ROOT%{_libdir}/xrdp/librdp.so
+install sesman/sessvc $RPM_BUILD_ROOT%{_sbindir}/sessvc
+install sesman/sesman $RPM_BUILD_ROOT%{_sbindir}/sesman
+install sesman/startwm.sh $RPM_BUILD_ROOT%{_sbindir}/startwm.sh
+install sesman/libscp/libscp.so $RPM_BUILD_ROOT%{_libdir}/libscp.so
+install sesman/tools/sesrun $RPM_BUILD_ROOT%{_sbindir}/sesrun
+install sesman/tools/sestest $RPM_BUILD_ROOT%{_sbindir}/sestest
+install vnc/libvnc.so $RPM_BUILD_ROOT%{_libdir}/xrdp/libvnc.so
+install xrdp/xrdp $RPM_BUILD_ROOT%{_sbindir}/xrdp
+install xrdp/ad256.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}/ad256.bmp
+install xrdp/xrdp256.bmp $RPM_BUILD_ROOT%{_datadir}/%{name}/xrdp256.bmp
+install xrdp/cursor0.cur $RPM_BUILD_ROOT%{_datadir}/%{name}/cursor0.cur
+install xrdp/cursor1.cur $RPM_BUILD_ROOT%{_datadir}/%{name}/cursor1.cur
+install xrdp/Tahoma-10.fv1 $RPM_BUILD_ROOT%{_datadir}/%{name}/Tahoma-10.fv1
+install xrdp/rsakeys.ini $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/rsakeys.ini
+install xup/libxup.so $RPM_BUILD_ROOT%{_libdir}/xrdp/libxup.so
+install docs/man/sesman.8 $RPM_BUILD_ROOT%{_mandir}/man8/sesman.8
+install docs/man/sesrun.8 $RPM_BUILD_ROOT%{_mandir}/man8/sesrun.8
+install docs/man/xrdp.8 $RPM_BUILD_ROOT%{_mandir}/man8/xrdp.8
+install docs/man/sesman.ini.5 $RPM_BUILD_ROOT%{_mandir}/man5/sesman.ini.5
+install docs/man/xrdp.ini.5 $RPM_BUILD_ROOT%{_mandir}/man5/xrdp.ini.5
+
+%post
+	/sbin/ldconfig
+	%service xrdp stop
+	/sbin/chkconfig --add xrdp
+
+%postun -p /sbin/ldconfig
+
+%preun
+if [ "$1" = "0" ]; then
+	%service xrdp stop
+	/sbin/chkconfig --del xrdp
+fi
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%doc README.PLD
+%doc README.PLD.pl
+%dir %{_sysconfdir}/%{name}
+%dir %{_localstatedir}/run
+%{_libdir}/libscp.so
+%{_libdir}/libxrdp.so
+%dir %{_libdir}/xrdp
+%{_libdir}/xrdp/*
+%dir %{_datadir}/xrdp
+%{_datadir}/xrdp/*
+%attr(755,root,root) %{_sbindir}/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/sesman
+%attr(754,root,root) /etc/rc.d/init.d/xrdp
+%config(noreplace) %{_sysconfdir}/%{name}/xrdp.ini
+%config(noreplace) %{_sysconfdir}/%{name}/rsakeys.ini
+%config(noreplace) %{_sysconfdir}/%{name}/sesman.ini
+%{_mandir}/man8/*
+%{_mandir}/man5/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/07/02 17:12:10  pawelz
+- RDP server for UNIX
+- initial release
+
================================================================


More information about the pld-cvs-commit mailing list