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.
 
 
 
 
 
 

72 lines
2.8 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. ;;;
  5. ;;; This file is part of GNU Guix.
  6. ;;;
  7. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  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. ;;;
  12. ;;; GNU Guix is distributed in the hope that it will be useful, but
  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
  18. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. (define-module (gnu packages openldap)
  20. #:use-module (gnu packages autotools)
  21. #:use-module (gnu packages bdb)
  22. #:use-module (gnu packages compression)
  23. #:use-module (gnu packages cyrus-sasl)
  24. #:use-module (gnu packages gnupg)
  25. #:use-module (gnu packages groff)
  26. #:use-module (gnu packages icu4c)
  27. #:use-module (gnu packages openssl)
  28. #:use-module ((guix licenses) #:select (openldap2.8))
  29. #:use-module (guix packages)
  30. #:use-module (guix download)
  31. #:use-module (guix build-system gnu))
  32. (define-public openldap
  33. (package
  34. (name "openldap")
  35. (version "2.4.33")
  36. (source (origin
  37. (method url-fetch)
  38. (uri (string-append
  39. "ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/openldap-"
  40. version ".tgz"))
  41. (sha256 (base32
  42. "0k51mhrs7pkwph2j38w09x7xl1ii69mcdi7b2mfrm9hp1yifrsc1"))))
  43. (build-system gnu-build-system)
  44. (inputs `(("bdb" ,bdb)
  45. ("openssl" ,openssl)
  46. ("cyrus-sasl" ,cyrus-sasl)
  47. ("groff" ,groff)
  48. ("icu4c" ,icu4c)
  49. ("libgcrypt" ,libgcrypt)
  50. ;; FIXME: currently, openldap requires openssl or gnutls<3, see
  51. ;; http://www.openldap.org/its/index.cgi/Incoming?id=7430;page=17
  52. ;; Once this is fixed, switch to gnutls.
  53. ("libtool" ,libtool "bin")
  54. ("zlib" ,zlib)))
  55. (arguments
  56. `(#:tests? #f
  57. #:phases
  58. (alist-replace
  59. 'configure
  60. (lambda* (#:key #:allow-other-keys #:rest args)
  61. (let ((configure (assoc-ref %standard-phases 'configure)))
  62. (apply configure args)
  63. (copy-file (which "libtool") "libtool")))
  64. %standard-phases)))
  65. (synopsis "openldap, an implementation of the Lightweight Directory Access Protocol")
  66. (description
  67. "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.")
  68. (license openldap2.8)
  69. (home-page "http://www.openldap.org/")))