commit 21b821be274dbdf8e6bc3c10d22bd36d4ebd4382fecad6efbe4d5a1781c6226f Author: Dirk Mueller Date: Sun Jan 21 17:29:25 2024 +0000 Accepting request 1139632 from home:rrahl0 I want to maintain rustdesk-server for Factory in X11:RemoteDesktop OBS-URL: https://build.opensuse.org/request/show/1139632 OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/rustdesk-server?expand=0&rev=1 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..cccc4cf --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + + https://github.com/rustdesk/rustdesk-server.git + git + refs/tags/1.1.9 + @PARENT_TAG@ + disable + + + + + gz + *.tar + + + rustdesk-server + + 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.9.tar.gz b/rustdesk-server-1.1.9.tar.gz new file mode 100644 index 0000000..36619e9 --- /dev/null +++ b/rustdesk-server-1.1.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ae9531df7f02892baeed71ce3c4ea3f24ed7a41290d84360f9c69a3096d99f7 +size 627310 diff --git a/rustdesk-server.changes b/rustdesk-server.changes new file mode 100644 index 0000000..79ea18d --- /dev/null +++ b/rustdesk-server.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jan 10 12:15:56 UTC 2024 - Richard Rahl + +- initial packaging of version 1.1.9 diff --git a/rustdesk-server.spec b/rustdesk-server.spec new file mode 100644 index 0000000..2d2d4ef --- /dev/null +++ b/rustdesk-server.spec @@ -0,0 +1,129 @@ +# +# 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.9 +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: sysuser-tools +BuildRequires: pkgconfig +Requires: system-user-rustdesk == %{version} +Requires: %{name}-hbbr == %{version} +Requires: %{name}-hbbs == %{version} +Requires: %{name}-utils == %{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..eb55d44 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9f7ffd964a048ef95f3b6dd369b05a04ff4e50b6ff6491b0c14e3361a212848 +size 41088080