summaryrefslogtreecommitdiffstats
path: root/package/openldap/openldap.mk
diff options
context:
space:
mode:
authorStefan Sørensen <stefan.sorensen@spectralink.com>2015-02-17 16:43:58 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-08 14:43:56 +0100
commitc6aa56e081bd31981a547d8f2db060fe05a75d57 (patch)
tree46485b0ce9b79baca20ae1448bdb5ef68f1974d6 /package/openldap/openldap.mk
parent077193b6b3afb9af431d99a7a7ce5471f7a98a87 (diff)
downloadbuildroot-c6aa56e081bd31981a547d8f2db060fe05a75d57.tar.gz
buildroot-c6aa56e081bd31981a547d8f2db060fe05a75d57.zip
openldap: Make client binary install configurable
Some OpenLDAP deployment only need the client libraries and not the client tools, so make the tool installation optional. [Thomas: implement the for loop in make rather than in shell.] Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openldap/openldap.mk')
-rw-r--r--package/openldap/openldap.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/openldap/openldap.mk b/package/openldap/openldap.mk
index 332b2c4ddf..991d36953f 100644
--- a/package/openldap/openldap.mk
+++ b/package/openldap/openldap.mk
@@ -55,4 +55,16 @@ OPENLDAP_CONF_OPTS += \
# executable it is supposed to install, resulting in an error.
OPENLDAP_MAKE_ENV = STRIP="$(TARGET_STRIP)"
+ifeq ($(BR2_PACKAGE_OPENLDAP_CLIENTS),)
+OPENLDAP_CLIENTS = \
+ ldapurl ldapexop ldapcompare ldapwhoami \
+ ldappasswd ldapmodrdn ldapdelete ldapmodify \
+ ldapsearch
+define OPENLDAP_REMOVE_CLIENTS
+ $(RM) -f $(foreach p,$(OPENLDAP_CLIENTS),$(TARGET_DIR)/usr/bin/$(p))
+ $(RM) -rf $(TARGET_DIR)/etc/openldap
+endef
+OPENLDAP_POST_INSTALL_TARGET_HOOKS += OPENLDAP_REMOVE_CLIENTS
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud