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
This commit is contained in:
commit
21b821be27
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/rustdesk/rustdesk-server.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">refs/tags/1.1.9</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="changesgenerate">disable</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual" />
|
||||||
|
<service name="tar" mode="manual" />
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
</service>
|
||||||
|
<service name="cargo_vendor" mode="manual">
|
||||||
|
<param name="srcdir">rustdesk-server</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
13
hbbr.service
Normal file
13
hbbr.service
Normal file
@ -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
|
13
hbbs.service
Normal file
13
hbbs.service
Normal file
@ -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
|
3
rustdesk-server-1.1.9.tar.gz
Normal file
3
rustdesk-server-1.1.9.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9ae9531df7f02892baeed71ce3c4ea3f24ed7a41290d84360f9c69a3096d99f7
|
||||||
|
size 627310
|
4
rustdesk-server.changes
Normal file
4
rustdesk-server.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 10 12:15:56 UTC 2024 - Richard Rahl <rrahl0@proton.me>
|
||||||
|
|
||||||
|
- initial packaging of version 1.1.9
|
129
rustdesk-server.spec
Normal file
129
rustdesk-server.spec
Normal file
@ -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
|
4
rustdesk-server.sysusers
Normal file
4
rustdesk-server.sysusers
Normal file
@ -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
|
3
vendor.tar.zst
Normal file
3
vendor.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b9f7ffd964a048ef95f3b6dd369b05a04ff4e50b6ff6491b0c14e3361a212848
|
||||||
|
size 41088080
|
Loading…
Reference in New Issue
Block a user