@@ -10,6 +10,18 @@ config BR2_PACKAGE_OPENLDAP
http://www.openldap.org/
+if BR2_PACKAGE_OPENLDAP
+
+config BR2_PACKAGE_OPENLDAP_CLIENTS
+ bool "openldap client binaries"
+ default y
+ help
+ Install the OpenLDAP client tools (ldapadd, ldapcompare, ldapdelete,
+ ldapexop, ldapmodify, ldapmodrdn, ldappasswd, ldapsearch, ldapurl,
+ ldapwhoami)
+
+endif
+
comment "openldap needs a toolchain w/ wchar"
depends on BR2_USE_MMU # needs fork()
depends on !BR2_USE_WCHAR
@@ -55,4 +55,15 @@ OPENLDAP_CONF_OPTS += \
# executable it is supposed to install, resulting in an error.
OPENLDAP_MAKE_ENV = STRIP="$(TARGET_STRIP)"
+ifeq ($(BR2_PACKAGE_OPENLDAP_CLIENTS),)
+define OPENLDAP_REMOVE_CLIENTS
+ for f in ldapurl ldapexop ldapcompare ldapwhoami ldappasswd ldapmodrdn \
+ ldapdelete ldapmodify ldapsearch; do \
+ rm -rf $(TARGET_DIR)/usr/bin/$f; \
+ done
+ rm -rf $(TARGET_DIR)/etc/openldap
+endef
+OPENLDAP_POST_INSTALL_TARGET_HOOKS += OPENLDAP_REMOVE_CLIENTS
+endif
+
$(eval $(autotools-package))
Some OpenLDAP deployment only need the client libraries and not the client tools, so make the tool installation optional. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> --- package/openldap/Config.in | 12 ++++++++++++ package/openldap/openldap.mk | 11 +++++++++++ 2 files changed, 23 insertions(+)