mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 17:00:28 +04:00
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:
committed by
Josef Schlehofer
parent
5049d3797a
commit
335244d32c
Executable
+23
@@ -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
|
||||
Reference in New Issue
Block a user