* [PATCH V2] openssl.inc: Install c_rehash utility with openssl
@ 2013-12-16 11:51 Yasir Khan
2013-12-16 20:23 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Yasir Khan @ 2013-12-16 11:51 UTC (permalink / raw)
To: openembedded-core
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.inc | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index 78ff7ae..5cb67df 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -34,10 +34,14 @@ export AS = "${CC} -c"
inherit pkgconfig siteinfo multilib_header
PACKAGES =+ "libcrypto libssl ${PN}-misc"
+
+#Adding RDEPENDS for perl scripts
+RDEPENDS_${PN}-misc +="perl"
+
FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
FILES_libssl = "${libdir}/libssl.so.*"
FILES_${PN} =+ " ${libdir}/ssl/*"
-FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
+FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf ${bindir}/c_rehash"
FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
do_configure_prepend_darwin () {
@@ -148,5 +152,10 @@ do_install () {
oe_multilib_header openssl/opensslconf.h
}
+do_install_append() {
+ # The c_rehash utility isn't installed by the normal installation process.
+ install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
+}
+
BBCLASSEXTEND = "native nativesdk"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V2] openssl.inc: Install c_rehash utility with openssl
2013-12-16 11:51 [PATCH V2] openssl.inc: Install c_rehash utility with openssl Yasir Khan
@ 2013-12-16 20:23 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2013-12-16 20:23 UTC (permalink / raw)
To: Yasir Khan, openembedded-core
On 12/16/2013 03:51 AM, Yasir Khan wrote:
> 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.inc | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
> index 78ff7ae..5cb67df 100644
> --- a/meta/recipes-connectivity/openssl/openssl.inc
> +++ b/meta/recipes-connectivity/openssl/openssl.inc
> @@ -34,10 +34,14 @@ export AS = "${CC} -c"
> inherit pkgconfig siteinfo multilib_header
>
> PACKAGES =+ "libcrypto libssl ${PN}-misc"
> +
> +#Adding RDEPENDS for perl scripts
> +RDEPENDS_${PN}-misc +="perl"
> +
> FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
> FILES_libssl = "${libdir}/libssl.so.*"
> FILES_${PN} =+ " ${libdir}/ssl/*"
> -FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf"
> +FILES_${PN}-misc = "${libdir}/ssl/misc ${libdir}/ssl/openssl.cnf ${bindir}/c_rehash"
> FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
>
This patch did not apply cleanly, you might be based on an older version
of this file. Please rebase against master.
> do_configure_prepend_darwin () {
> @@ -148,5 +152,10 @@ do_install () {
> oe_multilib_header openssl/opensslconf.h
> }
>
> +do_install_append() {
> + # The c_rehash utility isn't installed by the normal installation process.
> + install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
> +}
> +
Also, I think this should just be part of the do_install lower in this file.
Sau!
> BBCLASSEXTEND = "native nativesdk"
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-16 20:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 11:51 [PATCH V2] openssl.inc: Install c_rehash utility with openssl Yasir Khan
2013-12-16 20:23 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox