Files
Alexandru Ardelean 9f76dfc43c 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 <alex@shruggie.ro>
2026-07-18 22:49:20 +03:00

11 lines
355 B
Bash
Executable File

#!/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