Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] openssl: always install openssl.cnf
@ 2015-05-25 17:20 Floris Bos
  2015-05-25 17:20 ` [Buildroot] [PATCH] postgresql: init script: wait till server has started Floris Bos
  2015-07-10 16:08 ` [Buildroot] [PATCH] openssl: always install openssl.cnf Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Floris Bos @ 2015-05-25 17:20 UTC (permalink / raw)
  To: buildroot

Install openssl.cnf even when the OpenSSL binary is not selected,
because other packages that use the OpenSSL library may use it as
well.

E.g. PHP's methods to programmatically create private keys and
certificates depend on it.
See: http://php.net/manual/en/function.openssl-pkey-new.php

Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
---
 package/openssl/openssl.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/openssl/openssl.mk b/package/openssl/openssl.mk
index f90c811..9cbf42d 100644
--- a/package/openssl/openssl.mk
+++ b/package/openssl/openssl.mk
@@ -19,7 +19,13 @@ define OPENSSL_DISABLE_APPS
 	$(SED) '/^build_apps/! s/build_apps//' $(@D)/Makefile.org
 	$(SED) '/^DIRS=/ s/apps//' $(@D)/Makefile.org
 endef
+# Do always install openssl.cnf as other packages may depend on it
+define OPENSSL_INSTALL_CNF
+	$(INSTALL) -m 0644 $(@D)/apps/openssl.cnf \
+		$(TARGET_DIR)/etc/ssl/openssl.cnf
+endef
 OPENSSL_PRE_CONFIGURE_HOOKS += OPENSSL_DISABLE_APPS
+OPENSSL_POST_INSTALL_TARGET_HOOKS += OPENSSL_INSTALL_CNF
 endif
 
 ifeq ($(BR2_PACKAGE_CRYPTODEV_LINUX),y)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-11  7:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 17:20 [Buildroot] [PATCH] openssl: always install openssl.cnf Floris Bos
2015-05-25 17:20 ` [Buildroot] [PATCH] postgresql: init script: wait till server has started Floris Bos
2015-07-10 21:54   ` Yann E. MORIN
2015-07-11  7:27   ` Thomas Petazzoni
2015-07-10 16:08 ` [Buildroot] [PATCH] openssl: always install openssl.cnf Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox