diff options
-rw-r--r-- | net-misc/networkmanager/networkmanager-1.18.2.ebuild | 6 | ||||
-rw-r--r-- | net-misc/networkmanager/networkmanager-1.18.4-r1.ebuild | 6 |
2 files changed, 10 insertions, 2 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 diff --git a/net-misc/networkmanager/networkmanager-1.18.4-r1.ebuild b/net-misc/networkmanager/networkmanager-1.18.4-r1.ebuild index 6698561d3d6b..349e1bbb84c9 100644 --- a/net-misc/networkmanager/networkmanager-1.18.4-r1.ebuild +++ b/net-misc/networkmanager/networkmanager-1.18.4-r1.ebuild @@ -143,7 +143,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 |