openldap: add version check override

The slapd daemon uses -V, and ldapsearch uses -VV. The libopenldap
sub-package provides only shared libraries.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
This commit is contained in:
W. Michael Petullo
2026-06-03 09:11:54 -05:00
committed by Josef Schlehofer
parent 5049d3797a
commit 335244d32c
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
openldap-server)
slapd -V 2>&1 | grep -F "$PKG_VERSION"
;;
openldap-utils)
ldapsearch -VV 2>&1 | grep -F "$PKG_VERSION"
;;
libopenldap)
# Shared library.
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac