Commit | Line | Data |
---|---|---|
2357f850 LC |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
f9975b5a | 3 | ;;; |
2357f850 | 4 | ;;; This file is part of GNU Guix. |
f9975b5a | 5 | ;;; |
2357f850 | 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
f9975b5a AE |
7 | ;;; under the terms of the GNU General Public License as published by |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
2357f850 | 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
f9975b5a AE |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
2357f850 | 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
f9975b5a | 18 | |
1ffa7090 | 19 | (define-module (gnu packages openssl) |
59a43334 | 20 | #:use-module (gnu packages) |
1ffa7090 | 21 | #:use-module (gnu packages perl) |
85a8a5f5 | 22 | #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:)) |
f9975b5a AE |
23 | #:use-module (guix packages) |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu)) | |
26 | ||
27 | (define-public openssl | |
28 | (package | |
29 | (name "openssl") | |
30 | (version "1.0.1c") | |
31 | (source (origin | |
32 | (method url-fetch) | |
33 | (uri (string-append "ftp://ftp.openssl.org/source/openssl-" version | |
34 | ".tar.gz")) | |
35 | (sha256 (base32 | |
36 | "1gjy6a7d8nszi9wq8jdzx3cffn0nss23h3cw2ywlw4cb9v6v77ia")))) | |
37 | (build-system gnu-build-system) | |
38 | (inputs `(("perl" ,perl))) | |
39 | (arguments | |
12abb19d LC |
40 | '(#:parallel-build? #f |
41 | #:parallel-tests? #f | |
42 | #:test-target "test" | |
43 | #:phases | |
44 | (alist-replace | |
45 | 'configure | |
46 | (lambda* (#:key outputs #:allow-other-keys) | |
47 | (let ((out (assoc-ref outputs "out"))) | |
48 | (zero? | |
49 | (system* "./config" | |
50 | "shared" ; build shared libraries | |
51 | "--libdir=lib" | |
52 | (string-append "--prefix=" out))))) | |
53 | (alist-cons-before | |
54 | 'patch-source-shebangs 'patch-tests | |
55 | (lambda* (#:key inputs #:allow-other-keys) | |
56 | (let ((bash (assoc-ref inputs "bash"))) | |
57 | (substitute* (find-files "test" ".*") | |
58 | (("/bin/sh") | |
59 | (string-append bash "/bin/bash")) | |
60 | (("/bin/rm") | |
61 | "rm")))) | |
62 | %standard-phases)))) | |
f9975b5a AE |
63 | (synopsis "OpenSSL, an SSL/TLS implementation") |
64 | (description | |
65 | "OpenSSL is an implementation of SSL/TLS") | |
85a8a5f5 | 66 | (license license:openssl) |
f9975b5a | 67 | (home-page "http://www.openssl.org/"))) |