diff options
author | Jason A. Donenfeld <zx2c4@gentoo.org> | 2020-07-30 17:07:43 +0200 |
---|---|---|
committer | Jason A. Donenfeld <zx2c4@gentoo.org> | 2020-07-30 17:08:17 +0200 |
commit | 11c0cf5d42363856a3b587fbbff7ade95c1a53ea (patch) | |
tree | 8b926e5d95de403c34d0695697c7a51f23ec9ca5 /net-vpn/wireguard-modules | |
parent | dev-util/catkin: Remove old (diff) | |
download | gentoo-11c0cf5d42363856a3b587fbbff7ade95c1a53ea.tar.gz gentoo-11c0cf5d42363856a3b587fbbff7ade95c1a53ea.tar.bz2 gentoo-11c0cf5d42363856a3b587fbbff7ade95c1a53ea.zip |
net-vpn/wireguard-modules: detect other kernels that already have wireguard
With WireGuard being added to gentoo-sources, we now generalize the
detection, so that people use the built-in WireGuard instead of the
hacky compatibility module.
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
Diffstat (limited to 'net-vpn/wireguard-modules')
-rw-r--r-- | net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild | 6 | ||||
-rw-r--r-- | net-vpn/wireguard-modules/wireguard-modules-9999.ebuild | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild b/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild index 16df945c1ab1..85fe87ad3b45 100644 --- a/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild +++ b/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild @@ -33,13 +33,13 @@ CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_ALGAPI" pkg_setup() { if use module; then linux-mod_pkg_setup - if kernel_is -ge 5 6 0; then + if [[ -f $KERNEL_DIR/include/uapi/linux/wireguard.h ]]; then eerror - eerror "WireGuard has been merged upstream in Linux 5.6. Therefore," + eerror "WireGuard has been merged upstream into this kernel. Therefore," eerror "you no longer need this compatibility ebuild. Instead, simply" eerror "enable CONFIG_WIREGUARD=y in your kernel configuration." eerror - die "Use CONFIG_WIREGUARD=y for kernels >= 5.6, and do not use this package." + die "Use CONFIG_WIREGUARD=y for this kernel, and do not use this package." elif kernel_is -lt 3 10 0; then die "This version of ${PN} requires Linux >= 3.10." fi diff --git a/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild b/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild index 16df945c1ab1..85fe87ad3b45 100644 --- a/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild +++ b/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild @@ -33,13 +33,13 @@ CONFIG_CHECK="NET INET NET_UDP_TUNNEL CRYPTO_ALGAPI" pkg_setup() { if use module; then linux-mod_pkg_setup - if kernel_is -ge 5 6 0; then + if [[ -f $KERNEL_DIR/include/uapi/linux/wireguard.h ]]; then eerror - eerror "WireGuard has been merged upstream in Linux 5.6. Therefore," + eerror "WireGuard has been merged upstream into this kernel. Therefore," eerror "you no longer need this compatibility ebuild. Instead, simply" eerror "enable CONFIG_WIREGUARD=y in your kernel configuration." eerror - die "Use CONFIG_WIREGUARD=y for kernels >= 5.6, and do not use this package." + die "Use CONFIG_WIREGUARD=y for this kernel, and do not use this package." elif kernel_is -lt 3 10 0; then die "This version of ${PN} requires Linux >= 3.10." fi |