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; } ;;