unbound: add version check override
authorGeorge Sapkin <redacted>
Wed, 13 May 2026 18:31:36 +0000 (21:31 +0300)
committerGeorge Sapkin <redacted>
Sun, 17 May 2026 11:35:31 +0000 (14:35 +0300)
Add version check override script.

Signed-off-by: George Sapkin <redacted>
net/unbound/test-version.sh [new file with mode: 0755]
net/unbound/test.sh

diff --git a/net/unbound/test-version.sh b/net/unbound/test-version.sh
new file mode 100755 (executable)
index 0000000..23d7c46
--- /dev/null
@@ -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
index 7753456e4010a5d91792c8a5fda5a83e367527fc..b3a3db3e72d77e328678f64da9b32ac566910612 100644 (file)
@@ -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; }
        ;;
 
git clone https://git.99rst.org/PROJECT