diff options
author | Kang Kai <kai.kang@windriver.com> | 2014-08-14 17:13:33 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-08-21 21:35:05 +0200 |
commit | 8e4bee933b2480e6e9dcc0ebad7d6fd0c22165ad (patch) | |
tree | c3ae7ab438b60abc223688553bd7f11c19e6145d /meta-perl/recipes-perl | |
parent | 4a63fbc4f198fb009c457efd49921347c8a58b03 (diff) | |
download | meta-openembedded-8e4bee933b2480e6e9dcc0ebad7d6fd0c22165ad.tar.gz |
libnet-ssleay-perl: add recipe
Add recipe for libnet-ssleay-perl. Inherit ptest to enable build
-ptest sub-package and add file 'run-ptest'.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-perl/recipes-perl')
-rw-r--r-- | meta-perl/recipes-perl/libnet/files/run-ptest | 16 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 43 |
2 files changed, 59 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libnet/files/run-ptest b/meta-perl/recipes-perl/libnet/files/run-ptest new file mode 100644 index 000000000..c9f9ca94d --- /dev/null +++ b/meta-perl/recipes-perl/libnet/files/run-ptest | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for case in `find t -type f -name '*.t'`; do | ||
4 | perl $case >$case.output 2>&1 | ||
5 | ret=$? | ||
6 | cat $case.output | ||
7 | if [ $ret -ne 0 ]; then | ||
8 | echo "FAIL: ${case%.t}" | ||
9 | elif grep -i 'SKIP' $case.output; then | ||
10 | echo "SKIP: ${case%.t}" | ||
11 | else | ||
12 | echo "PASS: ${case%.t}" | ||
13 | fi | ||
14 | |||
15 | rm -f $case.output | ||
16 | done | ||
diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb new file mode 100644 index 000000000..63594b94b --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "Net::SSLeay - Perl extension for using OpenSSL" | ||
2 | DESCRIPTION = "This module offers some high level convenience functions for accessing \ | ||
3 | web pages on SSL servers (for symmetry, same API is offered for \ | ||
4 | accessing http servers, too), a sslcat() function for writing your own \ | ||
5 | clients, and finally access to the SSL api of SSLeay/OpenSSL package \ | ||
6 | so you can write servers or clients for more complicated applications." | ||
7 | HOMEPAGE = "http://search.cpan.org/dist/Net-SSLeay/" | ||
8 | SECTION = "libs" | ||
9 | |||
10 | LICENSE = "OpenSSL" | ||
11 | LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=49f415984b387be999ee2ad0e5c692fe" | ||
12 | |||
13 | DEPENDS = "openssl zlib" | ||
14 | RDEPENDS_${PN} += "perl-module-carp \ | ||
15 | perl-module-errno \ | ||
16 | perl-module-extutils-makemaker \ | ||
17 | perl-module-mime-base64 \ | ||
18 | perl-module-socket \ | ||
19 | " | ||
20 | |||
21 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \ | ||
22 | file://run-ptest \ | ||
23 | " | ||
24 | SRC_URI[md5sum] = "19600c036e9e0bbfbf9157f083e40755" | ||
25 | SRC_URI[sha256sum] = "2fb1371120b85f018944d95736c107163f04ba56b6029c0709a2c3d6247b9c06" | ||
26 | |||
27 | S = "${WORKDIR}/Net-SSLeay-${PV}" | ||
28 | |||
29 | inherit cpan ptest | ||
30 | |||
31 | EXTRA_CPANFLAGS = "LIBS='-L=${libdir} -L=${base_libdir}' \ | ||
32 | INC=-I=${includedir} \ | ||
33 | 'EXTRALIBS=-lssl -lcrypto -lz' \ | ||
34 | 'LDLOADLIBS=-lssl -lcrypto -lz' \ | ||
35 | " | ||
36 | |||
37 | do_install_ptest() { | ||
38 | cp -r ${B}/t ${D}${PTEST_PATH} | ||
39 | } | ||
40 | |||
41 | BBCLASSEXTEND = "native" | ||
42 | |||
43 | FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/" | ||