1 |
commit: 6000e40bd8b959979e2e6ebf35efa00cb2aefa10 |
2 |
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 3 23:04:25 2018 +0000 |
4 |
Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 3 23:04:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6000e40b |
7 |
|
8 |
net-vpn/wireguard: fix warn use condition |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
net-vpn/wireguard/wireguard-0.0.20180802.ebuild | 8 +++++--- |
13 |
1 file changed, 5 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild |
16 |
index 858da002956..332e52b44d2 100644 |
17 |
--- a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild |
18 |
+++ b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild |
19 |
@@ -37,9 +37,11 @@ wg_quick_optional_config_nob() { |
20 |
|
21 |
pkg_setup() { |
22 |
if use module; then |
23 |
- wg_quick_optional_config_nob IP_ADVANCED_ROUTER |
24 |
- wg_quick_optional_config_nob IP_MULTIPLE_TABLES |
25 |
- wg_quick_optional_config_nob NETFILTER_XT_MARK |
26 |
+ if use tools; then |
27 |
+ wg_quick_optional_config_nob IP_ADVANCED_ROUTER |
28 |
+ wg_quick_optional_config_nob IP_MULTIPLE_TABLES |
29 |
+ wg_quick_optional_config_nob NETFILTER_XT_MARK |
30 |
+ fi |
31 |
|
32 |
linux-mod_pkg_setup |
33 |
kernel_is -lt 3 10 0 && die "This version of ${PN} requires Linux >= 3.10" |