apache: add version overrides

Many of the binaries in the apache source package do not have a
version output, so we need to add a version override so that CI
can pass.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
(cherry picked from commit 370659af19)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Daniel F. Dickinson authored and Josef Schlehofer committed 2026-10-05 08:01:04 +02:00
1 parent 7868b56a02
commit d378253983
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh
if [ "$PKG_NAME" = "apache" ]; then
if apache2 -V 2>&1 | grep -F "${PKG_VERSION}" && apachectl -V 2>&1 | grep -F "${PKG_VERSION}"; then
exit 0
else
exit 1
fi
fi
EXEC="${PKG_NAME#apache-}"
case "$EXEC" in
ab | \
utils)
exit 0
;;
*)
if command -v "$EXEC" >/dev/null 2>&1; then
if "$EXEC" -V 2>&1 | grep -F "${PKG_VERSION}"; then
exit 0
else
exit 1
fi
else
exit 0
fi
;;
esac