7 |
Group: Networking/Remote access |
Group: Networking/Remote access |
8 |
URL: http://www.xrdp.org/ |
URL: http://www.xrdp.org/ |
9 |
Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz |
Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz |
10 |
Source1: xrdp-sesman.pamd |
Source1: https://raw.githubusercontent.com/neutrinolabs/xrdp/devel/instfiles/pam.d/xrdp-sesman.system |
11 |
Source2: xrdp.sysconfig |
Source2: xrdp.sysconfig |
12 |
Source3: xrdp.logrotate |
Source3: xrdp.logrotate |
13 |
Source4: openssl.conf |
Source4: openssl.conf |
60 |
%prep |
%prep |
61 |
%autosetup -p1 |
%autosetup -p1 |
62 |
|
|
63 |
|
# missing file from source tarball |
64 |
|
if [[ ! -f instfiles/pam.d/xrdp-sesman.system ]]; then |
65 |
|
cp -a %{SOURCE1} instfiles/pam.d/xrdp-sesman.system |
66 |
|
fi |
67 |
|
|
68 |
# create 'bash -l' based startwm, to pick up PATH etc. |
# create 'bash -l' based startwm, to pick up PATH etc. |
69 |
echo '#!/bin/bash -l |
echo '#!/bin/bash -l |
70 |
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh |
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh |
102 |
%{buildroot}%{_libdir}/xrdp/libxrdpapi.so \ |
%{buildroot}%{_libdir}/xrdp/libxrdpapi.so \ |
103 |
%{buildroot}%{_libdir}/librfxencode.so |
%{buildroot}%{_libdir}/librfxencode.so |
104 |
|
|
|
#install sesman pam config /etc/pam.d/xrdp-sesman |
|
|
%{__install} -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/xrdp-sesman |
|
|
|
|
105 |
#install xrdp sysconfig /etc/sysconfig/xrdp |
#install xrdp sysconfig /etc/sysconfig/xrdp |
106 |
%{__install} -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/xrdp |
%{__install} -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/xrdp |
107 |
|
|