]> git.99rst.org Git - openwrt-packages.git/commitdiff
openssh: add test-version.sh CI override
authorAlexandru Ardelean <redacted>
Sat, 18 Jul 2026 19:13:18 +0000 (22:13 +0300)
committerAlexandru Ardelean <redacted>
Sat, 18 Jul 2026 19:49:20 +0000 (22:49 +0300)
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 <redacted>
net/openssh/test-version.sh [new file with mode: 0755]

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