openldap: add version check override
authorW. Michael Petullo <redacted>
Wed, 3 Jun 2026 14:11:54 +0000 (09:11 -0500)
committerJosef Schlehofer <redacted>
Mon, 8 Jun 2026 05:45:20 +0000 (07:45 +0200)
The slapd daemon uses -V, and ldapsearch uses -VV. The libopenldap
sub-package provides only shared libraries.

Signed-off-by: W. Michael Petullo <redacted>
libs/openldap/test-version.sh [new file with mode: 0755]

diff --git a/libs/openldap/test-version.sh b/libs/openldap/test-version.sh
new file mode 100755 (executable)
index 0000000..f973ac1
--- /dev/null
@@ -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
git clone https://git.99rst.org/PROJECT