Commit | Line | Data |
---|---|---|
acf60b26 | 1 | ;;; GNU Guix --- Functional package management for GNU |
89e34644 | 2 | ;;; Copyright © 2013, 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
acf60b26 | 3 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> |
cd65d600 | 4 | ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> |
3382a4f3 | 5 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
acf60b26 AE |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
1ffa7090 | 22 | (define-module (gnu packages cyrus-sasl) |
59a43334 | 23 | #:use-module (gnu packages) |
3382a4f3 | 24 | #:use-module (gnu packages autotools) |
255d1bbe | 25 | #:use-module (gnu packages dbm) |
89e34644 | 26 | #:use-module (gnu packages kerberos) |
cc2b77df | 27 | #:use-module (gnu packages tls) |
b5b73a82 | 28 | #:use-module ((guix licenses) #:prefix license:) |
acf60b26 AE |
29 | #:use-module (guix packages) |
30 | #:use-module (guix download) | |
31 | #:use-module (guix build-system gnu)) | |
32 | ||
33 | (define-public cyrus-sasl | |
34 | (package | |
35 | (name "cyrus-sasl") | |
af0162bc | 36 | (version "2.1.27") |
acf60b26 AE |
37 | (source (origin |
38 | (method url-fetch) | |
42b00138 | 39 | (uri (list (string-append |
3d55d04a | 40 | "https://cyrusimap.org/releases/cyrus-sasl-" |
42b00138 LC |
41 | version ".tar.gz") |
42 | (string-append | |
43 | "ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-" | |
44 | version ".tar.gz"))) | |
acf60b26 | 45 | (sha256 (base32 |
3382a4f3 MO |
46 | "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6")) |
47 | (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch")))) | |
acf60b26 | 48 | (build-system gnu-build-system) |
3382a4f3 MO |
49 | (native-inputs |
50 | `(("autoconf" ,autoconf) | |
51 | ("automake" ,automake) | |
52 | ("libtool" ,libtool))) | |
acf60b26 | 53 | (inputs `(("gdbm" ,gdbm) |
acf60b26 | 54 | ("openssl" ,openssl))) |
af0162bc MB |
55 | (propagated-inputs |
56 | `(;; cyrus-sasl.pc refers to -lkrb5, so propagate it. | |
57 | ("mit-krb5" ,mit-krb5))) | |
acf60b26 AE |
58 | (arguments |
59 | '(#:configure-flags (list (string-append "--with-plugindir=" | |
60 | (assoc-ref %outputs "out") | |
dd68dd13 LC |
61 | "/lib/sasl2")) |
62 | ||
63 | ;; The 'plugins' directory has shared source files, such as | |
64 | ;; 'plugin_common.c'. When building the shared libraries there, libtool | |
65 | ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can | |
66 | ;; fail with EEXIST when building things in parallel. | |
3382a4f3 MO |
67 | #:parallel-build? #f |
68 | ||
69 | #:phases | |
70 | (modify-phases %standard-phases | |
71 | (add-after 'unpack 'autogen | |
72 | (lambda _ | |
73 | (invoke "autoreconf" "-vif")))))) | |
35b9e423 | 74 | (synopsis "Simple Authentication Security Layer implementation") |
acf60b26 AE |
75 | (description |
76 | "SASL (Simple Authentication Security Layer) is an Internet | |
35b9e423 | 77 | standards-track method for remote computers to authenticate. The Cyrus SASL |
acf60b26 AE |
78 | library makes supporting various SASL mechanisms easy for both client and |
79 | server writers.") | |
166191b3 LC |
80 | (license (license:non-copyleft "file://COPYING" |
81 | "See COPYING in the distribution.")) | |
9629c6b4 | 82 | (home-page "https://cyrusimap.org/sasl/"))) |