wireguard-tools: accept iproute2 as dependency
authorChristian Svensson <blue@cmd.nu>
Sat, 3 Aug 2024 16:07:41 +0000 (18:07 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 6 Sep 2024 21:35:02 +0000 (23:35 +0200)
If the user has ip-tiny or ip-full installed there is no need to depend on
BusyBox having any form of `ip` or `ip link` applets.

Signed-off-by: Christian Svensson <blue@cmd.nu>
Link: https://github.com/openwrt/openwrt/pull/16062
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/utils/wireguard-tools/Makefile

index e2a86c97d8d26e58184b93793a932545bf2b6e61..d704577d2c19c86af040462bc47805fc5ef0462a 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=wireguard-tools
 
 PKG_VERSION:=1.0.20210914
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=wireguard-tools-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://git.zx2c4.com/wireguard-tools/snapshot/
@@ -35,8 +35,8 @@ define Package/wireguard-tools
   MAINTAINER:=Jason A. Donenfeld <Jason@zx2c4.com>
   TITLE:=WireGuard userspace control program (wg)
   DEPENDS:= \
-         +@BUSYBOX_CONFIG_IP \
-         +@BUSYBOX_CONFIG_FEATURE_IP_LINK \
+         +!BUSYBOX_CONFIG_IP:ip \
+         +!BUSYBOX_CONFIG_FEATURE_IP_LINK:ip \
          +kmod-wireguard
 endef