From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60E5C138334 for ; Fri, 3 Aug 2018 23:01:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FD12E077C; Fri, 3 Aug 2018 23:01:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 05350E077C for ; Fri, 3 Aug 2018 23:01:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16FE6335CCD for ; Fri, 3 Aug 2018 23:01:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BC9E737B for ; Fri, 3 Aug 2018 23:01:51 +0000 (UTC) From: "Jason Donenfeld" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Donenfeld" Message-ID: <1533337302.c1f10f6305d69988b9550f083a5300c8530cfee3.zx2c4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/wireguard/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/wireguard/wireguard-0.0.20180802.ebuild X-VCS-Directories: net-vpn/wireguard/ X-VCS-Committer: zx2c4 X-VCS-Committer-Name: Jason Donenfeld X-VCS-Revision: c1f10f6305d69988b9550f083a5300c8530cfee3 X-VCS-Branch: master Date: Fri, 3 Aug 2018 23:01:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 29d0ece6-9e5f-4410-8626-8a0a8af36dc3 X-Archives-Hash: f9398cd0b4d8a475f33408fba5a6c166 commit: c1f10f6305d69988b9550f083a5300c8530cfee3 Author: Jason A. Donenfeld gentoo org> AuthorDate: Fri Aug 3 23:01:14 2018 +0000 Commit: Jason Donenfeld gentoo org> CommitDate: Fri Aug 3 23:01:42 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1f10f63 net-vpn/wireguard: warn for wg-quick kconfig Suggested-by: Piotr Karbowski gmail.com> Package-Manager: Portage-2.3.43, Repoman-2.3.10 net-vpn/wireguard/wireguard-0.0.20180802.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild index e7bf51b60e9..858da002956 100644 --- a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild +++ b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild @@ -30,8 +30,17 @@ MODULE_NAMES="wireguard(kernel/drivers/net:src)" BUILD_TARGETS="module" CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_BLKCIPHER" +wg_quick_optional_config_nob() { + CONFIG_CHECK="$CONFIG_CHECK ~$1" + 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." +} + pkg_setup() { if use module; then + wg_quick_optional_config_nob IP_ADVANCED_ROUTER + wg_quick_optional_config_nob IP_MULTIPLE_TABLES + wg_quick_optional_config_nob NETFILTER_XT_MARK + linux-mod_pkg_setup kernel_is -lt 3 10 0 && die "This version of ${PN} requires Linux >= 3.10" fi