summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl.inc
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-10-20 14:16:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-23 21:43:11 +0100
commite93f9a838260100ece7cac36f01e42e321e6414b (patch)
treeebda072a37a097b22b65b6fc573b7e7a0669cf50 /meta/recipes-connectivity/openssl/openssl.inc
parentdf4a397df9213eb2f419120fc2c32d51d0bf6a05 (diff)
downloadpoky-e93f9a838260100ece7cac36f01e42e321e6414b.tar.gz
openssl: Upgrade to 1.0.1j
This address the latest set of CVE issues (From OE-Core rev: 461e598815f8749bb26e97369e3b877f7ce749cf) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl.inc')
-rw-r--r--meta/recipes-connectivity/openssl/openssl.inc50
1 files changed, 37 insertions, 13 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl.inc b/meta/recipes-connectivity/openssl/openssl.inc
index ee02fb796e..9ec884f332 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -9,6 +9,7 @@ LICENSE = "openssl"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8" 9LIC_FILES_CHKSUM = "file://LICENSE;md5=f9a8f968107345e0b75aa8c2ecaa7ec8"
10 10
11DEPENDS = "perl-native-runtime" 11DEPENDS = "perl-native-runtime"
12DEPENDS_append_class-target = " openssl-native"
12 13
13SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \ 14SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
14 " 15 "
@@ -30,14 +31,14 @@ export DIRS = "crypto ssl apps"
30export EX_LIBS = "-lgcc -ldl" 31export EX_LIBS = "-lgcc -ldl"
31export AS = "${CC} -c" 32export AS = "${CC} -c"
32 33
33inherit pkgconfig siteinfo multilib_header 34inherit pkgconfig siteinfo multilib_header ptest
34 35
35PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf" 36PACKAGES =+ "libcrypto libssl ${PN}-misc openssl-conf"
36FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}" 37FILES_libcrypto = "${base_libdir}/libcrypto${SOLIBS}"
37FILES_libssl = "${libdir}/libssl.so.*" 38FILES_libssl = "${libdir}/libssl.so.*"
38FILES_${PN} =+ " ${libdir}/ssl/*" 39FILES_${PN} =+ " ${libdir}/ssl/*"
39FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash" 40FILES_${PN}-misc = "${libdir}/ssl/misc ${bindir}/c_rehash"
40RDEPENDS_${PN}-misc = "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" 41RDEPENDS_${PN}-misc = "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}"
41FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}" 42FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
42 43
43# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto 44# Add the openssl.cnf file to the openssl-conf package. Make the libcrypto
@@ -47,6 +48,7 @@ FILES_${PN}-dev += "${base_libdir}/libcrypto${SOLIBSDEV}"
47FILES_openssl-conf = "${libdir}/ssl/openssl.cnf" 48FILES_openssl-conf = "${libdir}/ssl/openssl.cnf"
48CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf" 49CONFFILES_openssl-conf = "${libdir}/ssl/openssl.cnf"
49RRECOMMENDS_libcrypto += "openssl-conf" 50RRECOMMENDS_libcrypto += "openssl-conf"
51RDEPENDS_${PN}-ptest += "${PN}-misc make perl perl-module-filehandle bc"
50 52
51do_configure_prepend_darwin () { 53do_configure_prepend_darwin () {
52 sed -i -e '/version-script=openssl\.ld/d' Configure 54 sed -i -e '/version-script=openssl\.ld/d' Configure
@@ -59,17 +61,18 @@ do_configure () {
59 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/ 61 ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
60 62
61 os=${HOST_OS} 63 os=${HOST_OS}
62 if [ "x$os" = "xlinux-uclibc" ]; then 64 case $os in
65 linux-uclibc |\
66 linux-uclibceabi |\
67 linux-gnueabi |\
68 linux-uclibcspe |\
69 linux-gnuspe |\
70 linux-musl*)
63 os=linux 71 os=linux
64 elif [ "x$os" = "xlinux-uclibceabi" ]; then 72 ;;
65 os=linux 73 *)
66 elif [ "x$os" = "xlinux-uclibcspe" ]; then 74 ;;
67 os=linux 75 esac
68 elif [ "x$os" = "xlinux-gnuspe" ]; then
69 os=linux
70 elif [ "x$os" = "xlinux-gnueabi" ]; then
71 os=linux
72 fi
73 target="$os-${HOST_ARCH}" 76 target="$os-${HOST_ARCH}"
74 case $target in 77 case $target in
75 linux-arm) 78 linux-arm)
@@ -136,10 +139,18 @@ do_configure () {
136 perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target 139 perl ./Configure ${EXTRA_OECONF} shared --prefix=$useprefix --openssldir=${libdir}/ssl --libdir=`basename ${libdir}` $target
137} 140}
138 141
142do_compile_prepend_class-target () {
143 sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile
144}
145
139do_compile () { 146do_compile () {
140 oe_runmake 147 oe_runmake
141} 148}
142 149
150do_compile_ptest () {
151 oe_runmake buildtest
152}
153
143do_install () { 154do_install () {
144 oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install 155 oe_runmake INSTALL_PREFIX="${D}" MANDIR="${mandir}" install
145 156
@@ -157,7 +168,7 @@ do_install () {
157 cp --dereference -R include/openssl ${D}${includedir} 168 cp --dereference -R include/openssl ${D}${includedir}
158 169
159 oe_multilib_header openssl/opensslconf.h 170 oe_multilib_header openssl/opensslconf.h
160 if [ "${@base_contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then 171 if [ "${@bb.utils.contains('PACKAGECONFIG', 'perl', 'perl', '', d)}" = "perl" ]; then
161 install -m 0755 ${S}/tools/c_rehash ${D}${bindir} 172 install -m 0755 ${S}/tools/c_rehash ${D}${bindir}
162 sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash 173 sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${bindir}/c_rehash
163 sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl 174 sed -i -e '1s,.*,#!${bindir}/env perl,' ${D}${libdir}/ssl/misc/CA.pl
@@ -169,5 +180,18 @@ do_install () {
169 fi 180 fi
170} 181}
171 182
183do_install_ptest () {
184 cp -r Makefile test ${D}${PTEST_PATH}
185 cp -r certs ${D}${PTEST_PATH}
186 mkdir -p ${D}${PTEST_PATH}/apps
187 ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps
188 ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps
189 ln -sf /usr/bin/openssl ${D}${PTEST_PATH}/apps
190 cp apps/server2.pem ${D}${PTEST_PATH}/apps
191 mkdir -p ${D}${PTEST_PATH}/util
192 install util/opensslwrap.sh ${D}${PTEST_PATH}/util
193 install util/shlib_wrap.sh ${D}${PTEST_PATH}/util
194}
195
172BBCLASSEXTEND = "native nativesdk" 196BBCLASSEXTEND = "native nativesdk"
173 197