gnu: gnome-maps: Properly wrap GI_TYPELIB_PATH.
[jackhill/guix/guix.git] / gnu / packages / cyrus-sasl.scm
CommitLineData
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 46 "1m85zcpgfdhm43cavpdkhb1s2zq1b31472hq1w1gs3xh94anp1i6"))
0f7e1eed
LF
47 (patches (search-patches "cyrus-sasl-ac-try-run-fix.patch"
48 "cyrus-sasl-CVE-2019-19906.patch"))))
acf60b26 49 (build-system gnu-build-system)
3382a4f3 50 (native-inputs
8394619b
LC
51 (list autoconf automake libtool))
52 (inputs (list gdbm openssl))
af0162bc 53 (propagated-inputs
8394619b
LC
54 (list ;; cyrus-sasl.pc refers to -lkrb5, so propagate it.
55 mit-krb5))
acf60b26
AE
56 (arguments
57 '(#:configure-flags (list (string-append "--with-plugindir="
58 (assoc-ref %outputs "out")
dd68dd13
LC
59 "/lib/sasl2"))
60
61 ;; The 'plugins' directory has shared source files, such as
62 ;; 'plugin_common.c'. When building the shared libraries there, libtool
63 ;; ends up doing "ln -s plugin_common.lo plugin_common.o", which can
64 ;; fail with EEXIST when building things in parallel.
3382a4f3
MO
65 #:parallel-build? #f
66
67 #:phases
68 (modify-phases %standard-phases
69 (add-after 'unpack 'autogen
70 (lambda _
71 (invoke "autoreconf" "-vif"))))))
35b9e423 72 (synopsis "Simple Authentication Security Layer implementation")
acf60b26
AE
73 (description
74 "SASL (Simple Authentication Security Layer) is an Internet
35b9e423 75standards-track method for remote computers to authenticate. The Cyrus SASL
acf60b26
AE
76library makes supporting various SASL mechanisms easy for both client and
77server writers.")
166191b3
LC
78 (license (license:non-copyleft "file://COPYING"
79 "See COPYING in the distribution."))
9629c6b4 80 (home-page "https://cyrusimap.org/sasl/")))