diff options
author | Eric Bavier <bavier@member.fsf.org> | 2014-10-29 12:51:00 -0500 |
---|---|---|
committer | Eric Bavier <bavier@member.fsf.org> | 2014-10-31 20:25:02 -0500 |
commit | a16e9204adabc79275b458168f75a8dee3308dfc (patch) | |
tree | 30e0b96c1affc53130bc43e07d489fc1c4809e21 /gnu | |
parent | 12d39eb5145e42669748f172f9433ea8e6ead020 (diff) |
gnu: Add perl-net-ssleay.
* gnu/packages/openssl.scm (perl-net-ssleay): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/openssl.scm | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/gnu/packages/openssl.scm b/gnu/packages/openssl.scm index 563290d946..141e105a2d 100644 --- a/gnu/packages/openssl.scm +++ b/gnu/packages/openssl.scm @@ -23,7 +23,8 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) - #:use-module (guix build-system gnu)) + #:use-module (guix build-system gnu) + #:use-module (guix build-system perl)) (define-public openssl (package @@ -67,3 +68,34 @@ "OpenSSL is an implementation of SSL/TLS") (license license:openssl) (home-page "http://www.openssl.org/"))) + +(define-public perl-net-ssleay + (package + (name "perl-net-ssleay") + (version "1.66") + (source (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/M/MI/MIKEM/" + "Net-SSLeay-" version ".tar.gz")) + (sha256 + (base32 + "0mxfdhz2fyc40a4myi1yfalf875v5wq1fm4qib9sj3chdm9zvy2v")))) + (build-system perl-build-system) + (inputs `(("openssl" ,openssl))) + (arguments + `(#:phases (alist-cons-before + 'configure 'set-ssl-prefix + (lambda* (#:key inputs #:allow-other-keys) + (setenv "OPENSSL_PREFIX" (assoc-ref inputs "openssl"))) + %standard-phases))) + (synopsis "Perl extension for using OpenSSL") + (description + "This module offers some high level convenience functions for accessing +web pages on SSL servers (for symmetry, the same API is offered for accessing +http servers, too), an sslcat() function for writing your own clients, and +finally access to the SSL api of the SSLeay/OpenSSL package so you can write +servers or clients for more complicated applications.") + (license (package-license perl)) + (home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/"))) + + |