[arch-commits] Commit in perl-lwp-protocol-https/repos (3 files)
Felix Yan
fyan at archlinux.org
Mon Jan 4 03:39:42 UTC 2016
Date: Monday, January 4, 2016 @ 04:39:42
Author: fyan
Revision: 257493
archrelease: copy trunk to testing-any
Added:
perl-lwp-protocol-https/repos/testing-any/
perl-lwp-protocol-https/repos/testing-any/PKGBUILD
(from rev 257492, perl-lwp-protocol-https/trunk/PKGBUILD)
perl-lwp-protocol-https/repos/testing-any/certs.patch
(from rev 257492, perl-lwp-protocol-https/trunk/certs.patch)
-------------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
certs.patch | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 76 insertions(+)
Copied: perl-lwp-protocol-https/repos/testing-any/PKGBUILD (from rev 257492, perl-lwp-protocol-https/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2016-01-04 03:39:42 UTC (rev 257493)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgname=perl-lwp-protocol-https
+pkgver=6.06
+pkgrel=2
+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/testing-any/certs.patch (from rev 257492, perl-lwp-protocol-https/trunk/certs.patch)
===================================================================
--- testing-any/certs.patch (rev 0)
+++ testing-any/certs.patch 2016-01-04 03:39:42 UTC (rev 257493)
@@ -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