commit bf9dfd1d2ed5ea53db365651b14a5a81dab06971
Author: Robert-André Mauchin <zebob.m(a)gmail.com>
Date: Sun Sep 23 20:16:46 2018 +0200
Initial import (#5022)
.gitignore | 1 +
sources | 1 +
wireguard.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 88 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3c07acc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/WireGuard-0.0.20180918.tar.xz
diff --git a/sources b/sources
index e69de29..257d15c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a0de98d1924edd231f55fd0a880c8022 WireGuard-0.0.20180918.tar.xz
diff --git a/wireguard.spec b/wireguard.spec
new file mode 100644
index 0000000..404633d
--- /dev/null
+++ b/wireguard.spec
@@ -0,0 +1,86 @@
+Name: wireguard
+Summary: Fast, modern, secure VPN tunnel
+Version: 0.0.20180918
+Release: 1%{?dist}
+License: GPLv2
+
+URL:
https://www.wireguard.com/
+Source0:
https://git.zx2c4.com/WireGuard/snapshot/WireGuard-%{version}.tar.xz
+
+%{?systemd_requires}
+BuildRequires: systemd
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: pkgconfig(libmnl)
+
+Provides: %{name}-kmod-common = %{version}
+Requires: %{name}-kmod >= %{version}
+
+%description
+WireGuard is a novel VPN that runs inside the Linux Kernel and utilizes
+state-of-the-art cryptography. It aims to be faster, simpler, leaner,
+and more useful than IPSec, while avoiding the massive headache. It intends
+to be considerably more performant than OpenVPN. WireGuard is designed as a
+general purpose VPN for running on embedded interfaces and super computers
+alike, fit for many different circumstances. It runs over UDP.
+
+
+%prep
+%autosetup -n WireGuard-%{version} different circumstances. It runs over UDP.
+
+# Remove .gitignore files in examples
+find contrib/ -type f -name ".gitignore" -exec rm "{}" \;
+# Do not use /usr/bin/env
+sed -i '1s@/usr/bin/env bash@/bin/bash@'
contrib/examples/ncat-client-server/client-quick.sh
+# Use standard perms for /etc/wireguard
+sed -i 's|install -v -m 0700|install -v -m 0755|' src/tools/Makefile
+
+
+%build
+%set_build_flags
+
+pushd contrib/examples/dns-hatchet
+sh apply.sh
+popd
+
+pushd src/tools
+%make_build
+popd
+
+
+%install
+pushd src/tools
+%make_install
+popd
+
+
+%post
+%systemd_post wg-quick@.service
+
+
+%preun
+%systemd_preun wg-quick@.service
+
+
+%postun
+%systemd_postun_with_restart wg-quick@.service
+
+
+%files
+%doc contrib/examples README.md
+%license COPYING
+%{_bindir}/wg
+%{_bindir}/wg-quick
+%{_sysconfdir}/wireguard
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/wg
+%{_datadir}/bash-completion/completions/wg-quick
+%{_unitdir}/wg-quick@.service
+%{_mandir}/man8/wg.8*
+%{_mandir}/man8/wg-quick.8*
+
+
+%changelog
+* Sun Sep 23 2018 Robert-André Mauchin <zebob.m(a)gmail.com> - 0.0.20180918-1
+- Initial package