bind: add version check override
authorGeorge Sapkin <redacted>
Thu, 28 May 2026 14:06:28 +0000 (17:06 +0300)
committerNoah Meyerhans <redacted>
Fri, 29 May 2026 13:25:01 +0000 (09:25 -0400)
Add version check override script.

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

diff --git a/net/bind/test-version.sh b/net/bind/test-version.sh
new file mode 100755 (executable)
index 0000000..a6089ac
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+case "$PKG_NAME" in
+bind-check)
+       named-checkconf -v 2>&1 | grep -F "$PKG_VERSION"
+       named-checkzone -v 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-client)
+       nsupdate -V 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-dig)
+       dig -v 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-dnssec)
+       dnssec-keygen -V 2>&1 | grep -F "$PKG_VERSION"
+       dnssec-settime -V 2>&1 | grep -F "$PKG_VERSION"
+       dnssec-signzone -V 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-host)
+       host -V 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-nslookup)
+       nslookup -version 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-rndc)
+       rndc -help 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-server)
+       named -v 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-tools)
+       delv -v 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+bind-ddns-confgen|\
+bind-libs|\
+bind-server-filter-aaaa)
+       exit 0
+       ;;
+
+*)
+       echo "Untested package: $PKG_NAME" >&2
+       exit 1
+       ;;
+esac
git clone https://git.99rst.org/PROJECT