summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-04-09 15:53:08 +0000
committerCoprDistGit <infra@openeuler.org>2025-04-09 15:53:08 +0000
commit7e7f65a92849ed42ad806bf1b60770b0d32d05b8 (patch)
tree083a711f3ccb26c32ec88edb2757588b4e4155e7
parent8bae48a05e187f03e6ee9086566b4190adcfc165 (diff)
automatic import of xrdpopeneuler25.03
-rw-r--r--.gitignore2
-rw-r--r--sources2
-rw-r--r--xrdp-0.9.22.1.tar.gz.asc16
-rw-r--r--xrdp.logrotate7
-rw-r--r--xrdp.polkit13
-rw-r--r--xrdp.spec166
-rw-r--r--xrdp.sysconfig5
7 files changed, 211 insertions, 0 deletions
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 <pkwarcraft@hotmail.com> 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=""