[arch-commits] Commit in perl-lwp-protocol-https/trunk (PKGBUILD certs.patch)

Felix Yan fyan at archlinux.org
Mon Jan 4 03:39:24 UTC 2016


    Date: Monday, January 4, 2016 @ 04:39:24
  Author: fyan
Revision: 257492

upgpkg: perl-lwp-protocol-https 6.06-2

use system ca store

Added:
  perl-lwp-protocol-https/trunk/certs.patch
Modified:
  perl-lwp-protocol-https/trunk/PKGBUILD

-------------+
 PKGBUILD    |   15 +++++++++++----
 certs.patch |   39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-04 03:24:13 UTC (rev 257491)
+++ PKGBUILD	2016-01-04 03:39:24 UTC (rev 257492)
@@ -3,16 +3,23 @@
 
 pkgname=perl-lwp-protocol-https
 pkgver=6.06
-pkgrel=1
+pkgrel=2
 pkgdesc="Provide https support for LWP::UserAgent"
 arch=('any')
 url="https://metacpan.org/release/LWP-Protocol-https"
 license=('PerlArtistic' 'GPL')
-depends=('perl' 'perl-io-socket-ssl' 'perl-mozilla-ca' 'perl-net-http' 'perl-libwww')
+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")
-md5sums=('06f5dfd33b07f6594a429dbbd5e6a2d1')
+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

Added: certs.patch
===================================================================
--- certs.patch	                        (rev 0)
+++ certs.patch	2016-01-04 03:39:24 UTC (rev 257492)
@@ -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