]> git.pld-linux.org Git - packages/wireguard-tools.git/blob - wireguard-tools.spec
b2b116883943491fe5291a45401de13c14f04d33
[packages/wireguard-tools.git] / wireguard-tools.spec
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
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 WireGuard is an extremely simple yet fast and modern VPN that utilizes
16 state-of-the-art cryptography. It aims to be faster, simpler, leaner,
17 and more useful than IPSec, while avoiding the massive headache. It
18 intends to be considerably more performant than OpenVPN. WireGuard is
19 designed as a general purpose VPN for running on embedded interfaces
20 and super computers alike, fit for many different circumstances.
21
22 This package contains user space tools. You need to also install
23 kernel module from kernel-*-misc-wireguard package.
24
25 %prep
26 %setup -q
27
28 %build
29 %{make} -C src V=1
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33
34 %{make} -C src install \
35         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
36         SYSCONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
37         SYSTEMDUNITDIR=$RPM_BUILD_ROOT%{systemdunitdir} \
38         WITH_SYSTEMDUNITS=yes
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %postun
44 %systemd_reload
45
46 %files
47 %defattr(644,root,root,755)
48 %doc contrib README.md
49 %attr(755,root,root) %{_bindir}/wg
50 %attr(755,root,root) %{_bindir}/wg-quick
51 %dir %{_sysconfdir}/wireguard
52 %{systemdunitdir}/wg-quick@.service
53 %{_mandir}/man8/wg-quick.8*
54 %{_mandir}/man8/wg.8*
This page took 0.062825 seconds and 2 git commands to generate.