mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
bind: add version check override
Add version check override script. Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
committed by
Noah Meyerhans
parent
2394fbf060
commit
bc295ef790
Executable
+55
@@ -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
|
||||||
Reference in New Issue
Block a user