Gentoo Archives: gentoo-commits

From: Jason Donenfeld <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/wireguard/
Date: Fri, 03 Aug 2018 23:01:57
Message-Id: 1533337302.c1f10f6305d69988b9550f083a5300c8530cfee3.zx2c4@gentoo
1 commit: c1f10f6305d69988b9550f083a5300c8530cfee3
2 Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 3 23:01:14 2018 +0000
4 Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 3 23:01:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f10f63
7
8 net-vpn/wireguard: warn for wg-quick kconfig
9
10 Suggested-by: Piotr Karbowski <piotr.karbowski <AT> gmail.com>
11 Package-Manager: Portage-2.3.43, Repoman-2.3.10
12
13 net-vpn/wireguard/wireguard-0.0.20180802.ebuild | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 diff --git a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild
17 index e7bf51b60e9..858da002956 100644
18 --- a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild
19 +++ b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild
20 @@ -30,8 +30,17 @@ MODULE_NAMES="wireguard(kernel/drivers/net:src)"
21 BUILD_TARGETS="module"
22 CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_BLKCIPHER"
23
24 +wg_quick_optional_config_nob() {
25 + CONFIG_CHECK="$CONFIG_CHECK ~$1"
26 + declare -g ERROR_$1="CONFIG_$1: This option is required for automatic routing of default routes inside of wg-quick(8), though it is not required for general WireGuard usage."
27 +}
28 +
29 pkg_setup() {
30 if use module; then
31 + wg_quick_optional_config_nob IP_ADVANCED_ROUTER
32 + wg_quick_optional_config_nob IP_MULTIPLE_TABLES
33 + wg_quick_optional_config_nob NETFILTER_XT_MARK
34 +
35 linux-mod_pkg_setup
36 kernel_is -lt 3 10 0 && die "This version of ${PN} requires Linux >= 3.10"
37 fi