From 60eb9cc7cb9445f5432ee333d181eece99d5ca89 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 6 Jan 2025 15:42:49 +0000 Subject: automatic import of xrdp --- .gitignore | 2 + sources | 2 + xrdp-0.9.22.1.tar.gz.asc | 16 +++++ xrdp.logrotate | 7 ++ xrdp.polkit | 13 ++++ xrdp.spec | 166 +++++++++++++++++++++++++++++++++++++++++++++++ xrdp.sysconfig | 5 ++ 7 files changed, 211 insertions(+) create mode 100644 sources create mode 100644 xrdp-0.9.22.1.tar.gz.asc create mode 100644 xrdp.logrotate create mode 100644 xrdp.polkit create mode 100644 xrdp.spec create mode 100644 xrdp.sysconfig diff --git a/.gitignore b/.gitignore index e69de29..102972c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/18AB838A907167745914871903993B4065E7193B.gpg +/xrdp-0.9.22.1.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..2cfe34e --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +52881d20dd54ce8fc4bcfc1c33fb67ca 18AB838A907167745914871903993B4065E7193B.gpg +64b012b05ed41a445281adc7903d968e xrdp-0.9.22.1.tar.gz diff --git a/xrdp-0.9.22.1.tar.gz.asc b/xrdp-0.9.22.1.tar.gz.asc new file mode 100644 index 0000000..ce38369 --- /dev/null +++ b/xrdp-0.9.22.1.tar.gz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEGKuDipBxZ3RZFIcZA5k7QGXnGTsFAmRsEM0ACgkQA5k7QGXn +GTvOXA//cvi3R0CMIOtTCb8LYXEeH6+S8c4Mr/FDvvWn/7+lKcDG2T/d5dLkLobn +oQjmdnFT/aTlcQau5tlbpRms5zYjT9uAx4CCQ6pQENEbzlq4hB4yQ8ue8b9Up08v +4W0JyMZYpq96Hd1VgNOf+MBkLsHbKsCPB8f6GqEWvdMIrRtBTvP4pb+BxLgKxcZ8 +afWRcjymgVUBRgwzAP2KAiOhFM6aVCUVf0JQ97YxhZWMt2+IWwl0MvJW4otztMC/ +FgOomfdXnkhUKjdN5GTbG4mwBF4NiLSQirQfdFp+mkpZMTQNoqkahymXbAv9O525 +mqpItW59MjkonlvpPwX3ZiRBjOezOFhq/tAyKUWJ2FxYG7YRuVM50rrI8bhIQ90N +JO2KIwfLcki+wNDNlYYZvUFV6vdjwIOWy26gtsu0sTCSH7BIZ9kezxhfYiY9BBGN +6XuCtz6/rbcF89a7pMJoME+obGDlemp7vmhAf5R3pjtXjfj62eIfxefvjt0w1rvU +fujowcsgOUWAQ3evMSedrjThdD6fETbNc9nHCtum0SzMcupTZp4bBhDR2eaVv4QF +kd+BwG0vE+tiWDs6xeKrxhNS/Ok80B7coFeynuzALQXxVQk69e7mTmZtotkRAwx2 ++hXaVl+EjuskKFPevrz6TlIzQYNj7qyjhgGbJ4HllUcsJdc7Wa4= +=ePiK +-----END PGP SIGNATURE----- diff --git a/xrdp.logrotate b/xrdp.logrotate new file mode 100644 index 0000000..d976cc6 --- /dev/null +++ b/xrdp.logrotate @@ -0,0 +1,7 @@ +/var/log/xrdp*.log { + missingok + notifempty + rotate 4 + weekly + create +} diff --git a/xrdp.polkit b/xrdp.polkit new file mode 100644 index 0000000..b4c987e --- /dev/null +++ b/xrdp.polkit @@ -0,0 +1,13 @@ +polkit.addRule(function(action, subject) { + if ((action.id == "org.freedesktop.color-manager.create-device" || + action.id == "org.freedesktop.color-manager.create-profile"|| + action.id == "org.freedesktop.color-manager.delete-device" || + action.id == "org.freedesktop.color-manager.delete-profile" || + action.id == "org.freedesktop.color-manager.modify-device" || + action.id == "org.freedesktop.color-manager.modify-profile" || + action.id == "org.freedesktop.packagekit.system-sources-refresh") && + subject.active == true) { + return polkit.Result.YES; + } + return polkit.Result.NOT_HANDLED; +}); diff --git a/xrdp.spec b/xrdp.spec new file mode 100644 index 0000000..de6a7aa --- /dev/null +++ b/xrdp.spec @@ -0,0 +1,166 @@ +Summary: Open source remote desktop protocol (RDP) server +Name: xrdp +Version: 0.9.22.1 +Release: 1 +License: ASL 2.0 and GPLv2+ and MIT +URL: http://www.xrdp.org/ +Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz +Source1: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz.asc +# get the key from keyserver using: +# gpg --receive-keys 0x9F72CDBC01BF10EB +# gpg --export 9F72CDBC01BF10EB > 18AB838A907167745914871903993B4065E7193B.gpg +Source2: 18AB838A907167745914871903993B4065E7193B.gpg +Source3: xrdp.sysconfig +Source4: xrdp.logrotate +Source5: xrdp.polkit + +BuildRequires: make +BuildRequires: /usr/bin/gpg2 +BuildRequires: gcc +BuildRequires: automake autoconf libtool +BuildRequires: libX11-devel +BuildRequires: libXfixes-devel +BuildRequires: libXrandr-devel +BuildRequires: imlib2-devel +BuildRequires: openssl-devel +BuildRequires: pam-devel +BuildRequires: nasm +BuildRequires: pixman-devel +BuildRequires: check-devel +BuildRequires: systemd + +Requires: tigervnc-server-minimal +Requires: xorg-x11-xinit +Requires: util-linux +Requires: xorg-x11-server + +Requires(post): systemd +Requires(post): systemd-sysv +Requires(post): /sbin/ldconfig +Requires(posttrans): openssl +Requires(preun): systemd +Requires(posttrans): systemd + + +%package devel +Summary: Headers and pkg-config files needed to compile xrdp backends + +Requires: %{name} = %{version}-%{release} + +%description +xrdp provides a fully functional RDP server compatible with a wide range +of RDP clients, including FreeRDP and Microsoft RDP client. + +%description devel +This package contains headers necessary for developing xrdp backends that +talk to xrdp. + +%prep +%autosetup +# gpg verify +workdir=$(mktemp -d) +/usr/bin/gpg2 --homedir="${workdir}" --yes --output=${workdir}/keyring.gpg --dearmor %{SOURCE2} +/usr/bin/gpg2 --verify --homedir="${workdir}" --keyring=${workdir}/keyring.gpg %{SOURCE1} %{SOURCE0} +rm -rf ${workdir} + +%build +./bootstrap +CFLAGS="$RPM_OPT_FLAGS %{?_missing_braces}" \ +%configure --enable-vsock --enable-tests --enable-pixman \ + --enable-painter --with-imlib2=yes +%make_build + +%install +%make_install +%{__install} -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/xrdp +%{__install} -Dp -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/xrdp +%{__install} -Dp -m 644 %{SOURCE5} %{buildroot}%{_datadir}/polkit-1/rules.d/xrdp.rules + +%post +%systemd_post xrdp.service + +%preun +systemctl stop xrdp.service > /dev/null 2>&1 || : + +%ldconfig_postun + +%posttrans +if [ ! -s %{_sysconfdir}/xrdp/rsakeys.ini ]; then + (umask 377; touch %{_sysconfdir}/xrdp/rsakeys.ini; %{_bindir}/xrdp-keygen xrdp %{_sysconfdir}/xrdp/rsakeys.ini &>/dev/null) +fi + +%files +%doc COPYING +%dir %{_libdir}/xrdp +%dir %{_sysconfdir}/xrdp +%dir %{_sysconfdir}/xrdp/pulse +%dir %{_datadir}/xrdp +%config(noreplace) %{_sysconfdir}/xrdp/xrdp.ini +%config(noreplace) %{_sysconfdir}/pam.d/xrdp-sesman +%config(noreplace) %{_sysconfdir}/logrotate.d/xrdp +%config(noreplace) %{_sysconfdir}/sysconfig/xrdp +%config(noreplace) %{_sysconfdir}/xrdp/sesman.ini +%config(noreplace) %{_sysconfdir}/xrdp/km*.ini +%config(noreplace) %{_sysconfdir}/xrdp/xrdp_keyboard.ini +%config(noreplace) %{_sysconfdir}/xrdp/pulse/default.pa +%exclude %ghost %{_sysconfdir}/xrdp/*.pem +%exclude %ghost %{_sysconfdir}/xrdp/rsakeys.ini +%{_bindir}/xrdp-genkeymap +%{_bindir}/xrdp-sesadmin +%{_bindir}/xrdp-keygen +%{_bindir}/xrdp-sesrun +%{_bindir}/xrdp-dis +%{_bindir}/paintertest +%{_sbindir}/xrdp-chansrv +%{_sbindir}/xrdp +%{_sbindir}/xrdp-sesman +%{_datadir}/xrdp/ad256.bmp +%{_datadir}/xrdp/cursor0.cur +%{_datadir}/xrdp/cursor1.cur +%{_datadir}/xrdp/xrdp256.bmp +%{_datadir}/xrdp/sans-10.fv1 +%{_datadir}/xrdp/ad24b.bmp +%{_datadir}/xrdp/xrdp24b.bmp +%{_datadir}/xrdp/xrdp_logo.bmp +%{_datadir}/polkit-1/rules.d/xrdp.rules +%{_mandir}/man5/* +%{_mandir}/man8/* +%{_mandir}/man1/* +%{_libdir}/librfxencode.so* +%{_libdir}/libpainter.* +%{_libdir}/xrdp/lib*.so* +%{_sysconfdir}/xrdp/*.sh +%exclude %{_libdir}/librfxencode.so +%exclude %{_libdir}/xrdp/libcommon.so +%exclude %{_libdir}/xrdp/libscp.so +%exclude %{_libdir}/xrdp/libxrdp.so +%exclude %{_libdir}/xrdp/libxrdpapi.so +%{_unitdir}/xrdp-sesman.service +%{_unitdir}/xrdp.service +%exclude %{_includedir}/painter.h +%exclude %{_libdir}/pkgconfig/libpainter.pc +%exclude %{_libdir}/*.a +%exclude %{_libdir}/*.la +%exclude %{_libdir}/xrdp/*.a +%exclude %{_libdir}/xrdp/*.la +%ghost %{_localstatedir}/log/xrdp.log +%ghost %{_localstatedir}/log/xrdp-sesman.log +%ghost %{_localstatedir}/run/xrdp.pid +%ghost %{_localstatedir}/run/xrdp-sesman.pid +%exclude %{_libdir}/pkgconfig/rfxcodec.pc + +%files devel +%{_includedir}/ms-* +%{_includedir}/xrdp* +%{_includedir}/rfxcodec_*.h +%{_libdir}/librfxencode.so +%{_libdir}/xrdp/libcommon.so +%{_libdir}/xrdp/libscp.so +%{_libdir}/xrdp/libxrdp.so +%{_libdir}/xrdp/libxrdpapi.so +%{_libdir}/pkgconfig/rfxcodec.pc +%{_libdir}/pkgconfig/xrdp.pc + +%changelog +* Mon Jul 24 2023 lichaoran 0.9.22.1-1 +- Initial package diff --git a/xrdp.sysconfig b/xrdp.sysconfig new file mode 100644 index 0000000..1988bea --- /dev/null +++ b/xrdp.sysconfig @@ -0,0 +1,5 @@ +#for xrdp.service +#XRDP_OPTIONS="" + +#for xrdp-sesman.service +#SESMAN_OPTIONS="" -- cgit v1.2.3