From: George Sapkin Date: Wed, 13 May 2026 18:31:36 +0000 (+0300) Subject: unbound: add version check override X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=97edc9f52d3fd732b87e96e4ba18ed333a04c309;p=openwrt-packages.git unbound: add version check override Add version check override script. Signed-off-by: George Sapkin --- diff --git a/net/unbound/test-version.sh b/net/unbound/test-version.sh new file mode 100755 index 000000000..23d7c46c8 --- /dev/null +++ b/net/unbound/test-version.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# shellckeck shell=busybox + +case "$PKG_NAME" in +libunbound) + exit 0 + ;; + +unbound-anchor|\ +unbound-checkconf|\ +unbound-control|\ +unbound-host) + $PKG_NAME -h 2>&1 | grep -F "$PKG_VERSION" + ;; + +unbound-control-setup) + exit 0 + ;; + +unbound-daemon) + unbound -V 2>&1 | grep -F "$PKG_VERSION" + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/net/unbound/test.sh b/net/unbound/test.sh index 7753456e4..b3a3db3e7 100644 --- a/net/unbound/test.sh +++ b/net/unbound/test.sh @@ -2,7 +2,6 @@ case "$1" in unbound-daemon) - unbound -V 2>&1 | grep -F "$2" [ -f /etc/unbound/unbound.conf ] || { echo "FAIL: /etc/unbound/unbound.conf not installed"; exit 1; } ;;