blob: 4d793a4e320facd758b3bf3bc4d88fbcfbaa3ac7 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "Perl library for transparent SSL"
2DESCRIPTION = "This module is a true drop-in replacement for IO::Socket::INET that \
3uses SSL to encrypt data before it is transferred to a remote server \
4or client. IO::Socket::SSL supports all the extra features that one \
5needs to write a full-featured SSL client or server application: \
6multiple SSL contexts, cipher selection, certificate verification, and \
7SSL version selection. As an extra bonus, it works perfectly with \
8mod_perl."
9HOMEPAGE = "http://search.cpan.org/dist/IO-Socket-SSL/"
10SECTION = "libs"
11
12LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
13LIC_FILES_CHKSUM = "file://META.yml;beginline=12;endline=12;md5=963ce28228347875ace682de56eef8e8"
14
15RDEPENDS:${PN} += "\
16 libmozilla-ca-perl \
17 libnet-ssleay-perl \
18 perl-module-autoloader \
19 perl-module-io-socket \
20 perl-module-scalar-util \
21"
22
23SRC_URI = "${CPAN_MIRROR}/authors/id/S/SU/SULLR/IO-Socket-SSL-${PV}.tar.gz"
Andrew Geissler5082cc72023-09-11 08:41:39 -040024SRC_URI[sha256sum] = "904ef28765440a97d8a9a0df597f8c3d7f3cb0a053d1b082c10bed03bc802069"
Andrew Geissler517393d2023-01-13 08:55:19 -060025
26S = "${WORKDIR}/IO-Socket-SSL-${PV}"
27
28inherit cpan ptest-perl
29
30do_install:append () {
31 mkdir -p ${D}${docdir}/${PN}/
32 cp ${S}/BUGS ${D}${docdir}/${PN}/
33 cp ${S}/Changes ${D}${docdir}/${PN}/
34 cp ${S}/README ${D}${docdir}/${PN}/
35 cp -pRP ${S}/docs ${D}${docdir}/${PN}/
Andrew Geissler5082cc72023-09-11 08:41:39 -040036 cp -pRP ${S}/t/certs ${D}${docdir}/${PN}/
Andrew Geissler517393d2023-01-13 08:55:19 -060037 cp -pRP ${S}/example ${D}${docdir}/${PN}/
38}
39
40RDEPENDS:${PN}-ptest += "\
Andrew Geissler220dafd2023-10-04 10:18:08 -050041 libnet-idn-encode \
Andrew Geissler517393d2023-01-13 08:55:19 -060042 liburi-perl \
43 perl-module-file-glob \
44 perl-module-findbin \
45 perl-module-io-socket-inet \
46 perl-module-io-socket-ip \
47 perl-module-perlio \
48 perl-module-perlio-scalar \
49 perl-module-test-more \
50"
51
52do_install_ptest:append () {
Andrew Geissler5082cc72023-09-11 08:41:39 -040053 cp -r ${B}/t/certs ${D}${PTEST_PATH}
Andrew Geissler517393d2023-01-13 08:55:19 -060054}
55
56BBCLASSEXTEND = "native"