commit: c1f10f6305d69988b9550f083a5300c8530cfee3
Author: Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 3 23:01:14 2018 +0000
Commit: Jason Donenfeld <zx2c4 <AT> gentoo <DOT> 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 <piotr.karbowski <AT> 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