zabbix: add version check override

Allow CI to pass the version check for packages with executables
with not version output.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
This commit is contained in:
Daniel F. Dickinson
2026-07-10 02:12:21 -04:00
committed by Josef Schlehofer
parent d5eb49a42d
commit 9ec085718d
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
case "$PKG_NAME" in
zabbix-extra-* | zabbix-frontend-server)
exit 0
;;
zabbix-agentd-basic)
zabbix_agentd -V 2>&1 | grep -F "${PKG_VERSION}"
;;
zabbix-proxy-basic-sqlite)
zabbix_proxy -V 2>&1 | grep -F "${PKG_VERSION}"
;;
*)
# We use tr as parameter string replace is undefined in POSIX
"$(echo "$PKG_NAME" | tr '-' '_')" -V 2>&1 | grep -F "${PKG_VERSION}"
;;
esac