]>
Commit | Line | Data |
---|---|---|
b3b7b091 JR |
1 | Summary: WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography |
2 | Name: wireguard-tools | |
3 | Version: 1.0.20200319 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Networking/Daemons | |
7 | Source0: https://git.zx2c4.com/wireguard-tools/snapshot/%{name}-%{version}.tar.xz | |
8 | # Source0-md5: 36cd9411f56bc5dcaac29bbab6fd9c67 | |
9 | URL: https://www.wireguard.com/ | |
10 | BuildRequires: libmnl-devel | |
11 | BuildRequires: rpmbuild(macros) >= 1.701 | |
64c304f2 | 12 | Obsoletes: WireGuard < 1.0.20200319-1 |
b3b7b091 JR |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | WireGuard is an extremely simple yet fast and modern VPN that utilizes | |
17 | state-of-the-art cryptography. It aims to be faster, simpler, leaner, | |
18 | and more useful than IPSec, while avoiding the massive headache. It | |
19 | intends to be considerably more performant than OpenVPN. WireGuard is | |
20 | designed as a general purpose VPN for running on embedded interfaces | |
21 | and super computers alike, fit for many different circumstances. | |
22 | ||
64c304f2 JR |
23 | This package contains user space tools. Kernel module is included in |
24 | Linux 5.6+. You need to also install kernel module from | |
25 | kernel-*-misc-wireguard package for kernel < 5.6. | |
b3b7b091 JR |
26 | |
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | %{make} -C src V=1 | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | ||
36 | %{make} -C src install \ | |
37 | PREFIX=$RPM_BUILD_ROOT%{_prefix} \ | |
38 | SYSCONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \ | |
39 | SYSTEMDUNITDIR=$RPM_BUILD_ROOT%{systemdunitdir} \ | |
40 | WITH_SYSTEMDUNITS=yes | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %postun | |
46 | %systemd_reload | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc contrib README.md | |
51 | %attr(755,root,root) %{_bindir}/wg | |
52 | %attr(755,root,root) %{_bindir}/wg-quick | |
53 | %dir %{_sysconfdir}/wireguard | |
54 | %{systemdunitdir}/wg-quick@.service | |
55 | %{_mandir}/man8/wg-quick.8* | |
56 | %{_mandir}/man8/wg.8* |