Commit | Line | Data |
---|---|---|
2a75d4e6 | 1 | ;;; GNU Guix --- Functional package management for GNU |
3246cc91 | 2 | ;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
2a75d4e6 AE |
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 | ||
20 | (define-module (gnu packages openldap) | |
21 | #:use-module (gnu packages autotools) | |
5f96f303 | 22 | #:use-module (gnu packages databases) |
2a75d4e6 AE |
23 | #:use-module (gnu packages compression) |
24 | #:use-module (gnu packages cyrus-sasl) | |
25 | #:use-module (gnu packages gnupg) | |
26 | #:use-module (gnu packages groff) | |
27 | #:use-module (gnu packages icu4c) | |
28 | #:use-module (gnu packages openssl) | |
29 | #:use-module ((guix licenses) #:select (openldap2.8)) | |
30 | #:use-module (guix packages) | |
31 | #:use-module (guix download) | |
32 | #:use-module (guix build-system gnu)) | |
33 | ||
34 | (define-public openldap | |
35 | (package | |
36 | (name "openldap") | |
5d4c6957 | 37 | (version "2.4.40") |
2a75d4e6 AE |
38 | (source (origin |
39 | (method url-fetch) | |
969ee403 LC |
40 | |
41 | ;; See <http://www.openldap.org/software/download/> for a list of | |
42 | ;; mirrors. | |
43 | (uri (list (string-append | |
44 | "ftp://mirror.switch.ch/mirror/OpenLDAP/" | |
45 | "openldap-release/openldap-" version ".tgz") | |
46 | (string-append | |
47 | "ftp://ftp.OpenLDAP.org/pub/OpenLDAP/" | |
48 | "openldap-release/openldap-" version ".tgz") | |
49 | (string-append | |
50 | "ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/" | |
51 | "openldap-release/openldap-" version ".tgz"))) | |
52 | (sha256 | |
53 | (base32 | |
54 | "1nyslrgwxwilgv5sixc37svls5rbvhsv9drb7hlrjr2vqaji29ni")))) | |
2a75d4e6 AE |
55 | (build-system gnu-build-system) |
56 | (inputs `(("bdb" ,bdb) | |
57 | ("openssl" ,openssl) | |
58 | ("cyrus-sasl" ,cyrus-sasl) | |
59 | ("groff" ,groff) | |
60 | ("icu4c" ,icu4c) | |
61 | ("libgcrypt" ,libgcrypt) | |
62 | ;; FIXME: currently, openldap requires openssl or gnutls<3, see | |
63 | ;; http://www.openldap.org/its/index.cgi/Incoming?id=7430;page=17 | |
64 | ;; Once this is fixed, switch to gnutls. | |
2a75d4e6 | 65 | ("zlib" ,zlib))) |
3246cc91 | 66 | (native-inputs `(("libtool" ,libtool))) |
2a75d4e6 | 67 | (arguments |
c3f97617 | 68 | `(#:tests? #f |
2a75d4e6 | 69 | #:phases |
d4bf49b1 EB |
70 | (alist-cons-after |
71 | 'configure 'provide-libtool | |
72 | (lambda _ (copy-file (which "libtool") "libtool")) | |
c3f97617 | 73 | %standard-phases))) |
d4bf49b1 | 74 | (synopsis "Implementation of the Lightweight Directory Access Protocol") |
2a75d4e6 AE |
75 | (description |
76 | "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.") | |
77 | (license openldap2.8) | |
78 | (home-page "http://www.openldap.org/"))) |