[packages/wireguard-tools] - up to 1.0.20200513
arekm
arekm at pld-linux.org
Sat May 23 23:37:58 CEST 2020
commit d32d424637d62e1ec32bb6af3d46894a2ab1ec08
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat May 23 23:37:51 2020 +0200
- up to 1.0.20200513
opt.patch | 11 +++++++++++
wireguard-tools.spec | 14 +++++++++++---
2 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/wireguard-tools.spec b/wireguard-tools.spec
index 0dbb6bb..32ff684 100644
--- a/wireguard-tools.spec
+++ b/wireguard-tools.spec
@@ -1,11 +1,12 @@
Summary: WireGuard is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography
Name: wireguard-tools
-Version: 1.0.20200319
+Version: 1.0.20200513
Release: 1
License: GPL v2
Group: Networking/Daemons
Source0: https://git.zx2c4.com/wireguard-tools/snapshot/%{name}-%{version}.tar.xz
-# Source0-md5: 36cd9411f56bc5dcaac29bbab6fd9c67
+# Source0-md5: b058e5e7eb9f38dbdd553a19c6e5dd22
+Patch0: opt.patch
URL: https://www.wireguard.com/
BuildRequires: libmnl-devel
BuildRequires: rpmbuild(macros) >= 1.701
@@ -26,9 +27,14 @@ kernel-*-misc-wireguard package for kernel < 5.6.
%prep
%setup -q
+%patch0 -p1
%build
-%{make} -C src V=1
+%{make} -C src \
+ CC="%{__cc}" \
+ OPTFLAGS="%{rpmcflags} %{rpmcppflags}" \
+ RUNSTATEDIR=%{_varrun} \
+ V=1
%install
rm -rf $RPM_BUILD_ROOT
@@ -37,6 +43,7 @@ rm -rf $RPM_BUILD_ROOT
PREFIX=$RPM_BUILD_ROOT%{_prefix} \
SYSCONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
SYSTEMDUNITDIR=$RPM_BUILD_ROOT%{systemdunitdir} \
+ WITH_BASHCOMPLETION=yes \
WITH_SYSTEMDUNITS=yes
%clean
@@ -52,5 +59,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/wg-quick
%dir %{_sysconfdir}/wireguard
%{systemdunitdir}/wg-quick at .service
+%{systemdunitdir}/wg-quick.target
%{_mandir}/man8/wg-quick.8*
%{_mandir}/man8/wg.8*
diff --git a/opt.patch b/opt.patch
new file mode 100644
index 0000000..98b62e6
--- /dev/null
+++ b/opt.patch
@@ -0,0 +1,11 @@
+--- wireguard-tools-1.0.20200513/src/Makefile~ 2020-05-14 02:29:41.000000000 +0200
++++ wireguard-tools-1.0.20200513/src/Makefile 2020-05-23 23:35:01.028509121 +0200
+@@ -37,7 +37,7 @@ endif
+
+ PLATFORM ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')
+
+-CFLAGS ?= -O3
++CFLAGS += $(OPTFLAGS)
+ ifneq ($(wildcard uapi/$(PLATFORM)/.),)
+ CFLAGS += -idirafter uapi/$(PLATFORM)
+ endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wireguard-tools.git/commitdiff/d32d424637d62e1ec32bb6af3d46894a2ab1ec08
More information about the pld-cvs-commit
mailing list