From ff75efd4c2f74ef72ff64a18b4873b0e7463202d Mon Sep 17 00:00:00 2001 From: George Sapkin Date: Wed, 13 May 2026 21:31:36 +0300 Subject: [PATCH] unbound: add version check override Add version check override script. Signed-off-by: George Sapkin (cherry picked from commit 97edc9f52d3fd732b87e96e4ba18ed333a04c309) --- net/unbound/test-version.sh | 29 +++++++++++++++++++++++++++++ net/unbound/test.sh | 1 - 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100755 net/unbound/test-version.sh diff --git a/net/unbound/test-version.sh b/net/unbound/test-version.sh new file mode 100755 index 0000000000..23d7c46c86 --- /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 7753456e40..b3a3db3e72 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; } ;;