2009-08-14 18:01:35 +00:00
|
|
|
%{!?_initddir: %global _initddir %{_sysconfdir}/rc.d/init.d}
|
|
|
|
|
|
|
|
Summary: Open source remote desktop protocol (RDP) server
|
|
|
|
Name: xrdp
|
|
|
|
Version: 0.5.0
|
2012-01-14 09:17:50 +00:00
|
|
|
Release: 0.15%{?dist}
|
2009-08-14 18:01:35 +00:00
|
|
|
License: GPLv2+ with exceptions
|
|
|
|
Group: Applications/Internet
|
|
|
|
URL: http://xrdp.sourceforge.net/
|
2010-11-18 03:58:50 +00:00
|
|
|
Source0: http://server1.xrdp.org/xrdp/xrdp-HEAD-a9cfc23.tar.gz
|
2009-08-14 18:01:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-09-08 16:06:52 +00:00
|
|
|
Patch0: xrdp-pam-auth.patch
|
2010-11-18 03:58:50 +00:00
|
|
|
Patch1: xrdp-use-xinitrc-in-startm-sh.patch
|
|
|
|
Patch2: xrdp-0.5.0-version.patch
|
2009-09-08 16:06:52 +00:00
|
|
|
|
2009-08-14 18:01:35 +00:00
|
|
|
Source1: xrdp.init
|
|
|
|
Source2: xrdp.sysconfig
|
|
|
|
Source3: xrdp.logrotate
|
|
|
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2010-03-18 15:26:39 +00:00
|
|
|
Buildrequires: libX11-devel
|
2010-03-18 17:31:36 +00:00
|
|
|
BuildRequires: libXfixes-devel
|
2009-08-14 18:01:35 +00:00
|
|
|
|
|
|
|
#vnc-server provides Xvnc (tigervnc-server in fedora)
|
2010-10-04 05:21:37 +00:00
|
|
|
Requires: tigervnc-server-minimal
|
2009-08-14 18:01:35 +00:00
|
|
|
|
|
|
|
#initscripts requires
|
|
|
|
Requires(post): chkconfig
|
|
|
|
Requires(preun): chkconfig
|
|
|
|
# This is for /sbin/service
|
|
|
|
Requires(preun): initscripts
|
|
|
|
# This is for /sbin/service
|
|
|
|
Requires(postun): initscripts
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
The goal of this project is to provide a fully functional Linux terminal
|
|
|
|
server, capable of accepting connections from rdesktop and Microsoft's own
|
|
|
|
terminal server / remote desktop clients.
|
|
|
|
|
|
|
|
%prep
|
2010-11-18 03:58:50 +00:00
|
|
|
%setup -q -n xrdp-HEAD-a9cfc23
|
2009-09-08 16:06:52 +00:00
|
|
|
%patch0 -p2
|
2010-07-09 01:08:12 +00:00
|
|
|
%patch1 -p2
|
2010-11-18 03:58:50 +00:00
|
|
|
%patch2 -p2
|
2010-07-09 01:08:12 +00:00
|
|
|
|
2009-08-14 18:01:35 +00:00
|
|
|
|
|
|
|
# remove unused modules from xrdp login combobox
|
|
|
|
%{__sed} -i -e '/\[xrdp2\]/,$d' xrdp/xrdp.ini
|
|
|
|
|
2009-09-04 22:27:40 +00:00
|
|
|
#Low is 40 bit key and everything from client to server is encrypted.
|
|
|
|
#Medium is 40 bit key, everything both ways is encrypted.
|
|
|
|
#High is 128 bit key everything both ways is encrypted.
|
|
|
|
|
|
|
|
# increase encryption to 128 bit's
|
|
|
|
%{__sed} -i 's/crypt_level=low/crypt_level=high/g' xrdp/xrdp.ini
|
|
|
|
|
2009-08-14 18:01:35 +00:00
|
|
|
#fix wrong permission
|
|
|
|
%{__chmod} 644 keygen/keygen.c
|
|
|
|
|
|
|
|
%build
|
|
|
|
./bootstrap
|
|
|
|
|
|
|
|
%configure
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%{__make} install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
#remove .la and .a files
|
|
|
|
find %{buildroot} -name '*.a' -exec rm {} \;
|
|
|
|
find %{buildroot} -name '*.la' -exec rm {} \;
|
|
|
|
|
|
|
|
#install sesman pam config /etc/pam.d/xrdp-sesman
|
|
|
|
%{__install} -Dp -m 644 instfiles/pam.d/xrdp-sesman %{buildroot}%{_sysconfdir}/pam.d/xrdp-sesman
|
|
|
|
|
|
|
|
#installx xrdp initscript /etc/rc.d/init.d/xrdp
|
|
|
|
%{__install} -Dp -m 755 %{SOURCE1} %{buildroot}%{_initddir}/xrdp
|
|
|
|
|
|
|
|
#install xrdp sysconfig /etc/sysconfig/xrdp
|
|
|
|
%{__install} -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/xrdp
|
|
|
|
|
|
|
|
#install logrotate /etc/logrotate.d/xrdp
|
|
|
|
%{__install} -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/xrdp
|
|
|
|
|
|
|
|
#install log file /var/log/xrdp-sesman.log
|
|
|
|
%{__mkdir} -p %{buildroot}%{_localstatedir}/log/
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/xrdp-sesman.log
|
|
|
|
|
|
|
|
# rsakeys.ini
|
|
|
|
touch %{buildroot}%{_sysconfdir}/xrdp/rsakeys.ini
|
|
|
|
%{__chmod} 0600 %{buildroot}%{_sysconfdir}/xrdp/rsakeys.ini
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
/sbin/service %{name} stop >/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --del %{name}
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
# This adds the proper /etc/rc*.d links for the script
|
|
|
|
/sbin/chkconfig --add %{name}
|
|
|
|
|
|
|
|
xrdp-keygen xrdp %{_sysconfdir}/xrdp/rsakeys.ini > /dev/null
|
|
|
|
%{__chmod} 0600 %{_sysconfdir}/xrdp/rsakeys.ini
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" -ge "1" ] ; then
|
|
|
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING *.txt
|
|
|
|
%dir %{_libdir}/xrdp
|
|
|
|
%dir %{_sysconfdir}/xrdp
|
|
|
|
%dir %{_datadir}/xrdp
|
|
|
|
%config(noreplace) %{_sysconfdir}/xrdp/sesman.ini
|
|
|
|
%config(noreplace) %{_sysconfdir}/xrdp/xrdp.ini
|
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/xrdp-sesman
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/xrdp
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/xrdp
|
|
|
|
%{_initddir}/xrdp
|
|
|
|
%{_sysconfdir}/xrdp/*.sh
|
2010-03-18 14:59:55 +00:00
|
|
|
%{_sysconfdir}/xrdp/km*.ini
|
|
|
|
%{_bindir}/xrdp-genkeymap
|
2009-08-14 18:01:35 +00:00
|
|
|
%{_bindir}/xrdp-sesadmin
|
|
|
|
%{_bindir}/xrdp-keygen
|
|
|
|
%{_bindir}/xrdp-sesrun
|
|
|
|
%{_bindir}/xrdp-sestest
|
|
|
|
%{_sbindir}/xrdp-chansrv
|
|
|
|
%{_sbindir}/xrdp
|
|
|
|
%{_sbindir}/xrdp-sesman
|
|
|
|
%{_sbindir}/xrdp-sessvc
|
|
|
|
%{_datadir}/xrdp/ad256.bmp
|
|
|
|
%{_datadir}/xrdp/cursor0.cur
|
|
|
|
%{_datadir}/xrdp/cursor1.cur
|
|
|
|
%{_datadir}/xrdp/xrdp256.bmp
|
|
|
|
%{_datadir}/xrdp/sans-10.fv1
|
2010-03-18 14:59:55 +00:00
|
|
|
%{_datadir}/xrdp/ad24b.bmp
|
|
|
|
%{_datadir}/xrdp/xrdp24b.bmp
|
2009-08-14 18:01:35 +00:00
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_libdir}/xrdp/lib*.so.*
|
|
|
|
%{_libdir}/xrdp/libcommon.so
|
|
|
|
%{_libdir}/xrdp/libmc.so
|
|
|
|
%{_libdir}/xrdp/librdp.so
|
|
|
|
%{_libdir}/xrdp/libscp.so
|
|
|
|
%{_libdir}/xrdp/libvnc.so
|
|
|
|
%{_libdir}/xrdp/libxrdp.so
|
|
|
|
%{_libdir}/xrdp/libxup.so
|
|
|
|
%ghost %{_localstatedir}/log/xrdp-sesman.log
|
|
|
|
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/xrdp/rsakeys.ini
|
|
|
|
|
|
|
|
%changelog
|
2012-01-14 09:17:50 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-08 06:53:32 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-0.14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-18 03:58:50 +00:00
|
|
|
* Thu Nov 18 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.13
|
|
|
|
- up to git tag a9cfc235211a49c69c3cce3f98ee5976ff8103a4
|
|
|
|
|
2010-11-18 02:36:13 +00:00
|
|
|
* Thu Nov 18 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.12.03172010
|
|
|
|
- fix logrotate to not restart xrdp and drop all open connections
|
|
|
|
|
2010-10-04 05:21:37 +00:00
|
|
|
* Mon Oct 04 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.11.03172010
|
|
|
|
- Load a default keymap when current keymap doesnt exist
|
|
|
|
|
2010-07-09 01:08:12 +00:00
|
|
|
* Thu Jul 08 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.10.03172010
|
|
|
|
- fix rhbz #611669 (load environment variables)
|
|
|
|
|
2010-03-18 17:31:36 +00:00
|
|
|
* Thu Mar 18 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.9.03172010
|
|
|
|
- buildrequires libXfixes-devel
|
|
|
|
|
2010-03-18 15:26:39 +00:00
|
|
|
* Thu Mar 18 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.8.03172010
|
|
|
|
- buildrequires libX11-devel
|
|
|
|
|
2010-03-18 14:59:55 +00:00
|
|
|
* Thu Mar 18 2010 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.7.03172010
|
|
|
|
- sync with last xrdp cvs
|
|
|
|
|
2009-09-16 19:34:00 +00:00
|
|
|
* Wed Sep 16 2009 Tomas Mraz <tmraz@redhat.com> - 0.5.0-0.6.20090811cvs
|
|
|
|
- use password-auth instead of system-auth
|
|
|
|
|
2009-09-08 16:06:52 +00:00
|
|
|
* Tue Sep 08 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.5.20090811cvs
|
|
|
|
- fix xrdp-sesman pam.d to uses system-auth
|
|
|
|
|
2009-09-04 22:27:40 +00:00
|
|
|
* Fri Sep 04 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.4.20090811cvs
|
|
|
|
- increase encryption to 128 bit's
|
|
|
|
- include system-auth into /etc/pam.d/xrdp-sesman
|
|
|
|
|
2009-08-26 15:22:56 +00:00
|
|
|
* Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 0.5.0-0.3.20090811cvs
|
|
|
|
- rebuild with new openssl
|
|
|
|
|
2009-08-14 18:01:35 +00:00
|
|
|
* Thu Aug 13 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.2.20090811cvs
|
|
|
|
- more changes to spec file https://bugzilla.redhat.com/show_bug.cgi?id=516364#c10
|
|
|
|
|
|
|
|
* Wed Aug 12 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-0.1.20090811cvs
|
|
|
|
- change versioning schema
|
|
|
|
- improve initscript
|
|
|
|
- fix some macros
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 11 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.0-2.20090811cvs
|
|
|
|
- changes from BZ#516364 comment 2 from Mamoru Tasaka
|
|
|
|
- changed license to "GPLv2+ with exceptions"
|
|
|
|
- dropped -libs subpackage
|
|
|
|
- use cvs version
|
|
|
|
- remove a patch and use sed instead
|
|
|
|
- remove attr's
|
|
|
|
|
|
|
|
* Thu Apr 02 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> 0.5.0-1
|
|
|
|
- Initial RPM release
|