]> git.99rst.org Git - openwrt-packages.git/commitdiff
syslog-ng: add version check override
authorJosef Schlehofer <redacted>
Tue, 18 Aug 2026 07:21:27 +0000 (09:21 +0200)
committerJosef Schlehofer <redacted>
Tue, 18 Aug 2026 08:12:50 +0000 (10:12 +0200)
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 <redacted>
admin/syslog-ng/test-version.sh [new file with mode: 0755]

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