Files
packages/libs/openldap/test-version.sh
W. Michael Petullo 335244d32c 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>
2026-06-08 07:45:20 +02:00

24 lines
424 B
Bash
Executable File

#!/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