You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.5 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  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. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  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
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages openssl)
  19. #:use-module (gnu packages)
  20. #:use-module (gnu packages perl)
  21. #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
  22. #:use-module (guix packages)
  23. #:use-module (guix download)
  24. #:use-module (guix build-system gnu))
  25. (define-public openssl
  26. (package
  27. (name "openssl")
  28. (version "1.0.1c")
  29. (source (origin
  30. (method url-fetch)
  31. (uri (string-append "ftp://ftp.openssl.org/source/openssl-" version
  32. ".tar.gz"))
  33. (sha256 (base32
  34. "1gjy6a7d8nszi9wq8jdzx3cffn0nss23h3cw2ywlw4cb9v6v77ia"))))
  35. (build-system gnu-build-system)
  36. (inputs `(("perl" ,perl)))
  37. (arguments
  38. '(#:parallel-build? #f
  39. #:parallel-tests? #f
  40. #:test-target "test"
  41. #:phases
  42. (alist-replace
  43. 'configure
  44. (lambda* (#:key outputs #:allow-other-keys)
  45. (let ((out (assoc-ref outputs "out")))
  46. (zero?
  47. (system* "./config"
  48. "shared" ; build shared libraries
  49. "--libdir=lib"
  50. (string-append "--prefix=" out)))))
  51. (alist-cons-before
  52. 'patch-source-shebangs 'patch-tests
  53. (lambda* (#:key inputs #:allow-other-keys)
  54. (let ((bash (assoc-ref inputs "bash")))
  55. (substitute* (find-files "test" ".*")
  56. (("/bin/sh")
  57. (string-append bash "/bin/bash"))
  58. (("/bin/rm")
  59. "rm"))))
  60. %standard-phases))))
  61. (synopsis "OpenSSL, an SSL/TLS implementation")
  62. (description
  63. "OpenSSL is an implementation of SSL/TLS")
  64. (license license:openssl)
  65. (home-page "http://www.openssl.org/")))