]> git.99rst.org Git - openwrt-packages.git/commitdiff
zabbix: add version check override
authorDaniel F. Dickinson <redacted>
Fri, 10 Jul 2026 06:12:21 +0000 (02:12 -0400)
committerJosef Schlehofer <redacted>
Fri, 10 Jul 2026 18:56:10 +0000 (20:56 +0200)
Allow CI to pass the version check for packages with executables
with not version output.

Signed-off-by: Daniel F. Dickinson <redacted>
admin/zabbix/test-version.sh [new file with mode: 0644]

diff --git a/admin/zabbix/test-version.sh b/admin/zabbix/test-version.sh
new file mode 100644 (file)
index 0000000..f3721e6
--- /dev/null
@@ -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
git clone https://git.99rst.org/PROJECT