From: Andrea Pesaresi Date: Fri, 28 Aug 2026 16:28:58 +0000 (+0200) Subject: ksmbd-tools: add package version test X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=4ce49b0a9da18d847df2e6479e127d9c11a3f764;p=openwrt-packages.git 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 --- diff --git a/net/ksmbd-tools/test-version.sh b/net/ksmbd-tools/test-version.sh new file mode 100644 index 000000000..aa2241aa2 --- /dev/null +++ b/net/ksmbd-tools/test-version.sh @@ -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