diff --git a/Makefile b/Makefile new file mode 100644 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/files/lwp-protocol-https-cert-file.patch b/files/lwp-protocol-https-cert-file.patch new file mode 100644 --- /dev/null +++ b/files/lwp-protocol-https-cert-file.patch @@ -0,0 +1,15 @@ +diff -ru -x '*~' LWP-Protocol-https-6.04-orig/lib/LWP/Protocol/https.pm LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm +--- LWP-Protocol-https-6.04-orig/lib/LWP/Protocol/https.pm 2013-04-29 23:16:18.000000000 +0200 ++++ LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm 2016-03-02 14:59:01.639844511 +0100 +@@ -24,6 +24,11 @@ + } + if ($ssl_opts{SSL_verify_mode}) { + unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { ++ $ssl_opts{SSL_ca_file} = $ENV{'SSL_CERT_FILE'}; ++ $ssl_opts{SSL_ca_file} = "/etc/ssl/certs/ca-certificates.crt" ++ if !defined $ssl_opts{SSL_ca_file} && -e "/etc/ssl/certs/ca-certificates.crt"; ++ } ++ unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { + eval { + require Mozilla::CA; + }; diff --git a/package.yml b/package.yml new file mode 100644 --- /dev/null +++ b/package.yml @@ -0,0 +1,20 @@ +name : perl-lwp-protocol-https +version : 6.07 +release : 1 +source : + - https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-6.07.tar.gz : 522cc946cf84a1776304a5737a54b8822ec9e79b264d0ba0722a70473dbfb9e7 +license : Artistic-Perl-1.0 +component : programming.perl +summary : Provides https support for LWP::UserAgent +description: | + Provides https support for LWP::UserAgent +rundeps : + - perl-io-socket-ssl + - perl-net-http +setup : | + %patch -p1 < $pkgfiles/lwp-protocol-https-cert-file.patch + %perl_setup +build : | + %perl_build +install : | + %perl_install diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml new file mode 100644 --- /dev/null +++ b/pspec_x86_64.xml @@ -0,0 +1,36 @@ + + + perl-lwp-protocol-https + + Joey Riches + josephriches@gmail.com + + Artistic-Perl-1.0 + programming.perl + Provides https support for LWP::UserAgent + Provides https support for LWP::UserAgent + + https://solus-project.com/sources/README.Solus + + + perl-lwp-protocol-https + Provides https support for LWP::UserAgent + Provides https support for LWP::UserAgent + + programming.perl + + /usr/lib/perl5/vendor_perl/5.24.1/LWP/Protocol/https.pm + /usr/lib/perl5/vendor_perl/5.24.1/x86_64-linux-thread-multi/auto/LWP/Protocol/https/.packlist + /usr/share/man + + + + + 2017-05-29 + 6.07 + Packaging update + Joey Riches + josephriches@gmail.com + + + \ No newline at end of file