diff options
Diffstat (limited to 'recipes-connectivity/openssl/openssl_1.0.1i.bbappend')
-rw-r--r-- | recipes-connectivity/openssl/openssl_1.0.1i.bbappend | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-connectivity/openssl/openssl_1.0.1i.bbappend b/recipes-connectivity/openssl/openssl_1.0.1i.bbappend new file mode 100644 index 0000000..a13f6c3 --- /dev/null +++ b/recipes-connectivity/openssl/openssl_1.0.1i.bbappend | |||
@@ -0,0 +1,41 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | SRC_URI += "file://Makefiles-ptest.patch \ | ||
4 | file://ptest-deps.patch \ | ||
5 | file://run-ptest \ | ||
6 | " | ||
7 | |||
8 | DEPENDS_append_class-target = " openssl-native" | ||
9 | |||
10 | inherit ptest | ||
11 | |||
12 | RDEPENDS_${PN}-ptest += "${PN}-misc make perl perl-module-filehandle bc" | ||
13 | |||
14 | do_compile_prepend_class-target () { | ||
15 | sed -i 's/\((OPENSSL=\)".*"/\1"openssl"/' Makefile | ||
16 | } | ||
17 | |||
18 | do_compile_ptest () { | ||
19 | oe_runmake buildtest | ||
20 | } | ||
21 | |||
22 | do_install_ptest () { | ||
23 | cp -r Makefile test ${D}${PTEST_PATH} | ||
24 | cp -r certs ${D}${PTEST_PATH} | ||
25 | mkdir -p ${D}${PTEST_PATH}/apps | ||
26 | ln -sf /usr/lib/ssl/misc/CA.sh ${D}${PTEST_PATH}/apps | ||
27 | ln -sf /usr/lib/ssl/openssl.cnf ${D}${PTEST_PATH}/apps | ||
28 | ln -sf /usr/bin/openssl ${D}${PTEST_PATH}/apps | ||
29 | cp apps/server2.pem ${D}${PTEST_PATH}/apps | ||
30 | mkdir -p ${D}${PTEST_PATH}/util | ||
31 | install util/opensslwrap.sh ${D}${PTEST_PATH}/util | ||
32 | install util/shlib_wrap.sh ${D}${PTEST_PATH}/util | ||
33 | } | ||
34 | |||
35 | do_install_append_virtclass-native() { | ||
36 | create_wrapper ${D}${bindir}/openssl \ | ||
37 | OPENSSL_CONF=${libdir}/ssl/openssl.cnf \ | ||
38 | SSL_CERT_DIR=${libdir}/ssl/certs \ | ||
39 | SSL_CERT_FILE=${libdir}/ssl/cert.pem \ | ||
40 | OPENSSL_ENGINES=${libdir}/ssl/engines | ||
41 | } | ||