commit 1814bfcb1042e3723e4dc3999ffcc8c86e26866e
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Dec 21 13:52:16 2020 +0100
Update to 1.0.20201221
.gitignore | 20 ++--------------
sources | 2 +-
wireguard.spec | 73 ++++++++++++----------------------------------------------
3 files changed, 18 insertions(+), 77 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a592390..31b8ffd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,18 +1,2 @@
-/WireGuard-0.0.20180918.tar.xz
-/WireGuard-0.0.20180925.tar.xz
-/WireGuard-0.0.20181006.tar.xz
-/WireGuard-0.0.20181007.tar.xz
-/WireGuard-0.0.20181018.tar.xz
-/WireGuard-0.0.20181115.tar.xz
-/WireGuard-0.0.20181119.tar.xz
-/WireGuard-0.0.20181218.tar.xz
-/WireGuard-0.0.20190123.tar.xz
-/WireGuard-0.0.20190227.tar.xz
-/WireGuard-0.0.20190406.tar.xz
-/WireGuard-0.0.20190531.tar.xz
-/WireGuard-0.0.20190702.tar.xz
-/WireGuard-0.0.20190913.tar.xz
-/WireGuard-0.0.20191012.tar.xz
-/WireGuard-0.0.20191127.tar.xz
-/WireGuard-0.0.20191205.tar.xz
-/WireGuard-0.0.20191219.tar.xz
+WireGuard-*.tar.xz
+wireguard-linux-compat-*.tar.xz
diff --git a/sources b/sources
index 4028dc0..3bc6dde 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (WireGuard-0.0.20191219.tar.xz) =
0ff9f50e36378b2444f1cd670138e58676cee04f82dcc637d47aea69268034c950103609f7e35af14d7d1b0b579535000330737c2071f61b2d56147c95ef8e71
+SHA512 (wireguard-linux-compat-1.0.20201221.tar.xz) =
1b06eeda525903661657cae4f462cf2ef464bce292b0a9ae37425d254142ed4137ca7a2296da0f11447f89a4d921c3cb7cee018a4f691131541f0ec32f99c458
diff --git a/wireguard.spec b/wireguard.spec
index 10c755e..860a1e7 100644
--- a/wireguard.spec
+++ b/wireguard.spec
@@ -1,85 +1,42 @@
Name: wireguard
Summary: Fast, modern, secure VPN tunnel
-Version: 0.0.20191219
-Release: 2%{?dist}
+Version: 1.0.20201221
+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)
+Source0:
https://git.zx2c4.com/wireguard-linux-compat/snapshot/wireguard-linux-com...
+BuildArch: noarch
Provides: %{name}-kmod-common = %{version}
Requires: %{name}-kmod >= %{version}
+# Don't enforce a version for now
+Requires: wireguard-tools
+
%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.
+Kmod-common part for wireguard
%prep
-%autosetup -n WireGuard-%{version}
-
-# 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
-# Make the unit file depend on systemd-resolved.service
-sed -i 's(a)network-online.target nss-lookup.target(a)network-online.target
nss-lookup.target systemd-resolved.service@' src/tools/systemd/wg-quick@.service
+%autosetup -n wireguard-linux-compat-%{version}
%build
-%set_build_flags
-## Start DNS Hatchet
-pushd contrib/examples/dns-hatchet
-./apply.sh
-popd
-## End DNS Hatchet
-%make_build V=1 -C src/tools
+# Nothing to build
%install
-%make_install -C src/tools \
- WITH_BASHCOMPLETION=yes \
- WITH_WGQUICK=yes \
- WITH_SYSTEMDUNITS=yes
-
-
-%post
-%systemd_post wg-quick@.service
-
-
-%preun
-%systemd_preun wg-quick@.service
-
-
-%postun
-%systemd_postun_with_restart wg-quick@.service
+# Nothing to install
%files
-%doc contrib/examples README.md
+%doc README.md
%license COPYING
-%{_bindir}/wg
-%{_bindir}/wg-quick
-%{_unitdir}/wg-quick@.service
-%{_sysconfdir}/wireguard
-%{_mandir}/man8/wg.8*
-%{_mandir}/man8/wg-quick.8*
-%dir %{_datadir}/bash-completion
-%dir %{_datadir}/bash-completion/completions
-%{_datadir}/bash-completion/completions/wg
-%{_datadir}/bash-completion/completions/wg-quick
-
%changelog
+* Mon Dec 21 2020 Nicolas Chauvet <kwizart(a)gmail.com> - 1.0.20201221-1
+- Update to 1.0.20201221
+
* Fri Jan 31 2020 Leigh Scott <leigh123linux(a)googlemail.com> - 0.0.20191219-2
- Fix DNS conf issue