]> git.99rst.org Git - openwrt-packages.git/commitdiff
ksmbd-tools: add package version test
authorAndrea Pesaresi <redacted>
Fri, 28 Aug 2026 16:28:58 +0000 (18:28 +0200)
committerHannu Nyman <redacted>
Sat, 29 Aug 2026 13:54:51 +0000 (16:54 +0300)
The generic package version check invokes ksmbd.tools directly, but the
multicall binary rejects that basename and fails the test.

Check the version through ksmbd.mountd and skip subpackages without
versioned executables.

Signed-off-by: Andrea Pesaresi <redacted>
net/ksmbd-tools/test-version.sh [new file with mode: 0644]

diff --git a/net/ksmbd-tools/test-version.sh b/net/ksmbd-tools/test-version.sh
new file mode 100644 (file)
index 0000000..aa2241a
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# shellcheck shell=busybox
+
+case "$PKG_NAME" in
+ksmbd-server)
+       /usr/sbin/ksmbd.mountd -V 2>&1 | grep -F "$PKG_VERSION"
+       ;;
+
+ksmbd-avahi-service|\
+ksmbd-hotplug)
+       exit 0
+       ;;
+
+*)
+       echo "Untested package: $PKG_NAME" >&2
+       exit 1
+       ;;
+esac
git clone https://git.99rst.org/PROJECT