From d0e8cb0621800f763766ceea819403f89e590e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 26 Jan 2025 20:19:51 +0100 Subject: [PATCH] lwp_protocol_https: new perl module recipe --- .../lwp_protocol_https-6.14.recipe | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 dev-perl/lwp_protocol_https/lwp_protocol_https-6.14.recipe diff --git a/dev-perl/lwp_protocol_https/lwp_protocol_https-6.14.recipe b/dev-perl/lwp_protocol_https/lwp_protocol_https-6.14.recipe new file mode 100644 index 000000000..a53892be7 --- /dev/null +++ b/dev-perl/lwp_protocol_https/lwp_protocol_https-6.14.recipe @@ -0,0 +1,74 @@ +SUMMARY="Provide https support for LWP::UserAgent" +DESCRIPTION="The LWP::Protocol::https module provides support for using https schemed URLs with \ +LWP. This module is a plug-in to the LWP protocol handling, so you don't use it directly. Once \ +the module is installed LWP is able to access sites using HTTP over SSL/TLS. +If hostname verification is requested by LWP::UserAgent's ssl_opts, and neither SSL_ca_file nor \ +SSL_ca_path is set, then SSL_ca_file is implied to be the one provided by Mozilla::CA. If the \ +Mozilla::CA module isn't available SSL requests will fail. Either install this module, set up an \ +alternative SSL_ca_file or disable hostname verification. +This module used to be bundled with the libwww-perl, but it was unbundled in v6.02 in order to be \ +able to declare its dependencies properly for the CPAN tool-chain. Applications that need https \ +support can just declare their dependency on LWP::Protocol::https and will no longer need to know \ +what underlying modules to install." +HOMEPAGE="https://metacpan.org/pod/LWP::Protocol::https" +COPYRIGHT="1997-2011 Gisle Aas" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-$portVersion.tar.gz" +CHECKSUM_SHA256="59cdeabf26950d4f1bef70f096b0d77c5b1c5a7b5ad1b66d71b681ba279cbb2a" +SOURCE_DIR="LWP-Protocol-https-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + lwp_protocol_https = $portVersion + " +REQUIRES=" + haiku + io_socket_ssl + libwww_perl + net_http + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + io_socket_ssl + libwww_perl + net_http + test_needs + test_requiresinternet + " + +BUILD() +{ + perl Makefile.PL PREFIX=$prefix + make +} + +INSTALL() +{ + make pure_install + + # remove architecture-specific files + cd $prefix + rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-) + # cut extracts the quoted string and strips the prefix (which is perl's and not ours) +} + +TEST() +{ + # 2 tests fail, presumably because getsockopt fails (see https://rt.cpan.org/Ticket/Display.html?id=155781): + # t/example.t ............ Dubious, test returned 2 (wstat 512, 0x200) + # Failed 2/2 subtests + # t/https_proxy.t ........ Dubious, test returned 10 (wstat 2560, 0xa00) + # Failed 6/56 subtests + make test +}