gnu: gnuplot: Update to 5.2.7.
[jackhill/guix/guix.git] / gnu / packages / gnupg.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
464f5447 2;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
a92d9726 3;;; Copyright © 2013, 2015, 2018 Andreas Enge <andreas@enge.fr>
c8e3651a 4;;; Copyright © 2014, 2018 Eric Bavier <bavier@member.fsf.org>
3a7261bf 5;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
5dabdb75 6;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
33678041 7;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
1d7b8a24 8;;; Copyright © 2015, 2016, 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
a05d1d82 9;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
47956fa0 10;;; Copyright © 2016, 2017 ng0 <ng0@n0.is>
41edb23f 11;;; Copyright © 2016 Christopher Baines <mail@cbaines.net>
cd9ed6c1 12;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org>
0f391063 13;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
e3dd1f0c 14;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
5aeb6611 15;;; Copyright © 2017 Petter <petter@mykolab.ch>
4f4b37df 16;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
df9f6289 17;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
8d1939e4 18;;;
233e7676 19;;; This file is part of GNU Guix.
8d1939e4 20;;;
233e7676 21;;; GNU Guix is free software; you can redistribute it and/or modify it
8d1939e4
LC
22;;; under the terms of the GNU General Public License as published by
23;;; the Free Software Foundation; either version 3 of the License, or (at
24;;; your option) any later version.
25;;;
233e7676 26;;; GNU Guix is distributed in the hope that it will be useful, but
8d1939e4
LC
27;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29;;; GNU General Public License for more details.
30;;;
31;;; You should have received a copy of the GNU General Public License
233e7676 32;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
8d1939e4 33
1ffa7090 34(define-module (gnu packages gnupg)
07157e8a 35 #:use-module ((guix licenses) #:prefix license:)
a05d1d82 36 #:use-module (gnu packages)
7b40296f 37 #:use-module (gnu packages adns)
c9ce8e17 38 #:use-module (gnu packages autotools)
34ef5755 39 #:use-module (gnu packages base)
01e11826 40 #:use-module (gnu packages curl)
c9ce8e17 41 #:use-module (gnu packages crypto)
abc4a332 42 #:use-module (gnu packages emacs)
5e369f8a
EF
43 #:use-module (gnu packages enlightenment)
44 #:use-module (gnu packages gettext)
b0cb92b2 45 #:use-module (gnu packages guile)
01e11826 46 #:use-module (gnu packages openldap)
ea4d96c6 47 #:use-module (gnu packages perl)
5ccde207 48 #:use-module (gnu packages perl-check)
1ffa7090 49 #:use-module (gnu packages pth)
ea4d96c6 50 #:use-module (gnu packages python)
44d10b1f 51 #:use-module (gnu packages python-xyz)
54df7558 52 #:use-module (gnu packages qt)
1ffa7090 53 #:use-module (gnu packages readline)
07157e8a 54 #:use-module (gnu packages compression)
40d806af
LC
55 #:use-module (gnu packages gtk)
56 #:use-module (gnu packages glib)
d1d75c6a 57 #:use-module (gnu packages gnome)
40d806af
LC
58 #:use-module (gnu packages pkg-config)
59 #:use-module (gnu packages ncurses)
cd9ed6c1 60 #:use-module (gnu packages security-token)
cd0322a3 61 #:use-module (gnu packages sqlite)
e3dd1f0c 62 #:use-module (gnu packages swig)
b0cb92b2 63 #:use-module (gnu packages texinfo)
a7fd7b68 64 #:use-module (gnu packages tls)
15b08442
P
65 #:use-module (gnu packages tor)
66 #:use-module (gnu packages web)
67 #:use-module (gnu packages xml)
8d1939e4 68 #:use-module (guix packages)
87f5d366 69 #:use-module (guix download)
0f391063 70 #:use-module (guix git-download)
14e2e44d 71 #:use-module (guix build-system gnu)
34ef5755 72 #:use-module (guix build-system perl)
c8e3651a
EB
73 #:use-module (guix build-system python)
74 #:use-module (srfi srfi-1))
8d1939e4
LC
75
76(define-public libgpg-error
77 (package
78 (name "libgpg-error")
fa258af2 79 (version "1.32")
8d1939e4
LC
80 (source
81 (origin
87f5d366 82 (method url-fetch)
0db342a5 83 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
8d1939e4
LC
84 version ".tar.bz2"))
85 (sha256
86 (base32
fa258af2 87 "1jj08ns4sh1hmafqp1giskvdicdz18la516va26jycy27kkwaif3"))))
8d1939e4 88 (build-system gnu-build-system)
72fb1b24 89 (home-page "https://gnupg.org")
35b9e423 90 (synopsis "Library of error values for GnuPG components")
8d1939e4
LC
91 (description
92 "Libgpg-error is a small library that defines common error values
93for all GnuPG components. Among these are GPG, GPGSM, GPGME,
94GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
95Daemon and possibly more in the future.")
63e8bb12
LC
96 (license license:lgpl2.0+)
97 (properties '((ftp-server . "ftp.gnupg.org")
98 (ftp-directory . "/gcrypt/libgpg-error")))))
8d1939e4
LC
99
100(define-public libgcrypt
101 (package
102 (name "libgcrypt")
9dfbf405 103 (version "1.8.3")
84a3e3b7
LC
104 (source (origin
105 (method url-fetch)
106 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
107 version ".tar.bz2"))
108 (sha256
109 (base32
4866cba6
BH
110 "0z5gs1khzyknyfjr19k8gk4q148s6q987ya85cpn0iv70fz91v36"))
111 (patches
112 (search-patches "libgcrypt-make-yat2m-reproducible.patch"))))
8d1939e4
LC
113 (build-system gnu-build-system)
114 (propagated-inputs
e0932742 115 `(("libgpg-error-host" ,libgpg-error)))
e766f699
JD
116 (native-inputs
117 ;; Needed here for the 'gpg-error' program.
e0932742 118 `(("libgpg-error-native" ,libgpg-error)))
e766f699
JD
119 (arguments
120 ;; The '--with-gpg-error-prefix' argument is needed because otherwise
121 ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
122 ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
123 `(#:configure-flags
124 (list (string-append "--with-gpg-error-prefix="
e0932742 125 (assoc-ref %build-inputs "libgpg-error-host")))))
40fed2d8 126 (outputs '("out" "debug"))
72fb1b24 127 (home-page "https://gnupg.org/")
f50d2669 128 (synopsis "Cryptographic function library")
8d1939e4 129 (description
a22dc0c4
LC
130 "Libgcrypt is a general-purpose cryptographic library. It provides the
131standard cryptographic building blocks such as symmetric ciphers, hash
132algorithms, public key algorithms, large integer functions and random number
133generation.")
63e8bb12
LC
134 (license license:lgpl2.0+)
135 (properties '((ftp-server . "ftp.gnupg.org")
136 (ftp-directory . "/gcrypt/libgcrypt")))))
8d1939e4
LC
137
138(define-public libassuan
139 (package
140 (name "libassuan")
0988191f 141 (version "2.5.3")
8d1939e4
LC
142 (source
143 (origin
87f5d366 144 (method url-fetch)
0db342a5 145 (uri (string-append "mirror://gnupg/libassuan/libassuan-"
8d1939e4
LC
146 version ".tar.bz2"))
147 (sha256
148 (base32
0988191f 149 "00p7cpvzf0q3qwcgg51r9d0vbab4qga2xi8wpk2fgd36710b1g4i"))))
8d1939e4
LC
150 (build-system gnu-build-system)
151 (propagated-inputs
5965b083
LF
152 `(("libgpg-error" ,libgpg-error)
153 ("pth" ,pth)))
72fb1b24 154 (home-page "https://gnupg.org")
8d1939e4 155 (synopsis
35b9e423 156 "IPC library used by GnuPG and related software")
8d1939e4
LC
157 (description
158 "Libassuan is a small library implementing the so-called Assuan
159protocol. This protocol is used for IPC between most newer
160GnuPG components. Both, server and client side functions are
161provided.")
63e8bb12
LC
162 (license license:lgpl2.0+)
163 (properties '((ftp-server . "ftp.gnupg.org")
164 (ftp-directory . "/gcrypt/libassuan")))))
8d1939e4
LC
165
166(define-public libksba
167 (package
168 (name "libksba")
c95f7160 169 (version "1.3.5")
8d1939e4
LC
170 (source
171 (origin
87f5d366 172 (method url-fetch)
8d1939e4 173 (uri (string-append
0db342a5 174 "mirror://gnupg/libksba/libksba-"
8d1939e4
LC
175 version ".tar.bz2"))
176 (sha256
177 (base32
c95f7160 178 "0h53q4sns1jz1pkmhcz5wp9qrfn9f5g9i3vjv6dafwzzlvblyi21"))))
8d1939e4
LC
179 (build-system gnu-build-system)
180 (propagated-inputs
181 `(("libgpg-error" ,libgpg-error)))
e766f699
JD
182 (native-inputs
183 `(("libgpg-error" ,libgpg-error)))
184 (arguments
185 `(#:configure-flags
186 (list ,@(if (%current-target-system)
187 '("CC_FOR_BUILD=gcc")
188 '())
189 (string-append "--with-gpg-error-prefix="
190 (assoc-ref %build-inputs "libgpg-error")))))
72fb1b24 191 (home-page "https://www.gnupg.org")
35b9e423 192 (synopsis "CMS and X.509 access library")
8d1939e4
LC
193 (description
194 "KSBA (pronounced Kasbah) is a library to make X.509 certificates
195as well as the CMS easily accessible by other applications. Both
196specifications are building blocks of S/MIME and TLS.")
63e8bb12
LC
197 (license license:gpl3+)
198 (properties '((ftp-server . "ftp.gnupg.org")
199 (ftp-directory . "/gcrypt/libksba")))))
8d1939e4 200
c18ea90f
AE
201(define-public npth
202 (package
203 (name "npth")
f48a9d4a 204 (version "1.5")
c18ea90f
AE
205 (source
206 (origin
207 (method url-fetch)
89c83e8c 208 (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2"))
c18ea90f
AE
209 (sha256
210 (base32
f48a9d4a 211 "1hmkkp6vzyrh8v01c2ynzf9vwikyagp7p1lxhbnr4ysk3w66jji9"))))
c18ea90f 212 (build-system gnu-build-system)
72fb1b24 213 (home-page "https://www.gnupg.org")
c18ea90f
AE
214 (synopsis "Non-preemptive thread library")
215 (description
216 "Npth is a library to provide the GNU Pth API and thus a non-preemptive
217threads implementation.
218
219In contrast to GNU Pth is is based on the system's standard threads
220implementation. This allows the use of libraries which are not
221compatible to GNU Pth.")
07157e8a 222 (license (list license:lgpl3+ license:gpl2+)))) ; dual license
c18ea90f 223
8d1939e4
LC
224(define-public gnupg
225 (package
226 (name "gnupg")
0abafc46 227 (version "2.2.16")
58970d6a
LC
228 (source (origin
229 (method url-fetch)
230 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
231 ".tar.bz2"))
232 (sha256
233 (base32
0abafc46 234 "1jqlzp9b3kpfp1dkjqskm67jjrhvf9nh3lzf45321p7m9d2qvgkc"))))
8d1939e4 235 (build-system gnu-build-system)
08fa45b1
MW
236 (native-inputs
237 `(("pkg-config" ,pkg-config)))
8d1939e4 238 (inputs
f02d254a 239 `(("gnutls" ,gnutls)
8d1939e4
LC
240 ("libassuan" ,libassuan)
241 ("libgcrypt" ,libgcrypt)
01e11826 242 ("libgpg-error" ,libgpg-error)
8d1939e4 243 ("libksba" ,libksba)
cd064df7 244 ("npth" ,npth)
01e11826 245 ("openldap" ,openldap)
cd9ed6c1 246 ("pcsc-lite" ,pcsc-lite)
2d12284d
EF
247 ("readline" ,readline)
248 ("sqlite" ,sqlite)
249 ("zlib" ,zlib)))
30e9cbb4 250 (arguments
10756b9e 251 `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg`
f11275c9
LF
252 ;; executable in its installation directory in
253 ;; /gnu/store before it has been installed.
e184de57
EF
254 "--enable-gnupg-builddir-envvar"
255 "--enable-all-tests")
163708a6 256 #:phases
45477c6a 257 (modify-phases %standard-phases
cd9ed6c1
MG
258 (add-before 'configure 'patch-paths
259 (lambda* (#:key inputs #:allow-other-keys)
cd9ed6c1
MG
260 (substitute* "scd/scdaemon.c"
261 (("\"(libpcsclite\\.so[^\"]*)\"" _ name)
262 (string-append "\"" (assoc-ref inputs "pcsc-lite")
263 "/lib/" name "\"")))
7deb5ee8
LF
264 #t))
265 (add-after 'build 'patch-scheme-tests
266 (lambda _
267 (substitute* (find-files "tests" ".\\.scm$")
268 (("/usr/bin/env gpgscm")
764c5662
LF
269 (string-append (getcwd) "/tests/gpgscm/gpgscm")))
270 #t))
f11275c9 271 (add-before 'build 'patch-test-paths
92cc6a58
EF
272 (lambda _
273 (substitute* '("tests/inittests"
274 "tests/pkits/inittests"
275 "tests/Makefile"
276 "tests/pkits/common.sh"
277 "tests/pkits/Makefile")
278 (("/bin/pwd") (which "pwd")))
279 (substitute* "common/t-exectool.c"
280 (("/bin/cat") (which "cat"))
281 (("/bin/true") (which "true"))
282 (("/bin/false") (which "false")))
283 #t)))))
72fb1b24 284 (home-page "https://gnupg.org/")
f50d2669 285 (synopsis "GNU Privacy Guard")
8d1939e4 286 (description
a22dc0c4
LC
287 "The GNU Privacy Guard is a complete implementation of the OpenPGP
288standard. It is used to encrypt and sign data and communication. It
289features powerful key management and the ability to access public key
79c311b8 290servers. It includes several libraries: libassuan (IPC between GnuPG
58970d6a
LC
291components), libgpg-error (centralized GnuPG error values), and
292libskba (working with X.509 certificates and CMS data).")
63e8bb12
LC
293 (license license:gpl3+)
294 (properties '((ftp-server . "ftp.gnupg.org")
295 (ftp-directory . "/gcrypt/gnupg")))))
ea4d96c6 296
cd064df7
AE
297(define-public gnupg-2.0
298 (package (inherit gnupg)
b5afe6f0 299 (version "2.0.30")
cd064df7
AE
300 (source (origin
301 (method url-fetch)
302 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
303 ".tar.bz2"))
304 (sha256
305 (base32
b5afe6f0 306 "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3"))))
08fa45b1 307 (native-inputs '())
cd064df7 308 (inputs
7b40296f
EF
309 `(("adns" ,adns)
310 ("bzip2" ,bzip2)
cd064df7
AE
311 ("curl" ,curl)
312 ("libassuan" ,libassuan)
313 ("libgcrypt" ,libgcrypt)
314 ("libgpg-error" ,libgpg-error)
315 ("libksba" ,libksba)
316 ("pth" ,pth)
317 ("openldap" ,openldap)
07157e8a 318 ("zlib" ,zlib)
cd064df7
AE
319 ("readline" ,readline)))
320 (arguments
321 `(#:phases
80c47cf8 322 (modify-phases %standard-phases
6b547d22
LC
323 (add-before 'configure 'patch-config-files
324 (lambda _
325 (substitute* "tests/openpgp/Makefile.in"
3a534f42 326 (("/bin/sh") (which "sh")))
bc85b127
LC
327 #t))
328 (add-after 'install 'rename-v2-commands
329 (lambda* (#:key outputs #:allow-other-keys)
330 ;; Upstream suggests removing the trailing '2' from command names:
331 ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>.
332 (let ((out (assoc-ref outputs "out")))
333 (with-directory-excursion (string-append out "/bin")
334 (rename-file "gpgv2" "gpgv")
335 (rename-file "gpg2" "gpg")
336
337 ;; Keep the old name around to ease transition.
338 (symlink "gpgv" "gpgv2")
339 (symlink "gpg" "gpg2")
806e891e
LF
340 #t)))))))
341 (properties `((superseded . ,gnupg)))))
cd064df7 342
5249045c
MW
343(define-public gnupg-1
344 (package (inherit gnupg)
b6c675c6 345 (version "1.4.23")
58970d6a
LC
346 (source (origin
347 (method url-fetch)
348 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
349 ".tar.bz2"))
350 (sha256
351 (base32
b6c675c6 352 "1fkq4sqldvf6a25mm2qz95swv1qjg464736091w51djiwqbjyin9"))))
08fa45b1 353 (native-inputs '())
5249045c 354 (inputs
07157e8a
LC
355 `(("zlib" ,zlib)
356 ("bzip2" ,bzip2)
5249045c
MW
357 ("curl" ,curl)
358 ("readline" ,readline)
359 ("libgpg-error" ,libgpg-error)))
360 (arguments
29d90757
LF
361 `(#:phases
362 (modify-phases %standard-phases
363 (add-after 'unpack 'patch-check-sh
364 (lambda _
365 (substitute* "checks/Makefile.in"
b17f7238
MW
366 (("/bin/sh") (which "sh")))
367 #t)))))))
5249045c 368
09d5c166
AE
369(define-public gpgme
370 (package
371 (name "gpgme")
cbeb8913 372 (version "1.13.0")
09d5c166
AE
373 (source
374 (origin
375 (method url-fetch)
376 (uri (string-append "mirror://gnupg/gpgme/gpgme-" version
377 ".tar.bz2"))
378 (sha256
379 (base32
cbeb8913 380 "0c6676g0yhfsmy32i1dgwh5cx0ja8vhcqf4k08zad177m53kxcnl"))))
09d5c166 381 (build-system gnu-build-system)
b3ecb3fe
LF
382 (native-inputs
383 `(("gnupg" ,gnupg)))
68640c3c
MW
384 (propagated-inputs
385 ;; Needs to be propagated because gpgme.h includes gpg-error.h.
7de44023 386 `(("libgpg-error" ,libgpg-error)))
09d5c166 387 (inputs
b3ecb3fe 388 `(("libassuan" ,libassuan)))
72fb1b24 389 (home-page "https://www.gnupg.org/related_software/gpgme/")
35b9e423 390 (synopsis "Library providing simplified access to GnuPG functionality")
09d5c166
AE
391 (description
392 "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
393easier for applications. It provides a High-Level Crypto API for encryption,
394decryption, signing, signature verification and key management. Currently
395it uses GnuPG as its backend but the API isn't restricted to this engine.
396
397Because the direct use of GnuPG from an application can be a complicated
398programming task, it is suggested that all software should try to use GPGME
399instead. This way bug fixes or improvements can be done at a central place
400and every application benefits from this.")
07157e8a 401 (license license:lgpl2.1+)))
09d5c166 402
6b982a78
HG
403(define-public qgpgme
404 (package
405 (inherit gpgme)
406 (name "qgpgme")
407 (arguments
408 `(#:phases
409 (modify-phases %standard-phases
410 (add-before 'build 'chdir-and-symlink
411 (lambda* (#:key inputs #:allow-other-keys)
412 (let ((gpgme (assoc-ref inputs "gpgme")))
413 (symlink (string-append gpgme "/lib/libgpgmepp.la")
414 "lang/cpp/src/libgpgmepp.la")
415 (symlink (string-append gpgme "/lib/libgpgme.la")
416 "src/libgpgme.la"))
417 (chdir "lang/qt")
418 #t)))))
419 (native-inputs
0684f1d6
LF
420 `(("pkg-config" ,pkg-config)
421 ,@(package-native-inputs gpgme)))
6b982a78
HG
422 (inputs
423 `(("gpgme" ,gpgme)
424 ("qtbase" ,qtbase)
425 ,@(package-inputs gpgme)))
426 (synopsis "Qt API bindings for gpgme")
427 (description "QGpgme provides a very high level Qt API around GpgMEpp.
428
429QGpgME was originally developed as part of libkleo and incorporated into
430gpgpme starting with version 1.7.")
431 (license license:gpl2+))) ;; Note: this differs from gpgme
432
b0cb92b2
LC
433(define-public guile-gcrypt
434 (package
435 (name "guile-gcrypt")
436 (version "0.1.0")
437 (home-page "https://notabug.org/cwebber/guile-gcrypt")
438 (source (origin
439 (method git-fetch)
440 (uri (git-reference
441 (url (string-append home-page ".git"))
442 (commit (string-append "v" version))))
443 (sha256
444 (base32
445 "1lhgh3105yi0ggrjsjibv4wp1ipz8s17pa820hk2wln3rc04wpvf"))
446 (file-name (string-append name "-" version "-checkout"))))
447 (build-system gnu-build-system)
448 (native-inputs
449 `(("pkg-config" ,pkg-config)
450 ("autoconf" ,autoconf)
451 ("automake" ,automake)
452 ("texinfo" ,texinfo)))
453 (inputs
454 `(("guile" ,guile-2.2)
455 ("libgcrypt" ,libgcrypt)))
b0cb92b2
LC
456 (synopsis "Cryptography library for Guile using Libgcrypt")
457 (description
458 "Guile-Gcrypt provides a Guile 2.x interface to a subset of the
459GNU Libgcrypt crytographic library. It provides modules for cryptographic
460hash functions, message authentication codes (MAC), public-key cryptography,
461strong randomness, and more. It is implemented using the foreign function
462interface (FFI) of Guile.")
463 (license license:gpl3+)))
464
c8e3651a
EB
465(define-public guile2.0-gcrypt
466 (package (inherit guile-gcrypt)
467 (name "guile2.0-gcrypt")
468 (inputs
469 `(("guile" ,guile-2.0)
470 ,@(alist-delete "guile" (package-inputs guile-gcrypt))))))
471
e3dd1f0c
LF
472(define-public python-gpg
473 (package
474 (name "python-gpg")
fb4fcfab 475 (version "1.10.0")
e3dd1f0c
LF
476 (source (origin
477 (method url-fetch)
478 (uri (pypi-uri "gpg" version))
479 (sha256
480 (base32
fb4fcfab 481 "1ji3ynhp36m1ccx7bmaq75dhij9frpn19v9mpi4aajn8csl194il"))))
e3dd1f0c
LF
482 (build-system python-build-system)
483 (arguments
fb4fcfab
EF
484 '(#:phases
485 (modify-phases %standard-phases
486 (add-before 'build 'set-environment
487 (lambda _
488 (substitute* "setup.py"
489 (("cc") (which "gcc")))
490 #t)))
491 #:tests? #f)) ; No test suite.
e3dd1f0c
LF
492 (inputs
493 `(("gpgme" ,gpgme)))
494 (native-inputs
495 `(("swig" ,swig)))
496 (home-page (package-home-page gpgme))
497 (synopsis "Python bindings for GPGME GnuPG cryptography library")
498 (description "This package provides Python bindings to the GPGME GnuPG
499cryptographic library. It is developed in the GPGME source code, and then
500distributed separately.")
501 (license license:lgpl2.1+)))
502
503(define-public python2-gpg
504 (package-with-python2 python-gpg))
505
a05d1d82
CAW
506(define-public python-pygpgme
507 (package
508 (name "python-pygpgme")
509 (version "0.3")
510 (source
511 (origin
512 (method url-fetch)
513 (uri (pypi-uri "pygpgme" version))
514 (sha256
515 (base32
516 "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z"))
517 ;; Unfortunately, we have to disable some tests due to some gpg-agent
518 ;; goofiness... see:
519 ;; https://bugs.launchpad.net/pygpgme/+bug/999949
1c9cea74
LF
520 (patches (search-patches "pygpgme-disable-problematic-tests.patch"
521 "python-pygpgme-fix-pinentry-tests.patch"))))
a05d1d82
CAW
522 (arguments
523 `(#:phases
524 (modify-phases %standard-phases
525 (add-before 'build 'make-build
9a425d68 526 (lambda _ (invoke "make" "build")))
a05d1d82 527 (replace 'check
9a425d68 528 (lambda _ (invoke "make" "check"))))))
a05d1d82 529 (build-system python-build-system)
e6f63412
LF
530 (native-inputs
531 `(("gnupg" ,gnupg-1)))
a05d1d82 532 (inputs
e6f63412 533 `(("gpgme" ,gpgme)))
a05d1d82
CAW
534 (home-page "https://launchpad.net/pygpgme")
535 (synopsis "Python module for working with OpenPGP messages")
536 (description
537 "PyGPGME is a Python module that lets you sign, verify, encrypt and
538decrypt messages using the OpenPGP format by making use of GPGME.")
539 (license license:lgpl2.1+)))
540
541(define-public python2-pygpgme
5c31f4aa 542 (package-with-python2 python-pygpgme))
a05d1d82 543
22af9029
RW
544(define-public python-gnupg
545 (package
546 (name "python-gnupg")
ff76a1e9 547 (version "0.4.3")
22af9029
RW
548 (source
549 (origin
550 (method url-fetch)
5b669ba1 551 (uri (pypi-uri "python-gnupg" version))
22af9029
RW
552 (sha256
553 (base32
ff76a1e9 554 "03dc8whhvk7ccspbk8vzfhkxli8cd9zfbss5p597g4jldgy8s59d"))))
22af9029
RW
555 (build-system python-build-system)
556 (arguments
557 `(#:phases
558 (modify-phases %standard-phases
559 (replace 'check
ec089763
RW
560 (lambda _
561 (substitute* "test_gnupg.py"
ec089763
RW
562 ;; Unsure why this test fails.
563 (("'test_search_keys'") "True")
564 (("def test_search_keys") "def disabled__search_keys"))
565 (setenv "USERNAME" "guixbuilder")
566 ;; The doctests are extremely slow and sometimes time out,
567 ;; so we disable them.
b262aba7
TGR
568 (invoke "python"
569 "test_gnupg.py" "--no-doctests"))))))
22af9029
RW
570 (native-inputs
571 `(("gnupg" ,gnupg-1)))
72fb1b24 572 (home-page "https://packages.python.org/python-gnupg/index.html")
22af9029
RW
573 (synopsis "Wrapper for the GNU Privacy Guard")
574 (description
575 "This module allows easy access to GnuPG’s key management, encryption
576and signature functionality from Python programs.")
577 (license license:bsd-3)))
578
579(define-public python2-gnupg
580 (package-with-python2 python-gnupg))
581
34ef5755
CB
582(define-public perl-gnupg-interface
583 (package
584 (name "perl-gnupg-interface")
585 (version "0.52")
9c2d0a03
RW
586 (source (origin
587 (method url-fetch)
588 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
589 "GnuPG-Interface-" version ".tar.gz"))
590 (sha256
591 (base32
592 "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4"))))
34ef5755
CB
593 (build-system perl-build-system)
594 (arguments
9c2d0a03
RW
595 `(#:phases
596 (modify-phases %standard-phases
597 ;; FIXME: This test fails for unknown reasons
598 (add-after 'unpack 'delete-broken-test
599 (lambda _
600 (delete-file "t/encrypt_symmetrically.t")
601 #t)))))
34ef5755 602 (inputs
9c2d0a03 603 `(("gnupg" ,gnupg-1)))
34ef5755
CB
604 (propagated-inputs
605 `(("perl-moo" ,perl-moo)
9c2d0a03
RW
606 ("perl-moox-handlesvia" ,perl-moox-handlesvia)
607 ("perl-moox-late" ,perl-moox-late)))
608 (native-inputs
609 `(("which" ,which)
610 ("perl-module-install" ,perl-module-install)))
9aba9b12 611 (home-page "https://metacpan.org/release/GnuPG-Interface")
34ef5755 612 (synopsis "Perl interface to GnuPG")
9c2d0a03
RW
613 (description "@code{GnuPG::Interface} and its associated modules are
614designed to provide an object-oriented method for interacting with GnuPG,
615being able to perform functions such as but not limited to encrypting,
616signing, decryption, verification, and key-listing parsing.")
34ef5755
CB
617 (license license:perl-license)))
618
ea4d96c6 619(define-public pius
cda0ef04
TS
620 (package
621 (name "pius")
4f4b37df 622 (version "2.2.7")
cda0ef04
TS
623 (source (origin
624 (method url-fetch)
625 (uri (string-append
626 "https://github.com/jaymzh/pius/releases/download/v"
627 version "/pius-" version ".tar.bz2"))
628 (sha256
629 (base32
4f4b37df 630 "1nsl7czicv95j0gfz4s82ys3g3h2mwr6cq3ilid8bpz3iy7z4ipy"))))
cda0ef04 631 (build-system python-build-system)
4f4b37df 632 (inputs `(("perl" ,perl) ; for 'pius-party-worksheet'
fcb1dd99
AE
633 ("gpg" ,gnupg)
634 ("python-six" ,python2-six)))
cda0ef04
TS
635 (arguments
636 `(#:tests? #f
4f4b37df 637 #:python ,python-2 ; uses the Python 2 'print' syntax
cda0ef04
TS
638 #:phases
639 (modify-phases %standard-phases
640 (add-before
641 'build 'set-gpg-file-name
642 (lambda* (#:key inputs outputs #:allow-other-keys)
643 (let* ((gpg (string-append (assoc-ref inputs "gpg")
644 "/bin/gpg")))
645 (substitute* "libpius/constants.py"
646 (("/usr/bin/gpg2") gpg))
647 #t))))))
648 (synopsis "Programs to simplify GnuPG key signing")
649 (description
650 "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning
35b9e423
EB
651parties. It is the main utility and makes it possible to quickly and easily
652sign each UID on a set of PGP keys. It is designed to take the pain out of
ea4d96c6
AE
653the sign-all-the-keys part of PGP Keysigning Party while adding security
654to the process.
655
656pius-keyring-mgr and pius-party-worksheet help organisers of
657PGP keysigning parties.")
cda0ef04
TS
658 (license license:gpl2)
659 (home-page "https://www.phildev.net/pius/index.shtml")))
96be765c
AE
660
661(define-public signing-party
33678041
EF
662 (package
663 (name "signing-party")
664 (version "2.7")
665 (home-page "https://salsa.debian.org/debian/signing-party")
666 (source (origin
667 (method git-fetch)
668 (uri (git-reference
669 (url home-page)
670 (commit (string-append "release-" version))))
671 (file-name (git-file-name name version))
672 (sha256
673 (base32
674 "1gx9017wag4bgc0h7kca9n3jwwdm7z77yv3viayhg62flbwkvbgb"))))
675 (build-system gnu-build-system)
676 (native-inputs
677 `(("autoconf" ,autoconf-wrapper)
678 ("automake" ,automake)))
679 (inputs `(("perl" ,perl)
680 ("perl-text-template" ,perl-text-template)
681 ("perl-mime-tools" ,perl-mime-tools)
682 ("perl-gnupg-interface" ,perl-gnupg-interface)
683 ("perl-net-idn-encode" ,perl-net-idn-encode)
684 ("libmd" ,libmd)))
685 (arguments
686 `(#:tests? #f
687 #:phases
688 (modify-phases %standard-phases
689 (replace 'configure
690 (lambda* (#:key outputs #:allow-other-keys)
691 (let ((out (assoc-ref outputs "out")))
692 (substitute* "keyanalyze/Makefile"
693 (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
694 (substitute* "keyanalyze/Makefile"
695 (("\\./configure") (string-append "./configure --prefix=" out)))
696 (substitute* "gpgwrap/Makefile"
697 (("\\} clean")
698 (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
699 out "/bin/gpgwrap\n")))
700 (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
701 "keylookup/Makefile" "sig2dot/Makefile"
702 "springgraph/Makefile")
703 (("/usr") out))
704 (setenv "CONFIG_SHELL" (which "sh")))
705 #t))
706 (replace 'install
707 (lambda* (#:key outputs #:allow-other-keys #:rest args)
708 (let ((out (assoc-ref outputs "out"))
709 (install (assoc-ref %standard-phases 'install)))
710 (apply install args)
711 (for-each
712 (lambda (dir file)
713 (copy-file (string-append dir "/" file)
714 (string-append out "/bin/" file)))
715 '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
716 "gpglist" "gpg-mailkeys" "gpgparticipants")
717 '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
718 "gpglist" "gpg-mailkeys" "gpgparticipants"))
719 (for-each
720 (lambda (dir file)
721 (copy-file (string-append dir "/" file)
722 (string-append out "/share/man/man1/" file)))
723 '("caff" "caff" "caff" "gpgdir"
724 "gpg-key2ps" "gpglist" "gpg-mailkeys"
725 "gpgparticipants" "gpgsigs" "gpgwrap/doc"
726 "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
727 '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
728 "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
729 "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
730 "process_keys.1" "pgpring.1" "keyanalyze.1")))
731 #t))
732 (add-after 'install 'wrap-programs
733 (lambda* (#:key outputs #:allow-other-keys)
734 (let* ((out (assoc-ref outputs "out")))
735 (wrap-program
736 (string-append out "/bin/caff")
737 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))
738 #t)))))
739 (synopsis "Collection of scripts for simplifying gnupg key signing")
740 (description
741 "Signing-party is a collection for all kinds of PGP/GnuPG related things,
96be765c 742including tools for signing keys, keyring analysis, and party preparation.
7ac53403
EF
743@enumerate
744@item caff: CA - Fire and Forget signs and mails a key
745@item pgp-clean: removes all non-self signatures from key
746@item pgp-fixkey: removes broken packets from keys
747@item gpg-mailkeys: simply mail out a signed key to its owner
748@item gpg-key2ps: generate PostScript file with fingerprint paper strips
749@item gpgdir: recursive directory encryption tool
750@item gpglist: show who signed which of your UIDs
751@item gpgsigs: annotates list of GnuPG keys with already done signatures
752@item gpgparticipants: create list of party participants for the organiser
753@item gpgwrap: a passphrase wrapper
754@item keyanalyze: minimum signing distance (MSD) analysis on keyrings
755@item keylookup: ncurses wrapper around gpg --search
756@item sig2dot: converts a list of GnuPG signatures to a .dot file
757@item springgraph: creates a graph from a .dot file
758@end enumerate")
33678041
EF
759 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
760 ;; and caff and gpgsigs: bsd-3, see
761 ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
762 (license license:gpl2)))
40d806af 763
c607b701 764(define-public pinentry-tty
40d806af 765 (package
c607b701 766 (name "pinentry-tty")
4498cbd7 767 (version "1.1.0")
40d806af
LC
768 (source (origin
769 (method url-fetch)
770 (uri (string-append "mirror://gnupg/pinentry/pinentry-"
771 version ".tar.bz2"))
772 (sha256
773 (base32
4498cbd7 774 "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8"))))
40d806af 775 (build-system gnu-build-system)
c607b701
EF
776 (arguments
777 `(#:configure-flags '("--enable-pinentry-tty")))
40d806af
LC
778 (inputs
779 `(("ncurses" ,ncurses)
18ed97d6 780 ("libassuan" ,libassuan)
c607b701 781 ("libsecret" ,libsecret "out")))
40d806af
LC
782 (native-inputs
783 `(("pkg-config" ,pkg-config)))
547cb17d 784 (home-page "https://gnupg.org/aegypten2/")
40d806af
LC
785 (synopsis "GnuPG's interface to passphrase input")
786 (description
c607b701 787 "Pinentry provides a console that allows users to enter a passphrase when
9614897b 788@code{gpg} is run and needs it.")
f8457932
LC
789 (license license:gpl2+)
790 (properties '((ftp-server . "ftp.gnupg.org")
791 (ftp-directory . "/gcrypt/pinentry")
792 (upstream-name . "pinentry")))))
4380a7b4 793
abc4a332
PN
794(define-public pinentry-emacs
795 (package
796 (inherit pinentry-tty)
797 (name "pinentry-emacs")
798 (arguments
799 `(#:configure-flags '("--enable-pinentry-emacs")))
800 (description
801 "Pinentry provides a console and an Emacs interface that allows users to
802enter a passphrase when required by @code{gpg} or other software.")))
803
c607b701
EF
804(define-public pinentry-gtk2
805 (package
806 (inherit pinentry-tty)
807 (name "pinentry-gtk2")
808 (inputs
809 `(("gtk+" ,gtk+-2)
810 ("glib" ,glib)
811 ,@(package-inputs pinentry-tty)))
812 (description
813 "Pinentry provides a console and a GTK+ GUI that allows users to enter a
9614897b 814passphrase when @code{gpg} is run and needs it.")))
c607b701 815
41edb23f
CB
816(define-public pinentry-gnome3
817 (package
818 (inherit pinentry-tty)
819 (name "pinentry-gnome3")
820 (inputs
821 `(("gtk+" ,gtk+-2)
822 ("gcr" ,gcr)
823 ("glib" ,glib)
824 ,@(package-inputs pinentry-tty)))
825 (arguments
826 `(#:configure-flags '("--enable-pinentry-gnome3")))
827 (description
828 "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3
829that allows users to enter a passphrase when required by @code{gpg} or other
830software.")))
c607b701 831
54df7558
EF
832(define-public pinentry-qt
833 (package
834 (inherit pinentry-tty)
835 (name "pinentry-qt")
836 (inputs
e2788cef 837 `(("qtbase" ,qtbase)
54df7558 838 ,@(package-inputs pinentry-tty)))
984ad832
DC
839 (arguments
840 `(#:configure-flags '("CXXFLAGS=-std=gnu++11")))
54df7558
EF
841 (description
842 "Pinentry provides a console and a Qt GUI that allows users to enter a
9614897b 843passphrase when @code{gpg} is run and needs it.")))
54df7558 844
5e369f8a
EF
845(define-public pinentry-efl
846 (package
847 (inherit pinentry-tty)
848 (name "pinentry-efl")
849 (source
850 (origin
851 (inherit (package-source pinentry-tty))
852 (patches (search-patches "pinentry-efl.patch"))))
853 (arguments
854 '(#:configure-flags '("--enable-pinentry-efl")
855 #:phases
856 (modify-phases %standard-phases
857 (replace 'bootstrap
858 (lambda _
859 (invoke "sh" "autogen.sh"))))))
860 (native-inputs
861 `(("autoconf" ,autoconf)
862 ("automake" ,automake)
863 ("gettext" ,gettext-minimal)
864 ,@(package-native-inputs pinentry-tty)))
865 (inputs
866 `(("efl" ,efl)
867 ,@(package-inputs pinentry-tty)))
868 (description
869 "Pinentry provides a console and a graphical interface for the
870@dfn{Enlightenment Foundation Libraries} (EFL) that allows users to enter a
871passphrase when @code{gpg} is run and needs it.")))
872
940f8d39
EF
873(define-public pinentry
874 (package (inherit pinentry-gtk2)
875 (name "pinentry")))
876
4380a7b4
EB
877(define-public paperkey
878 (package
879 (name "paperkey")
ae9877fe 880 (version "1.5")
4380a7b4
EB
881 (source (origin
882 (method url-fetch)
883 (uri (string-append "http://www.jabberwocky.com/"
884 "software/paperkey/paperkey-"
885 version ".tar.gz"))
886 (sha256
887 (base32
ae9877fe 888 "1prd2jaf4zjad3xhv160hmi5n408ssljfg7iz90jxs9w111pjwy4"))))
4380a7b4
EB
889 (build-system gnu-build-system)
890 (arguments
891 `(#:phases
e379d85c
EF
892 (modify-phases %standard-phases
893 (add-before 'check 'patch-check-scripts
894 (lambda _
895 (substitute* '("checks/roundtrip.sh"
896 "checks/roundtrip-raw.sh")
897 (("/bin/echo") "echo"))
898 #t)))))
4380a7b4
EB
899 (home-page "http://www.jabberwocky.com/software/paperkey/")
900 (synopsis "Backup OpenPGP keys to paper")
901 (description
902 "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key
903for printing with paper and ink, which have amazingly long retention
904qualities. To reconstruct a secret key, you re-enter those
905bytes (whether by hand, OCR, QR code, or the like) and paperkey can use
906them to transform your existing public key into a secret key.")
07157e8a 907 (license license:gpl2+)))
8384499c 908
909(define-public gpa
910 (package
911 (name "gpa")
912 (version "0.9.10")
913 (source (origin
914 (method url-fetch)
915 (uri (string-append "mirror://gnupg/gpa/"
916 name "-" version ".tar.bz2"))
917 (sha256
918 (base32
919 "09xphbi2456qynwqq5n0yh0zdmdi2ggrj3wk4hsyh5lrzlvcrff3"))))
920 (build-system gnu-build-system)
921 (native-inputs
922 `(("pkg-config" ,pkg-config)))
923 (inputs
924 `(("gnupg" ,gnupg)
925 ("gpgme" ,gpgme)
926 ("libassuan" ,libassuan)
927 ("libgpg-error" ,libgpg-error)
928 ("gtk+-2" ,gtk+-2)))
929 (home-page "https://gnupg.org/software/gpa/")
930 (synopsis "Graphical user interface for GnuPG")
931 (description
932 "GPA, the GNU Privacy Assistant, is a graphical user interface for
933@uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign
934files, to verify signatures, and to manage the private and public keys.")
935 (license license:gpl3+)))
5aeb6611 936
15b08442
P
937(define-public parcimonie
938 (package
939 (name "parcimonie")
940 (version "0.10.3")
941 (source (origin
942 (method url-fetch)
9062fde4
EF
943 (uri (string-append "https://gaffer.boum.org/intrigeri/files/"
944 "parcimonie/App-Parcimonie-"
15b08442
P
945 version ".tar.gz"))
946 (sha256
947 (base32
948 "1kf891117s1f3k6lxvbjdb21va9gxh29vlp9bd664ssgw266rcyb"))))
949 (build-system perl-build-system)
950 (inputs
951 `(("gnupg" ,gnupg-1) ; This is the version used by perl-gnupg-interface
952 ("perl-config-general" ,perl-config-general)
953 ("perl-clone" ,perl-clone)
954 ("perl-data" ,perl-data)
955 ("perl-exporter-tiny" ,perl-exporter-tiny)
956 ("perl-file-homedir" ,perl-file-homedir)
957 ("perl-file-sharedir" ,perl-file-sharedir)
958 ("perl-file-which" ,perl-file-which)
959 ("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive)
960 ("perl-gnupg-interface" ,perl-gnupg-interface)
961 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
962 ("perl-list-moreutils" ,perl-list-moreutils)
963 ("perl-libintl-perl" ,perl-libintl-perl) ; Locale::TextDomain
964 ("perl-lwp-online" ,perl-lwp-online)
965 ("perl-module-build" ,perl-module-build)
966 ("perl-module-pluggable-object" ,perl-module-pluggable)
967 ("perl-moo" ,perl-moo)
968 ("perl-moox-handlesvia" ,perl-moox-handlesvia)
969 ("perl-moox-late" ,perl-moox-late)
970 ("perl-moox-options" ,perl-moox-options)
971 ("perl-namespace-clean" ,perl-namespace-clean)
972 ("perl-net-dbus" ,perl-net-dbus)
973 ("perl-net-dbus-glib" ,perl-net-dbus-glib)
974 ("perl-path-tiny" ,perl-path-tiny)
975 ("perl-test-most" ,perl-test-most)
976 ("perl-test-trap" ,perl-test-trap)
977 ("perl-time-duration" ,perl-time-duration)
978 ("perl-time-duration-parse" ,perl-time-duration-parse)
979 ("perl-try-tiny" ,perl-try-tiny)
980 ("perl-type-tiny" ,perl-type-tiny)
981 ("perl-types-path-tiny" ,perl-types-path-tiny)
982 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
983 ("perl-xml-parser" ,perl-xml-parser)
984 ("perl-xml-twig" ,perl-xml-twig)
985 ("torsocks" ,torsocks)))
986 (arguments
987 `(#:phases
988 (modify-phases %standard-phases
989 ;; Needed for using gpg-connect-agent during tests.
990 (add-before 'check 'set-HOME
991 (lambda _ (setenv "HOME" "/tmp") #t))
992 (add-before 'install 'fix-references
993 (lambda* (#:key inputs outputs #:allow-other-keys)
994 (substitute* "lib/App/Parcimonie/GnuPG/Interface.pm"
995 (("gpg2") "gpg")
996 ;; Skip check whether dependencies are in the PATH
997 (("defined which.*") "")
998 (("call\\('parcimonie-torified-gpg'\\)")
999 (string-append "call('" (assoc-ref outputs "out")
1000 "/bin/parcimonie-torified-gpg')")))
1001 (substitute* "bin/parcimonie-torified-gpg"
1002 (("torsocks") (string-append (assoc-ref inputs "torsocks")
1003 "/bin/torsocks")))
1004 #t))
1005 (add-after 'install 'wrap-program
1006 (lambda* (#:key inputs outputs #:allow-other-keys)
1007 (let* ((out (assoc-ref outputs "out"))
1008 (perllib (string-append out "/lib/perl5/site_perl/"
1009 ,(package-version perl))))
1010 (wrap-program (string-append out "/bin/parcimonie")
1011 `("PERL5LIB" ":"
1012 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
1013 #t))))))
9062fde4 1014 (home-page "https://gaffer.boum.org/intrigeri/code/parcimonie/")
15b08442
P
1015 (synopsis "Incrementally refreshes a GnuPG keyring")
1016 (description "Parcimonie incrementaly refreshes a GnuPG keyring in a way
1017that makes it hard to correlate the keyring content to an individual, and
1018makes it hard to locate an individual based on an identifying subset of her
1019keyring content. Parcimonie is a daemon that fetches one key at a time using
1020the Tor network, waits a bit, changes the Tor circuit being used, and starts
1021over.")
1022 (license license:gpl1+)))
607d280e
EF
1023
1024(define-public jetring
1025 (package
1026 (name "jetring")
835cf37c 1027 (version "0.27")
607d280e
EF
1028 (source
1029 (origin
1030 (method url-fetch)
1031 (uri (string-append "mirror://debian/pool/main/j/" name "/"
1032 name "_" version ".tar.xz"))
1033 (sha256
1034 (base32
835cf37c 1035 "0jy0x5zj7v87xgyldlsx1knzp0mv10wzamblrw1b61i2m1ii4pxz"))))
607d280e
EF
1036 (build-system gnu-build-system)
1037 (arguments
1038 '(#:phases
1039 (modify-phases %standard-phases
1040 (delete 'configure) ; no configure script
1041 (add-before 'install 'hardlink-gnupg
1042 (lambda* (#:key inputs #:allow-other-keys)
1043 (let ((gpg (string-append (assoc-ref inputs "gnupg")
1044 "/bin/gpg")))
1045 (substitute* (find-files "." "jetring-[[:alpha:]]+$")
1046 (("gpg -") (string-append gpg " -"))
1047 (("\\\"gpg\\\"") (string-append "\"" gpg "\"")))
1048 #t)))
1049 (replace 'install
1050 (lambda* (#:key outputs #:allow-other-keys)
1051 (let* ((out (assoc-ref outputs "out"))
1052 (man (string-append out "/share/man")))
1053 (for-each (lambda (file)
1054 (install-file file (string-append out "/bin/")))
1055 (find-files "." "jetring-[[:alpha:]]+$"))
1056 (for-each (lambda (file)
1057 (install-file file (string-append man "/man1/")))
1058 (find-files "." ".*\\.1$"))
1059 (install-file "jetring.7" (string-append man "/man7/"))
1060 #t))))
1061 #:tests? #f)) ; no test phase
1062 (inputs
1063 `(("gnupg" ,gnupg)
1064 ("perl" ,perl)))
1065 (home-page "https://joeyh.name/code/jetring/")
1066 (synopsis "GnuPG keyring maintenance using changesets")
1067 (description
1068 "Jetring is a collection of tools that allow for gpg keyrings to be
1069maintained using changesets. It was developed with the Debian keyring in mind,
1070and aims to solve the problem that a gpg keyring is a binary blob that's hard
1071for multiple people to collaboratively edit.
1072
1073With jetring, changesets can be submitted, reviewed to see exactly what they
1074will do, applied, and used to build a keyring. The origin of every change made
1075to the keyring is available for auditing, and gpg signatures can be used for
1076integrity guarantees.")
1077 (license license:gpl2+)))