* [Buildroot] [PATCH] openldap: Make client binary install configurable
@ 2015-02-17 15:43 Stefan Sørensen
2015-03-08 13:45 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Sørensen @ 2015-02-17 15:43 UTC (permalink / raw)
To: buildroot
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(+)
diff --git a/package/openldap/Config.in b/package/openldap/Config.in
index 1f0b1ea..3085a5c 100644
--- a/package/openldap/Config.in
+++ b/package/openldap/Config.in
@@ -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
diff --git a/package/openldap/openldap.mk b/package/openldap/openldap.mk
index 332b2c4..3e90a87 100644
--- a/package/openldap/openldap.mk
+++ b/package/openldap/openldap.mk
@@ -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))
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] openldap: Make client binary install configurable
2015-02-17 15:43 [Buildroot] [PATCH] openldap: Make client binary install configurable Stefan Sørensen
@ 2015-03-08 13:45 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-03-08 13:45 UTC (permalink / raw)
To: buildroot
Dear Stefan S?rensen,
On Tue, 17 Feb 2015 16:43:58 +0100, Stefan S?rensen wrote:
> 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>
Thanks, I've applied, after rewriting the logic to use a make "foreach"
loop rather than a shell "for" loop.
See
http://git.buildroot.net/buildroot/commit/?id=c6aa56e081bd31981a547d8f2db060fe05a75d57.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-08 13:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17 15:43 [Buildroot] [PATCH] openldap: Make client binary install configurable Stefan Sørensen
2015-03-08 13:45 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox