mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 12:06:51 +04:00
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:
1 parent
7868b56a02
commit
d378253983
1 file changed
+29
@@ -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
|
||||
Reference in new issue
Block a user