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