%define snapshot 20210914 Summary: Fast, modern, secure VPN tunnel Name: wireguard-tools URL: https://www.wireguard.com/ Version: 1.0.%{snapshot} Release: 3 License: GPLv2 Group: Networking/Other Source0: https://git.zx2c4.com/%{name}/snapshot/%{name}-%{version}.tar.xz BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(libmnl) Requires: kmod(wireguard) %description WireGuard is a novel VPN that runs inside the Linux Kernel and uses state-of-the-art cryptography (the "Noise" protocol). 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. This package provides the wg binary for controling WireGuard. %prep %autosetup -p1 %build %set_build_flags ## Start DNS Hatchet cd contrib/dns-hatchet ./apply.sh cd - ## End DNS Hatchet %make_build RUNSTATEDIR=%{_rundir} -C src %install mkdir -p %{buildroot}%{_bindir} %make_install BINDIR=%{_bindir} MANDIR=%{_mandir} RUNSTATEDIR=%{_rundir} \ WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes -C src mkdir -p %{buildroot}%{_docdir}/%{name}/contrib/ cp -fr %{_builddir}/wireguard-tools-%{version}/contrib/* %{buildroot}%{_docdir}/%{name}/contrib/ find %{buildroot}%{_docdir}/%{name}/contrib/ -type f -name "*.gitignore" -exec rm -f {} \; %files %doc README.md %{_docdir}/%{name}/contrib %{_bindir}/wg %{_bindir}/wg-quick %{_datadir}/bash-completion/completions/wg %{_datadir}/bash-completion/completions/wg-quick %{_unitdir}/wg-quick@.service %{_unitdir}/wg-quick.target %doc %{_mandir}/man8/wg.8* %doc %{_mandir}/man8/wg-quick.8*