container: Gracefully report mount errors in the child process.
[jackhill/guix/guix.git] / gnu / packages / mit-krb5.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
079fca3b 2;;; Copyright © 2012, 2013 Andreas Enge <andreas@enge.fr>
16114c34 3;;; Copyright © 2015, 2016 Mark H Weaver <mhw@netris.org>
9dc6f288 4;;;
233e7676 5;;; This file is part of GNU Guix.
9dc6f288 6;;;
233e7676 7;;; GNU Guix is free software; you can redistribute it and/or modify it
9dc6f288
AE
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;;;
233e7676 12;;; GNU Guix is distributed in the hope that it will be useful, but
9dc6f288
AE
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
233e7676 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
9dc6f288 19
1ffa7090 20(define-module (gnu packages mit-krb5)
59a43334 21 #:use-module (gnu packages)
1ffa7090
LC
22 #:use-module (gnu packages bison)
23 #:use-module (gnu packages perl)
9dc6f288
AE
24 #:use-module (guix licenses)
25 #:use-module (guix packages)
26 #:use-module (guix download)
4d53c29e 27 #:use-module (guix utils)
9dc6f288
AE
28 #:use-module (guix build-system gnu))
29
30(define-public mit-krb5
31 (package
df8a09c7 32 (name "mit-krb5")
16114c34 33 (version "1.13.3")
df8a09c7
LC
34 (source (origin
35 (method url-fetch)
16114c34 36 (uri (string-append "http://web.mit.edu/kerberos/dist/krb5/"
4d53c29e 37 (version-major+minor version)
16114c34
MW
38 "/krb5-" version ".tar.gz"))
39 (sha256
40 (base32
41 "1gpscn78lv48dxccxq9ncyj53w9l2a15xmngjfa1wylvmn7g0jjx"))
42 (patches
fc1adab1
AK
43 (search-patches "mit-krb5-init-context-null-spnego.patch"
44 "mit-krb5-CVE-2015-8629.patch"
45 "mit-krb5-CVE-2015-8630.patch"
46 "mit-krb5-CVE-2015-8631.patch"))))
df8a09c7
LC
47 (build-system gnu-build-system)
48 (native-inputs
9715df7f 49 `(("bison" ,bison)
16114c34 50 ("perl" ,perl)))
df8a09c7 51 (arguments
16114c34 52 `(#:phases
4d53c29e 53 (modify-phases %standard-phases
16114c34 54 (add-after 'unpack 'enter-source-directory
4d53c29e
MW
55 (lambda _
56 (chdir "src")
57 #t))
4d53c29e
MW
58 (add-before 'check 'pre-check
59 (lambda* (#:key inputs #:allow-other-keys)
60 (let ((perl (assoc-ref inputs "perl")))
61 (substitute* "plugins/kdb/db2/libdb2/test/run.test"
62 (("/bin/cat") (string-append perl "/bin/perl"))
63 (("D/bin/sh") (string-append "D" (which "bash")))
64 (("bindir=/bin/.") (string-append "bindir=" perl "/bin"))))
65
66 ;; avoid service names since /etc/services is unavailable
df8a09c7
LC
67 (substitute* "tests/resolve/Makefile"
68 (("-p telnet") "-p 23"))
4d53c29e 69 #t)))))
df8a09c7
LC
70 (synopsis "MIT Kerberos 5")
71 (description
72 "Massachusetts Institute of Technology implementation of Kerberos.
9dc6f288 73Kerberos is a network authentication protocol designed to provide strong
e881752c
AK
74authentication for client/server applications by using secret-key
75cryptography.")
166191b3 76 (license (non-copyleft "file://NOTICE"
e881752c 77 "See NOTICE in the distribution."))
df8a09c7 78 (home-page "http://web.mit.edu/kerberos/")))