All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yasir Khan <yasir_khan@mentor.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] openssl_1.0.1e: Install c_rehash utility with openssl
Date: Fri, 13 Dec 2013 23:08:54 +0500	[thread overview]
Message-ID: <1386958134-20626-1-git-send-email-yasir_khan@mentor.com> (raw)

From: mykhani <yasir_khan@mentor.com>

c_rehash utility is not being installed with openssl. It conveniently
generates hash and symbolic links based on it for CA certificates
stored locally for SSL based server authentication

Signed-off-by: mykhani <yasir_khan@mentor.com>
---
 meta/recipes-connectivity/openssl/openssl_1.0.1e.bb |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
index ac27dba..f52877c 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.0.1e.bb
@@ -4,6 +4,9 @@ require openssl.inc
 # if they are available.
 DEPENDS += "ocf-linux"
 
+# Perl is needed for the c_rehash script
+RDEPENDS_${PN} += "perl"
+
 CFLAG += "-DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS"
 
 PR = "${INC_PR}.0"
@@ -53,3 +56,10 @@ PARALLEL_MAKEINST = ""
 do_configure_prepend() {
   cp ${WORKDIR}/find.pl ${S}/util/find.pl
 }
+
+do_install_append() {
+    # The c_rehash utility isn't being installed by the normal installation process. 
+    # It conveniently generates both hash and symbolic links based on hash for CA certificates.
+    install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
+}
+
-- 
1.7.10.4



             reply	other threads:[~2013-12-13 18:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-13 18:08 Yasir Khan [this message]
2013-12-13 18:43 ` [PATCH] openssl_1.0.1e: Install c_rehash utility with openssl Saul Wold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1386958134-20626-1-git-send-email-yasir_khan@mentor.com \
    --to=yasir_khan@mentor.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.