[arch-commits] Commit in perl-lwp-protocol-https/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Aug 26 16:40:26 UTC 2017


    Date: Saturday, August 26, 2017 @ 16:40:25
  Author: felixonmars
Revision: 304021

archrelease: copy trunk to staging-any

Added:
  perl-lwp-protocol-https/repos/staging-any/
  perl-lwp-protocol-https/repos/staging-any/PKGBUILD
    (from rev 304020, perl-lwp-protocol-https/trunk/PKGBUILD)
  perl-lwp-protocol-https/repos/staging-any/certs.patch
    (from rev 304020, perl-lwp-protocol-https/trunk/certs.patch)

-------------+
 PKGBUILD    |   37 +++++++++++++++++++++++++++++++++++++
 certs.patch |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

Copied: perl-lwp-protocol-https/repos/staging-any/PKGBUILD (from rev 304020, perl-lwp-protocol-https/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2017-08-26 16:40:25 UTC (rev 304021)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgname=perl-lwp-protocol-https
+pkgver=6.06
+pkgrel=4
+pkgdesc="Provide https support for LWP::UserAgent"
+arch=('any')
+url="https://metacpan.org/release/LWP-Protocol-https"
+license=('PerlArtistic' 'GPL')
+depends=('ca-certificates' 'perl-io-socket-ssl' 'perl-net-http' 'perl-libwww')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/LWP-Protocol-https-$pkgver.tar.gz"
+        certs.patch)
+md5sums=('06f5dfd33b07f6594a429dbbd5e6a2d1'
+         'eeee7bb02869fdf17beeceaa8b36c855')
+
+prepare() {
+  cd LWP-Protocol-https-${pkgver}
+  patch -p0 -i ../certs.patch
+}
+
+build() {
+  cd LWP-Protocol-https-${pkgver}
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd LWP-Protocol-https-${pkgver}
+  make test
+}
+
+package() {
+  cd LWP-Protocol-https-${pkgver}
+  make DESTDIR="$pkgdir" install
+}

Copied: perl-lwp-protocol-https/repos/staging-any/certs.patch (from rev 304020, perl-lwp-protocol-https/trunk/certs.patch)
===================================================================
--- staging-any/certs.patch	                        (rev 0)
+++ staging-any/certs.patch	2017-08-26 16:40:25 UTC (rev 304021)
@@ -0,0 +1,39 @@
+--- Makefile.PL.old	2016-01-04 11:31:52.349484123 +0800
++++ Makefile.PL	2016-01-04 11:32:07.432992090 +0800
+@@ -15,7 +15,6 @@
+ 	'LWP::UserAgent' => '6.06',
+ 	'Net::HTTPS' => 6,
+ 	'IO::Socket::SSL' => "1.54",
+-	'Mozilla::CA' => "20110101",
+     },
+     META_MERGE => {
+ 	resources => {
+--- lib/LWP/Protocol/https.pm.old	2016-01-04 11:33:19.003810886 +0800
++++ lib/LWP/Protocol/https.pm	2016-01-04 11:34:42.358079461 +0800
+@@ -25,25 +25,7 @@
+     }
+     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;



More information about the arch-commits mailing list