diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2018-08-04 01:01:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2018-08-04 01:01:42 +0200 |
commit | c1f10f6305d69988b9550f083a5300c8530cfee3 (patch) | |
tree | fc83c8fc7e6d382f3784117338aba7f0eeab2d37 /net-vpn/wireguard | |
parent | app-editors/emacs: amd64 stable wrt bug #662512 (diff) | |
download | gentoo-c1f10f6305d69988b9550f083a5300c8530cfee3.tar.gz gentoo-c1f10f6305d69988b9550f083a5300c8530cfee3.tar.bz2 gentoo-c1f10f6305d69988b9550f083a5300c8530cfee3.zip |
net-vpn/wireguard: warn for wg-quick kconfig
Suggested-by: Piotr Karbowski <piotr.karbowski@gmail.com>
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'net-vpn/wireguard')
-rw-r--r-- | net-vpn/wireguard/wireguard-0.0.20180802.ebuild | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net-vpn/wireguard/wireguard-0.0.20180802.ebuild b/net-vpn/wireguard/wireguard-0.0.20180802.ebuild index e7bf51b60e9c..858da002956a 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 |