diff --git a/ahcpd/test-version.sh b/ahcpd/test-version.sh new file mode 100644 index 000000000..130f48d0f --- /dev/null +++ b/ahcpd/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +ahcpd) + # ahcpd does not provide any option to report its version. + # Check that the binary starts and prints its usage instead. + ahcpd 2>&1 | grep -F "Syntax: ahcpd" + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/babel-pinger/test-version.sh b/babel-pinger/test-version.sh new file mode 100644 index 000000000..4a5b9aeb8 --- /dev/null +++ b/babel-pinger/test-version.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +babel-pinger) + # babel-pinger does not provide any option to report its version + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/naywatch/test-version.sh b/naywatch/test-version.sh new file mode 100644 index 000000000..d8b577e42 --- /dev/null +++ b/naywatch/test-version.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +naywatch) + # naywatch takes positional arguments (check interval, watchdog + # timeout, ...), not options, so a probe flag ends up as the + # check interval and the script enters its monitoring loop + # instead of reporting anything, until the probe timeout kills + # it. + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/ohybridproxy/patches/100-CMakeLists-support-CMake-4.0-version.patch b/ohybridproxy/patches/100-CMakeLists-support-CMake-4.0-version.patch index 72e8bb423..59f7efa88 100644 --- a/ohybridproxy/patches/100-CMakeLists-support-CMake-4.0-version.patch +++ b/ohybridproxy/patches/100-CMakeLists-support-CMake-4.0-version.patch @@ -10,8 +10,6 @@ Signed-off-by: Christian Marangi CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 1c970d9..cfb878e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ @@ -20,6 +18,3 @@ index 1c970d9..cfb878e 100644 project(ohybridproxy C) set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") --- -2.51.0 - diff --git a/ohybridproxy/test-version.sh b/ohybridproxy/test-version.sh new file mode 100644 index 000000000..d9b50bc8e --- /dev/null +++ b/ohybridproxy/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +ohybridproxy|zonestitcher) + # The package version is derived from the source date and git + # hash, which the binaries do not report + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/pimbd/test-version.sh b/pimbd/test-version.sh new file mode 100644 index 000000000..b2ea8a24f --- /dev/null +++ b/pimbd/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +pimbd) + # The package version is derived from the source date and git + # hash, which the binary does not report + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac diff --git a/prince/test-version.sh b/prince/test-version.sh new file mode 100644 index 000000000..1d33a8a0d --- /dev/null +++ b/prince/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# shellcheck shell=busybox + +case "$PKG_NAME" in +prince) + # prince requires a configuration file and does not provide any + # option to report its version + exit 0 + ;; + +*) + echo "Untested package: $PKG_NAME" >&2 + exit 1 + ;; +esac