summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <zx2c4@gentoo.org>2020-07-31 14:10:18 +0200
committerJason A. Donenfeld <zx2c4@gentoo.org>2020-07-31 14:12:07 +0200
commit52d7dd2ad23026449b9c123382c5018fee4ba99a (patch)
tree97e3b34e3a70cc3ce75016d15b8228424f978e12 /net-vpn
parentnet-vpn/wireguard-tools: require CONFIG_WIREGUARD=y|m (diff)
downloadgentoo-52d7dd2ad23026449b9c123382c5018fee4ba99a.tar.gz
gentoo-52d7dd2ad23026449b9c123382c5018fee4ba99a.tar.bz2
gentoo-52d7dd2ad23026449b9c123382c5018fee4ba99a.zip
net-vpn/wireguard-modules: set maximum kernel bounds
Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild6
-rw-r--r--net-vpn/wireguard-modules/wireguard-modules-9999.ebuild6
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 85fe87ad3b45..198636c9d9a4 100644
--- a/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild
+++ b/net-vpn/wireguard-modules/wireguard-modules-1.0.20200729.ebuild
@@ -24,7 +24,7 @@ SLOT="0"
IUSE="debug +module module-src"
DEPEND=""
-RDEPEND="${DEPEND} !<virtual/wireguard-1"
+RDEPEND="${DEPEND}"
MODULE_NAMES="wireguard(kernel/drivers/net:src)"
BUILD_TARGETS="module"
@@ -40,8 +40,8 @@ pkg_setup() {
eerror "enable CONFIG_WIREGUARD=y in your kernel configuration."
eerror
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."
+ elif kernel_is -lt 3 10 0 || kernel_is -ge 5 6 0; then
+ die "This version of ${PN} requires Linux >= 3.10 and < 5.6."
fi
fi
}
diff --git a/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild b/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild
index 85fe87ad3b45..198636c9d9a4 100644
--- a/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild
+++ b/net-vpn/wireguard-modules/wireguard-modules-9999.ebuild
@@ -24,7 +24,7 @@ SLOT="0"
IUSE="debug +module module-src"
DEPEND=""
-RDEPEND="${DEPEND} !<virtual/wireguard-1"
+RDEPEND="${DEPEND}"
MODULE_NAMES="wireguard(kernel/drivers/net:src)"
BUILD_TARGETS="module"
@@ -40,8 +40,8 @@ pkg_setup() {
eerror "enable CONFIG_WIREGUARD=y in your kernel configuration."
eerror
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."
+ elif kernel_is -lt 3 10 0 || kernel_is -ge 5 6 0; then
+ die "This version of ${PN} requires Linux >= 3.10 and < 5.6."
fi
fi
}