From 30d690c74e8e7e1dfc647bf5015e8f3ad50d84e75e5afc4d61111cc0f36105e3 Mon Sep 17 00:00:00 2001 From: Yifan Jiang Date: Thu, 5 Dec 2024 07:47:53 +0000 Subject: [PATCH] - Update to version 1.1.12: * docs: the servers are by comma instead of colon (#462) * Bump S6 overlay and fix env warnings (#472) * remove useless KEY_FOR_API * reuse port, and revert hbbr `-k` OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/rustdesk-server?expand=0&rev=7 --- .gitattributes | 23 ++++++ .gitignore | 1 + _service | 20 +++++ _servicedata | 4 + hbbr.service | 13 ++++ hbbs.service | 13 ++++ rustdesk-server-1.1.111.tar.gz | 3 + rustdesk-server-1.1.12.obscpio | 3 + rustdesk-server.changes | 32 ++++++++ rustdesk-server.obsinfo | 4 + rustdesk-server.spec | 130 +++++++++++++++++++++++++++++++++ rustdesk-server.sysusers | 4 + vendor.tar.zst | 3 + 13 files changed, 253 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 hbbr.service create mode 100644 hbbs.service create mode 100644 rustdesk-server-1.1.111.tar.gz create mode 100644 rustdesk-server-1.1.12.obscpio create mode 100644 rustdesk-server.changes create mode 100644 rustdesk-server.obsinfo create mode 100644 rustdesk-server.spec create mode 100644 rustdesk-server.sysusers create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..19b1b8f --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + + https://github.com/rustdesk/rustdesk-server.git + git + refs/tags/1.1.12 + @PARENT_TAG@ + disable + + + + + gz + *.tar + + + rustdesk-server + true + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..311037e --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/rustdesk/rustdesk-server.git + 6f18a97644cc3176b923ce5a6aad88bec41d6046 \ No newline at end of file diff --git a/hbbr.service b/hbbr.service new file mode 100644 index 0000000..2de4ecd --- /dev/null +++ b/hbbr.service @@ -0,0 +1,13 @@ +[Unit] +Description=hbbr service for rustdesk-server +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/hbbr +WorkingDirectory=/var/lib/rustdesk-server/ +Restart=always +RestartSec=10 +User=rustdesk +[Install] +WantedBy=multi-user.target diff --git a/hbbs.service b/hbbs.service new file mode 100644 index 0000000..9af8168 --- /dev/null +++ b/hbbs.service @@ -0,0 +1,13 @@ +[Unit] +Description=hbbs service for rustdesk-server +After=network.target + +[Service] +Type=simple +ExecStart=/usr/bin/bash -c 'hbbs -r 127.0.0.1' +WorkingDirectory=/var/lib/rustdesk-server/ +Restart=always +RestartSec=10 +User=rustdesk +[Install] +WantedBy=multi-user.target diff --git a/rustdesk-server-1.1.111.tar.gz b/rustdesk-server-1.1.111.tar.gz new file mode 100644 index 0000000..27319e4 --- /dev/null +++ b/rustdesk-server-1.1.111.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36d9276ee3f18d7bfd68bbc767f4955d6ceab60a48ab22f68523f62c76a79b2c +size 632330 diff --git a/rustdesk-server-1.1.12.obscpio b/rustdesk-server-1.1.12.obscpio new file mode 100644 index 0000000..4a8a6c9 --- /dev/null +++ b/rustdesk-server-1.1.12.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:142d28e670731b030218226e8c177daec1226046bacb5b6e7e9490bc38760d9c +size 1363980 diff --git a/rustdesk-server.changes b/rustdesk-server.changes new file mode 100644 index 0000000..e3207a2 --- /dev/null +++ b/rustdesk-server.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Mon Oct 07 09:02:03 UTC 2024 - rrahl0@opensuse.org + +- Update to version 1.1.12: + * docs: the servers are by comma instead of colon (#462) + * Bump S6 overlay and fix env warnings (#472) + * remove useless KEY_FOR_API + * reuse port, and revert hbbr `-k` + +------------------------------------------------------------------- +Fri May 24 16:32:17 UTC 2024 - Richard Rahl + +- update to 1.1.11-1: + * set reuse port to make restart friendly + * revert hbbr -k to not ruin back-compatibility + +- update to 1.1.11: + * Change default value of -k option to - + + +------------------------------------------------------------------- +Tue Feb 20 15:53:19 UTC 2024 - Richard Rahl + +- add minimum version 1.70 for rust +- update to 1.1.10-3 + * fix trailing issue in private key file + + +------------------------------------------------------------------- +Wed Jan 10 12:15:56 UTC 2024 - Richard Rahl + +- initial packaging of version 1.1.9 diff --git a/rustdesk-server.obsinfo b/rustdesk-server.obsinfo new file mode 100644 index 0000000..c856da2 --- /dev/null +++ b/rustdesk-server.obsinfo @@ -0,0 +1,4 @@ +name: rustdesk-server +version: 1.1.12 +mtime: 1728289296 +commit: 6f18a97644cc3176b923ce5a6aad88bec41d6046 diff --git a/rustdesk-server.spec b/rustdesk-server.spec new file mode 100644 index 0000000..a4290ad --- /dev/null +++ b/rustdesk-server.spec @@ -0,0 +1,130 @@ +# +# spec file for package rustdesk-server +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: rustdesk-server +Version: 1.1.12 +Release: 0 +Summary: RustDesk Server Program +License: AGPL-3.0-only +URL: https://github.com/rustdesk/rustdesk-server +Source0: %{name}-%{version}.tar.gz +Source1: vendor.tar.zst +Source2: rustdesk-server.sysusers +Source3: hbbr.service +Source4: hbbs.service +BuildRequires: cargo-packaging +BuildRequires: pkgconfig +BuildRequires: rust >= 1.70 +BuildRequires: sysuser-tools +Requires: %{name}-hbbr == %{version} +Requires: %{name}-hbbs == %{version} +Requires: %{name}-utils == %{version} +Requires: system-user-rustdesk == %{version} + +%package -n system-user-rustdesk +Summary: System user for rustdesk-server +BuildArch: noarch +%{sysusers_requires} + +%description -n system-user-rustdesk +%summary. + +%package hbbr +Summary: Relay Server for Rustdesk +Requires: system-user-rustdesk == %{version} + +%description hbbr +This package only contains the Relay Server part. + +%package hbbs +Summary: Signal Server for Rustdesk +Requires: system-user-rustdesk == %{version} + +%description hbbs +This package only contains the Signal Server part. + +%package utils +Summary: Utilities for Rustdesk + +%description utils +the utilities for Rustdesk Server + +%description +Self-host your own RustDesk server. + +%prep +%autosetup -a1 + +%build +%sysusers_generate_pre %{SOURCE2} system-user-rustdesk system-user-rustdesk.conf +%{cargo_build} + +%install +%{cargo_install} --frozen +install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-rustdesk.conf +install -D -m 0644 %{SOURCE3} %{buildroot}/%{_unitdir}/hbbr.service +install -D -m 0644 %{SOURCE4} %{buildroot}/%{_unitdir}/hbbs.service +mkdir -p %{buildroot}/var/lib/%{name} + +%pre -n system-user-rustdesk -f system-user-rustdesk.pre + +%pre hbbr +%service_add_pre hbbr.service + +%pre hbbs +%service_add_pre hbbs.service + +%post hbbr +%service_add_post hbbr.service + +%post hbbs +%service_add_post hbbs.service + +%preun hbbr +%systemd_preun hbbr.service + +%preun hbbs +%systemd_preun hbbs.service + +%postun hbbr +%service_del_postun_with_restart hbbr.service + +%postun hbbs +%service_del_postun_with_restart hbbs.service + +%files +%license LICENSE +%doc README.md README-DE.md README-NL.md + +%files -n system-user-rustdesk +%{_sysusersdir}/system-user-rustdesk.conf +%defattr(644,rustdesk,rustdesk,775) +%{_sharedstatedir}/%{name} + +%files hbbr +%{_bindir}/hbbr +%{_unitdir}/hbbr.service + +%files hbbs +%{_bindir}/hbbs +%{_unitdir}/hbbs.service + +%files utils +%{_bindir}/rustdesk-utils + +%changelog diff --git a/rustdesk-server.sysusers b/rustdesk-server.sysusers new file mode 100644 index 0000000..7953aa1 --- /dev/null +++ b/rustdesk-server.sysusers @@ -0,0 +1,4 @@ +#Type Name ID GECOS Home directory Shell +u rustdesk - "user for rustdesk-server" /var/lib/rustdesk-server +g rustdesk - +m rustdesk rustdesk diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..1db6ff5 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f49e9e065caab769ec6b97dab0925d4bfe03b401b69146d4f0e6832fe16b7ea +size 43421996