linux-initrd: Add USB kernel modules to the default initrd.
[jackhill/guix/guix.git] / gnu / packages / openssl.scm
CommitLineData
2357f850
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
fe3711bc 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
f9975b5a 4;;;
2357f850 5;;; This file is part of GNU Guix.
f9975b5a 6;;;
2357f850 7;;; GNU Guix is free software; you can redistribute it and/or modify it
f9975b5a
AE
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
2357f850 12;;; GNU Guix is distributed in the hope that it will be useful, but
f9975b5a
AE
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
2357f850 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
f9975b5a 19
1ffa7090 20(define-module (gnu packages openssl)
59a43334 21 #:use-module (gnu packages)
1ffa7090 22 #:use-module (gnu packages perl)
b5b73a82 23 #:use-module ((guix licenses) #:prefix license:)
f9975b5a
AE
24 #:use-module (guix packages)
25 #:use-module (guix download)
a16e9204
EB
26 #:use-module (guix build-system gnu)
27 #:use-module (guix build-system perl))
f9975b5a
AE
28
29(define-public openssl
30 (package
31 (name "openssl")
fe3711bc 32 (version "1.0.1k")
f9975b5a
AE
33 (source (origin
34 (method url-fetch)
35 (uri (string-append "ftp://ftp.openssl.org/source/openssl-" version
36 ".tar.gz"))
5d2933ae
LC
37 (sha256
38 (base32
fe3711bc 39 "0754wzmzr90hiiqs5cy6g3cf8as75ljkhppgyirfg26hpapax7wg"))))
f9975b5a 40 (build-system gnu-build-system)
94e45081 41 (native-inputs `(("perl" ,perl)))
f9975b5a 42 (arguments
12abb19d
LC
43 '(#:parallel-build? #f
44 #:parallel-tests? #f
45 #:test-target "test"
46 #:phases
47 (alist-replace
48 'configure
49 (lambda* (#:key outputs #:allow-other-keys)
50 (let ((out (assoc-ref outputs "out")))
51 (zero?
52 (system* "./config"
53 "shared" ; build shared libraries
54 "--libdir=lib"
55 (string-append "--prefix=" out)))))
56 (alist-cons-before
57 'patch-source-shebangs 'patch-tests
94e45081
JD
58 (lambda* (#:key inputs native-inputs #:allow-other-keys)
59 (let ((bash (assoc-ref (or native-inputs inputs) "bash")))
12abb19d
LC
60 (substitute* (find-files "test" ".*")
61 (("/bin/sh")
62 (string-append bash "/bin/bash"))
63 (("/bin/rm")
64 "rm"))))
65 %standard-phases))))
35b9e423 66 (synopsis "SSL/TLS implementation")
f9975b5a
AE
67 (description
68 "OpenSSL is an implementation of SSL/TLS")
85a8a5f5 69 (license license:openssl)
f9975b5a 70 (home-page "http://www.openssl.org/")))
a16e9204
EB
71
72(define-public perl-net-ssleay
73 (package
74 (name "perl-net-ssleay")
75 (version "1.66")
76 (source (origin
77 (method url-fetch)
78 (uri (string-append "mirror://cpan/authors/id/M/MI/MIKEM/"
79 "Net-SSLeay-" version ".tar.gz"))
80 (sha256
81 (base32
82 "0mxfdhz2fyc40a4myi1yfalf875v5wq1fm4qib9sj3chdm9zvy2v"))))
83 (build-system perl-build-system)
84 (inputs `(("openssl" ,openssl)))
85 (arguments
86 `(#:phases (alist-cons-before
87 'configure 'set-ssl-prefix
88 (lambda* (#:key inputs #:allow-other-keys)
89 (setenv "OPENSSL_PREFIX" (assoc-ref inputs "openssl")))
90 %standard-phases)))
91 (synopsis "Perl extension for using OpenSSL")
92 (description
93 "This module offers some high level convenience functions for accessing
94web pages on SSL servers (for symmetry, the same API is offered for accessing
95http servers, too), an sslcat() function for writing your own clients, and
96finally access to the SSL api of the SSLeay/OpenSSL package so you can write
97servers or clients for more complicated applications.")
98 (license (package-license perl))
99 (home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/")))
100
101