From 8f70ef9a81ba754cbc6849dfc19769c7f1365fca Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 Dec 2025 01:05:59 +0000 Subject: automatic import of tunsafe --- .gitignore | 1 + sources | 1 + tunsafe.spec | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 sources create mode 100644 tunsafe.spec diff --git a/.gitignore b/.gitignore index e69de29..ff36a87 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/85a871c1d226956df7c1308a1e5527556fe35fe1.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..14c5d08 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +36c5313d673686694e7a0795383176cb 85a871c1d226956df7c1308a1e5527556fe35fe1.tar.gz diff --git a/tunsafe.spec b/tunsafe.spec new file mode 100644 index 0000000..bc40b58 --- /dev/null +++ b/tunsafe.spec @@ -0,0 +1,36 @@ +%global commit 85a871c1d226956df7c1308a1e5527556fe35fe1 + +Name: tunsafe +Version: 1.5rc2 +Release: 1%{?dist} +Summary: WireGuard VPN client + +License: AGPL-1.0 AND BSD-3-Clause AND OpenSSL +URL: https://github.com/TunSafe/TunSafe +Source0: https://github.com/TunSafe/TunSafe/archive/%{commit}.tar.gz + +BuildRequires: clang + +%description +High performance and secure VPN client that uses the WireGuard protocol. + +%prep +%setup -q -n TunSafe-%{commit} + +%build +sed -i "s|clang++-6.0|clang++ -g $CXXFLAGS|;s|-lrt|-lrt $LDFLAGS|" build_linux.sh +#sed -i "s|-mtls-dialect=gnu2||g" build_linux.sh +#sed -i "s|-flto=auto||g; s|-ffat-lto-objects||g" build_linux.sh + +make + +%install +install -Dm755 %{name} %{buildroot}/%{_bindir}/%{name} + +%files +%license LICENSE.AGPL.TXT installer/LICENSE.TXT +%doc docs/*txt installer/TunSafe.conf installer/ChangeLog.txt +%{_bindir}/%{name} + + +%changelog -- cgit v1.2.3