summaryrefslogtreecommitdiff
path: root/net-misc/networkmanager/networkmanager-1.18.2.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/networkmanager/networkmanager-1.18.2.ebuild')
-rw-r--r--net-misc/networkmanager/networkmanager-1.18.2.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/net-misc/networkmanager/networkmanager-1.18.2.ebuild b/net-misc/networkmanager/networkmanager-1.18.2.ebuild
index 4342ec029bab..2c4f15a72ad4 100644
--- a/net-misc/networkmanager/networkmanager-1.18.2.ebuild
+++ b/net-misc/networkmanager/networkmanager-1.18.2.ebuild
@@ -139,7 +139,11 @@ pkg_pretend() {
pkg_setup() {
if use connection-sharing; then
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ if kernel_is lt 5 1; then
+ CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
+ else
+ CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
+ fi
linux-info_pkg_setup
fi
if use introspection || use test; then