From: Alexandru Ardelean Date: Sat, 18 Jul 2026 19:13:18 +0000 (+0300) Subject: openssh: add test-version.sh CI override X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=9f76dfc43c63392621b44951a0a17f8d75245751;p=openwrt-packages.git openssh: add test-version.sh CI override OpenSSH reports "10.4p1" but PKG_VERSION is "10.4_p1", so the forced generic probe never matches and fails. Verify via ssh/sshd where the subpackage ships one and accept the subpackages that carry no version-reporting binary. Signed-off-by: Alexandru Ardelean --- diff --git a/net/openssh/test-version.sh b/net/openssh/test-version.sh new file mode 100755 index 000000000..63a9f72c7 --- /dev/null +++ b/net/openssh/test-version.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# OpenSSH reports "10.4p1" but PKG_VERSION is "10.4_p1"; verify via ssh/sshd +# where present and accept subpackages that ship no version-reporting binary. +want="OpenSSH_$(echo "$2" | sed 's/_p/p/')" +for bin in /usr/libexec/ssh-openssh /usr/sbin/sshd; do + [ -x "$bin" ] || continue + "$bin" -V 2>&1 | grep -q "$want" && exit 0 + exit 1 +done +exit 0