From: Josef Schlehofer Date: Tue, 18 Aug 2026 07:21:27 +0000 (+0200) Subject: syslog-ng: add version check override X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=121382fd7ee527ce01e850081400e699199d6dd4;p=openwrt-packages.git syslog-ng: add version check override The package ships ten executables and only the daemon reports a version, so the generic per-executable probe warns for the other nine: syslog-ng: 9/10 executables are missing version 4.12.0 The tools next to the daemon print their usage instead, which the probe cannot read a version from. Assert the version on syslog-ng itself. Signed-off-by: Josef Schlehofer --- diff --git a/admin/syslog-ng/test-version.sh b/admin/syslog-ng/test-version.sh new file mode 100755 index 000000000..b098aec12 --- /dev/null +++ b/admin/syslog-ng/test-version.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +syslog-ng) + # The daemon is the only executable that reports a version. The tools + # shipped next to it (dqtool, loggen, pdbtool, persist-tool, + # syslog-ng-ctl, syslog-ng-debun, update-patterndb) only print their + # usage, so the generic probe cannot read a version from them. + syslog-ng --version | grep -F "$PKG_VERSION" + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac