forked from ports/contrib
p5-lwp-protocol-https: initial commit, version 6.07
This commit is contained in:
parent
edd949b14d
commit
70e43717da
19
p5-lwp-protocol-https/.footprint
Normal file
19
p5-lwp-protocol-https/.footprint
Normal file
@ -0,0 +1,19 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/perl5/
|
||||
drwxr-xr-x root/root usr/lib/perl5/5.28/
|
||||
drwxr-xr-x root/root usr/lib/perl5/5.28/linux-thread-multi/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/LWP/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/LWP/Protocol/
|
||||
-r--r--r-- root/root usr/lib/perl5/site_perl/5.28/LWP/Protocol/https.pm
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/LWP/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/LWP/Protocol/
|
||||
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.28/linux-thread-multi/auto/LWP/Protocol/https/
|
||||
drwxr-xr-x root/root usr/share/
|
||||
drwxr-xr-x root/root usr/share/man/
|
||||
drwxr-xr-x root/root usr/share/man/man3/
|
||||
-r--r--r-- root/root usr/share/man/man3/LWP::Protocol::https.3pm.gz
|
6
p5-lwp-protocol-https/.signature
Normal file
6
p5-lwp-protocol-https/.signature
Normal file
@ -0,0 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3/X3XjbmrVoqgEz1xXw21+u/pLOpK3x3Feg3+hNkyQldclthnL6AUsEXA9Xa77mHcrY9Jh+stnpAuPvfqcns+Q8=
|
||||
SHA256 (Pkgfile) = b17f774756eba325938ccb21e87f45feb49b141a0bc0fdb422b56c4a4f0add41
|
||||
SHA256 (.footprint) = 3ec550573f084c099902b14e61937f5b7a237cb5f88f403c9953798e11a0d0ba
|
||||
SHA256 (LWP-Protocol-https-6.07.tar.gz) = 522cc946cf84a1776304a5737a54b8822ec9e79b264d0ba0722a70473dbfb9e7
|
||||
SHA256 (certs.patch) = 4f39966c223a751b1e704850691cdfb7638b53ab6fdc174280bac22d2546f3a0
|
19
p5-lwp-protocol-https/Pkgfile
Normal file
19
p5-lwp-protocol-https/Pkgfile
Normal file
@ -0,0 +1,19 @@
|
||||
# Description: Provide https support for LWP::UserAgent
|
||||
# URL: https://metacpan.org/release/LWP-Protocol-https
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: ca-certificates p5-io-socket-ssl p5-libwww p5-net-http
|
||||
|
||||
name=p5-lwp-protocol-https
|
||||
version=6.07
|
||||
release=1
|
||||
source=(https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-$version.tar.gz
|
||||
certs.patch)
|
||||
|
||||
build() {
|
||||
cd LWP-Protocol-https-$version
|
||||
patch -p1 -i ../certs.patch
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
|
||||
}
|
43
p5-lwp-protocol-https/certs.patch
Normal file
43
p5-lwp-protocol-https/certs.patch
Normal file
@ -0,0 +1,43 @@
|
||||
diff --git a/Makefile.PL.orig b/Makefile.PL
|
||||
index fc8ef4a..26313e2 100644
|
||||
--- a/Makefile.PL.orig
|
||||
+++ b/Makefile.PL
|
||||
@@ -26,7 +26,6 @@ my %WriteMakefileArgs = (
|
||||
'LWP::UserAgent' => '6.06',
|
||||
'Net::HTTPS' => 6,
|
||||
'IO::Socket::SSL' => "1.54",
|
||||
- 'Mozilla::CA' => "20110101",
|
||||
'perl' => '5.008001',
|
||||
},
|
||||
},
|
||||
diff --git a/lib/LWP/Protocol/https.pm.orig b/lib/LWP/Protocol/https.pm
|
||||
index ed4d832..b8667cf 100644
|
||||
--- a/lib/LWP/Protocol/https.pm.orig
|
||||
+++ b/lib/LWP/Protocol/https.pm
|
||||
@@ -25,25 +25,7 @@ sub _extra_sock_opts
|
||||
}
|
||||
if ($ssl_opts{SSL_verify_mode}) {
|
||||
unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) {
|
||||
- eval {
|
||||
- require Mozilla::CA;
|
||||
- };
|
||||
- if ($@) {
|
||||
- if ($@ =~ /^Can't locate Mozilla\/CA\.pm/) {
|
||||
- $@ = <<'EOT';
|
||||
-Can't verify SSL peers without knowing which Certificate Authorities to trust
|
||||
-
|
||||
-This problem can be fixed by either setting the PERL_LWP_SSL_CA_FILE
|
||||
-environment variable or by installing the Mozilla::CA module.
|
||||
-
|
||||
-To disable verification of SSL peers set the PERL_LWP_SSL_VERIFY_HOSTNAME
|
||||
-environment variable to 0. If you do this you can't be sure that you
|
||||
-communicate with the expected peer.
|
||||
-EOT
|
||||
- }
|
||||
- die $@;
|
||||
- }
|
||||
- $ssl_opts{SSL_ca_file} = Mozilla::CA::SSL_ca_file();
|
||||
+ $ssl_opts{SSL_ca_file} = '/etc/ssl/certs/ca-certificates.crt';
|
||||
}
|
||||
}
|
||||
$self->{ssl_opts} = \%ssl_opts;
|
Loading…
x
Reference in New Issue
Block a user