mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 03:27:03 +04:00
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>
24 lines
424 B
Bash
Executable File
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
|