gnu: poppler: Integrate grafted update.
[jackhill/guix/guix.git] / gnu / packages / kerberos.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
079fca3b 2;;; Copyright © 2012, 2013 Andreas Enge <andreas@enge.fr>
89e34644 3;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6f8ede1a 4;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
a007d699 5;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
89e34644 6;;; Copyright © 2012, 2013 Nikita Karetnikov <nikita@karetnikov.org>
67fee545 7;;; Copyright © 2012, 2017 Ludovic Courtès <ludo@gnu.org>
3154e202 8;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
9dc6f288 9;;;
233e7676 10;;; This file is part of GNU Guix.
9dc6f288 11;;;
233e7676 12;;; GNU Guix is free software; you can redistribute it and/or modify it
9dc6f288
AE
13;;; under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 3 of the License, or (at
15;;; your option) any later version.
16;;;
233e7676 17;;; GNU Guix is distributed in the hope that it will be useful, but
9dc6f288
AE
18;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20;;; GNU General Public License for more details.
21;;;
22;;; You should have received a copy of the GNU General Public License
233e7676 23;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
9dc6f288 24
89e34644 25(define-module (gnu packages kerberos)
59a43334 26 #:use-module (gnu packages)
1ffa7090
LC
27 #:use-module (gnu packages bison)
28 #:use-module (gnu packages perl)
89e34644
LC
29 #:use-module (gnu packages gnupg)
30 #:use-module (gnu packages libidn)
31 #:use-module (gnu packages linux)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages compression)
67fee545
LC
34 #:use-module (gnu packages databases)
35 #:use-module (gnu packages readline)
89e34644
LC
36 #:use-module (gnu packages tls)
37 #:use-module ((guix licenses) #:prefix license:)
9dc6f288
AE
38 #:use-module (guix packages)
39 #:use-module (guix download)
4d53c29e 40 #:use-module (guix utils)
9dc6f288
AE
41 #:use-module (guix build-system gnu))
42
43(define-public mit-krb5
44 (package
df8a09c7 45 (name "mit-krb5")
3154e202 46 (version "1.15.1")
df8a09c7
LC
47 (source (origin
48 (method url-fetch)
16114c34 49 (uri (string-append "http://web.mit.edu/kerberos/dist/krb5/"
4d53c29e 50 (version-major+minor version)
16114c34
MW
51 "/krb5-" version ".tar.gz"))
52 (sha256
53 (base32
3154e202 54 "0igbi5d095c2hgpn2cixpc4q2ij8vgg2bx7yjfly5zfmvlqqhz23"))))
df8a09c7
LC
55 (build-system gnu-build-system)
56 (native-inputs
9715df7f 57 `(("bison" ,bison)
16114c34 58 ("perl" ,perl)))
df8a09c7 59 (arguments
9269ce49 60 `(;; XXX: On 32-bit systems, 'kdb5_util' hangs on an fcntl/F_SETLKW call
d2375c43
LC
61 ;; while running the tests in 'src/tests'.
62 #:tests? ,(string=? (%current-system) "x86_64-linux")
d9ecec9b 63
a083b5cb 64 #:phases
4d53c29e 65 (modify-phases %standard-phases
16114c34 66 (add-after 'unpack 'enter-source-directory
4d53c29e
MW
67 (lambda _
68 (chdir "src")
69 #t))
4d53c29e
MW
70 (add-before 'check 'pre-check
71 (lambda* (#:key inputs #:allow-other-keys)
72 (let ((perl (assoc-ref inputs "perl")))
73 (substitute* "plugins/kdb/db2/libdb2/test/run.test"
74 (("/bin/cat") (string-append perl "/bin/perl"))
58ea4d40 75 (("D/bin/sh") (string-append "D" (which "sh")))
4d53c29e
MW
76 (("bindir=/bin/.") (string-append "bindir=" perl "/bin"))))
77
78 ;; avoid service names since /etc/services is unavailable
df8a09c7
LC
79 (substitute* "tests/resolve/Makefile"
80 (("-p telnet") "-p 23"))
4d53c29e 81 #t)))))
df8a09c7
LC
82 (synopsis "MIT Kerberos 5")
83 (description
84 "Massachusetts Institute of Technology implementation of Kerberos.
9dc6f288 85Kerberos is a network authentication protocol designed to provide strong
e881752c
AK
86authentication for client/server applications by using secret-key
87cryptography.")
89e34644
LC
88 (license (license:non-copyleft "file://NOTICE"
89 "See NOTICE in the distribution."))
df8a09c7 90 (home-page "http://web.mit.edu/kerberos/")))
89e34644
LC
91
92(define-public shishi
93 (package
94 (name "shishi")
95 (version "1.0.2")
96 (source
97 (origin
98 (method url-fetch)
99 (uri (string-append "mirror://gnu/shishi/shishi-"
100 version ".tar.gz"))
101 (sha256
102 (base32
103 "032qf72cpjdfffq1yq54gz3ahgqf2ijca4vl31sfabmjzq9q370d"))))
104 (build-system gnu-build-system)
105 (native-inputs `(("pkg-config" ,pkg-config)))
106 (inputs
107 `(("gnutls" ,gnutls)
108 ("libidn" ,libidn)
109 ("linux-pam" ,linux-pam-1.2)
110 ("zlib" ,zlib)
111 ;; libgcrypt 1.6 fails because of the following test:
112 ;; #include <gcrypt.h>
113 ;; /* GCRY_MODULE_ID_USER was added in 1.4.4 and gc-libgcrypt.c
114 ;; will fail on startup if we don't have 1.4.4 or later, so
115 ;; test for it early. */
116 ;; #if !defined GCRY_MODULE_ID_USER
117 ;; error too old libgcrypt
118 ;; #endif
119 ("libgcrypt" ,libgcrypt-1.5)
120 ("libtasn1" ,libtasn1)))
6fd52309 121 (home-page "https://www.gnu.org/software/shishi/")
89e34644
LC
122 (synopsis "Implementation of the Kerberos 5 network security system")
123 (description
124 "GNU Shishi is a free implementation of the Kerberos 5 network security
125system. It is used to allow non-secure network nodes to communicate in a
126secure manner through client-server mutual authentication via tickets.")
127 (license license:gpl3+)))
67fee545
LC
128
129(define-public heimdal
130 (package
131 (name "heimdal")
132 (version "1.5.3")
133 (source (origin
134 (method url-fetch)
135 (uri (string-append "http://www.h5l.org/dist/src/heimdal-"
136 version ".tar.gz"))
137 (sha256
138 (base32
139 "19gypf9vzfrs2bw231qljfl4cqc1riyg0ai0xmm1nd1wngnpphma"))
140 (modules '((guix build utils)))
141 (snippet
142 '(substitute* "configure"
143 (("User=.*$") "User=Guix\n")
144 (("Date=.*$") "Date=2017\n")))))
145 (build-system gnu-build-system)
146 (arguments
147 '(#:configure-flags (list
148 ;; Work around a linker error.
149 "CFLAGS=-pthread"
150
151 ;; Avoid 7 MiB of .a files.
152 "--disable-static"
153
154 ;; Do not build libedit.
155 (string-append
156 "--with-readline-lib="
157 (assoc-ref %build-inputs "readline") "/lib")
158 (string-append
159 "--with-readline-include="
160 (assoc-ref %build-inputs "readline") "/include"))
161
162 #:phases (modify-phases %standard-phases
163 (add-before 'check 'skip-tests
164 (lambda _
165 ;; The test simply runs 'ftp --version && ftp --help'
166 ;; but that fails in the chroot because 'ftp' tries to
167 ;; do a service lookup before printing the help/version.
168 (substitute* "appl/ftp/ftp/Makefile.in"
169 (("^CHECK_LOCAL =.*")
170 "CHECK_LOCAL = no-check-local\n"))
171 #t)))))
172 (native-inputs `(("e2fsprogs" ,e2fsprogs))) ;for 'compile_et'
173 (inputs `(("readline" ,readline)
174 ("bdb" ,bdb)
175 ("e2fsprogs" ,e2fsprogs))) ;for libcom_err
176 (home-page "http://www.h5l.org/")
177 (synopsis "Kerberos 5 network authentication")
178 (description
179 "Heimdal is an implementation of Kerberos 5 network authentication
180service.")
181 (license license:bsd-3)))