Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 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://0001-libnet-ssleay-perl-Disable-test-that-fails-with-open.patch \ |
| 23 | file://0002-Recent-1.0.2-betas-have-dropped-the-SSLv3_method-fun.patch \ |
| 24 | file://run-ptest \ |
| 25 | " |
| 26 | SRC_URI[md5sum] = "19600c036e9e0bbfbf9157f083e40755" |
| 27 | SRC_URI[sha256sum] = "2fb1371120b85f018944d95736c107163f04ba56b6029c0709a2c3d6247b9c06" |
| 28 | |
| 29 | S = "${WORKDIR}/Net-SSLeay-${PV}" |
| 30 | |
| 31 | inherit cpan ptest |
| 32 | |
| 33 | EXTRA_CPANFLAGS = "LIBS='-L=${STAGING_LIBDIR} -L=${STAGING_BASELIBDIR}' \ |
| 34 | INC=-I=${STAGING_INCDIR} \ |
| 35 | 'EXTRALIBS=-lssl -lcrypto -lz' \ |
| 36 | 'LDLOADLIBS=-lssl -lcrypto -lz' \ |
| 37 | " |
| 38 | |
| 39 | do_configure_prepend() { |
| 40 | export OPENSSL_PREFIX=${STAGING_DIR_NATIVE}${prefix_native} |
| 41 | } |
| 42 | |
| 43 | do_install_ptest() { |
| 44 | cp -r ${B}/t ${D}${PTEST_PATH} |
| 45 | } |
| 46 | |
| 47 | BBCLASSEXTEND = "native" |
| 48 | |
| 49 | FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/" |
| 50 | |
| 51 | RDEPENDS_${PN}-ptest = " perl" |