unbound: add version check override

Add version check override script.

Signed-off-by: George Sapkin <george@sapk.in>
(cherry picked from commit 97edc9f52d)
This commit is contained in:
George Sapkin authored and Josef Schlehofer committed 2026-09-28 16:36:54 +02:00
1 parent b9565e9b05
commit ff75efd4c2
2 files changed
+29 -1

No files matched your search

+29
View File
@@ -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
-1
View 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; }
;;