ksmbd-tools: add package version test

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 <andreapesaresi82@gmail.com>
(cherry picked from commit 4ce49b0a9d)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Andrea Pesaresi authored and Josef Schlehofer committed 2026-10-04 09:45:32 +02:00
1 parent d7978609ec
commit bb83dc2f98
1 file changed
+19
+19
View File
@@ -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