mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: perl-mozilla-ca: Use system SSL certificates.
* gnu/packages/perl.scm (perl-mozilla-ca)[source]: Add snippet to remove bundled certificates, use system certificates, and adjust the manpage accordingly. [arguments]: Skip the tests. Change-Id: I4b3451c0012c7b4ae40efdfd609f00644d871c2c
This commit is contained in:
parent
3dd44125e3
commit
cd45294d57
1 changed files with 16 additions and 1 deletions
|
@ -8087,8 +8087,23 @@ (define-public perl-mozilla-ca
|
|||
version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1rwq2qb8f101ihq5gmdmr9vsnx7ybnln85489y4k761hks9p6j32"))))
|
||||
"1rwq2qb8f101ihq5gmdmr9vsnx7ybnln85489y4k761hks9p6j32"))
|
||||
(snippet
|
||||
#~(begin (use-modules (guix build utils))
|
||||
(delete-file "lib/Mozilla/CA/cacert.pem")
|
||||
(substitute* "lib/Mozilla/CA.pm"
|
||||
(("my \\$file.*") "my $file = $ENV{SSL_CERT_FILE};\n")
|
||||
(("return.*")
|
||||
(string-append
|
||||
"if (!File::Spec->file_name_is_absolute($file)) {\n"
|
||||
" $file = \"/etc/ssl/certs/ca-certificates.crt\";\n"
|
||||
" }\n"
|
||||
" return $file;\n"))
|
||||
(("provides a copy of.*")
|
||||
"provides a link to the user's or the system's SSL\n"))))))
|
||||
(build-system perl-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f)) ; Tests rely on embedded cacert.pem.
|
||||
(home-page "https://metacpan.org/release/Mozilla-CA")
|
||||
(synopsis "Mozilla's CA cert bundle in PEM format")
|
||||
(description "@code{Mozilla::CA} provides a copy of Mozilla's bundle of
|
||||
|
|
Loading…
Reference in a new issue