mirror of https://github.com/openwrt/packages.git
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>pull/29672/head
parent
5049d3797a
commit
335244d32c
|
|
@ -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
|
||||
Loading…
Reference in New Issue