1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015, 2018 Andreas Enge <andreas@enge.fr>
4 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
5 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
6 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
7 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
10 ;;; Copyright © 2016, 2017 Nils Gillmann <ng0@n0.is>
11 ;;; Copyright © 2016 Christopher Baines <mail@cbaines.net>
12 ;;; Copyright © 2016 Mike Gerwitz <mtg@gnu.org>
13 ;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
14 ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
16 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
17 ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
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.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
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.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages gnupg)
35 #:use-module ((guix licenses) #:prefix license:)
36 #:use-module (gnu packages)
37 #:use-module (gnu packages adns)
38 #:use-module (gnu packages autotools)
39 #:use-module (gnu packages base)
40 #:use-module (gnu packages curl)
41 #:use-module (gnu packages crypto)
42 #:use-module (gnu packages emacs)
43 #:use-module (gnu packages openldap)
44 #:use-module (gnu packages perl)
45 #:use-module (gnu packages perl-check)
46 #:use-module (gnu packages pth)
47 #:use-module (gnu packages python)
48 #:use-module (gnu packages qt)
49 #:use-module (gnu packages readline)
50 #:use-module (gnu packages compression)
51 #:use-module (gnu packages databases)
52 #:use-module (gnu packages gtk)
53 #:use-module (gnu packages glib)
54 #:use-module (gnu packages gnome)
55 #:use-module (gnu packages pkg-config)
56 #:use-module (gnu packages ncurses)
57 #:use-module (gnu packages security-token)
58 #:use-module (gnu packages swig)
59 #:use-module (gnu packages tls)
60 #:use-module (gnu packages tor)
61 #:use-module (gnu packages web)
62 #:use-module (gnu packages xml)
63 #:use-module (guix packages)
64 #:use-module (guix download)
65 #:use-module (guix git-download)
66 #:use-module (guix build-system gnu)
67 #:use-module (guix build-system perl)
68 #:use-module (guix build-system python))
70 (define-public libgpg-error
77 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
81 "0jfsfnh9bxlxiwxws60yah4ybjw2hshmvqp31pri4m4h8ivrbnry"))
82 (patches (search-patches "libgpg-error-aarch64-logging-fix.patch"))))
83 (build-system gnu-build-system)
84 (home-page "https://gnupg.org")
85 (synopsis "Library of error values for GnuPG components")
87 "Libgpg-error is a small library that defines common error values
88 for all GnuPG components. Among these are GPG, GPGSM, GPGME,
89 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
90 Daemon and possibly more in the future.")
91 (license license:lgpl2.0+)
92 (properties '((ftp-server . "ftp.gnupg.org")
93 (ftp-directory . "/gcrypt/libgpg-error")))))
95 ;; Some packages (e.g. GPGME) require a newer libgpg-error to deal with
96 ;; error codes from recent GnuPG. Remove this in the next rebuild cycle.
97 (define-public libgpg-error-1.31
99 (inherit libgpg-error)
103 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
107 "1vx4nw6rxh2biy3h8n96fyr86q29h8gjl6837437i51jr4isil20"))))))
109 (define-public libgcrypt
115 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
119 "01sca9m8hm6b5v8hmqsfdjhyz013869p1f0fxw9ln52qfnp4q1n8"))))
120 (build-system gnu-build-system)
122 `(("libgpg-error-host" ,libgpg-error)))
124 ;; Needed here for the 'gpg-error' program.
125 `(("libgpg-error-native" ,libgpg-error)))
127 ;; The '--with-gpg-error-prefix' argument is needed because otherwise
128 ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
129 ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
131 (list (string-append "--with-gpg-error-prefix="
132 (assoc-ref %build-inputs "libgpg-error-host")))))
133 (outputs '("out" "debug"))
134 (home-page "https://gnupg.org/")
135 (synopsis "Cryptographic function library")
137 "Libgcrypt is a general-purpose cryptographic library. It provides the
138 standard cryptographic building blocks such as symmetric ciphers, hash
139 algorithms, public key algorithms, large integer functions and random number
141 (license license:lgpl2.0+)
142 (properties '((ftp-server . "ftp.gnupg.org")
143 (ftp-directory . "/gcrypt/libgcrypt")))))
145 (define-public libassuan
152 (uri (string-append "mirror://gnupg/libassuan/libassuan-"
156 "0jb4nb4nrjr949gd3lw8lh4v5d6qigxaq6xwy24w5apjnhvnrya7"))))
157 (build-system gnu-build-system)
159 `(("libgpg-error" ,libgpg-error)
161 (home-page "https://gnupg.org")
163 "IPC library used by GnuPG and related software")
165 "Libassuan is a small library implementing the so-called Assuan
166 protocol. This protocol is used for IPC between most newer
167 GnuPG components. Both, server and client side functions are
169 (license license:lgpl2.0+)
170 (properties '((ftp-server . "ftp.gnupg.org")
171 (ftp-directory . "/gcrypt/libassuan")))))
173 (define-public libksba
181 "mirror://gnupg/libksba/libksba-"
185 "0h53q4sns1jz1pkmhcz5wp9qrfn9f5g9i3vjv6dafwzzlvblyi21"))))
186 (build-system gnu-build-system)
188 `(("libgpg-error" ,libgpg-error)))
190 `(("libgpg-error" ,libgpg-error)))
193 (list ,@(if (%current-target-system)
194 '("CC_FOR_BUILD=gcc")
196 (string-append "--with-gpg-error-prefix="
197 (assoc-ref %build-inputs "libgpg-error")))))
198 (home-page "https://www.gnupg.org")
199 (synopsis "CMS and X.509 access library")
201 "KSBA (pronounced Kasbah) is a library to make X.509 certificates
202 as well as the CMS easily accessible by other applications. Both
203 specifications are building blocks of S/MIME and TLS.")
204 (license license:gpl3+)
205 (properties '((ftp-server . "ftp.gnupg.org")
206 (ftp-directory . "/gcrypt/libksba")))))
215 (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2"))
218 "1hmkkp6vzyrh8v01c2ynzf9vwikyagp7p1lxhbnr4ysk3w66jji9"))))
219 (build-system gnu-build-system)
220 (home-page "https://www.gnupg.org")
221 (synopsis "Non-preemptive thread library")
223 "Npth is a library to provide the GNU Pth API and thus a non-preemptive
224 threads implementation.
226 In contrast to GNU Pth is is based on the system's standard threads
227 implementation. This allows the use of libraries which are not
228 compatible to GNU Pth.")
229 (license (list license:lgpl3+ license:gpl2+)))) ; dual license
237 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
241 "0vlpis0q7gvq9mhdc43hkyn3cdriz4mwgj20my3gyzpgwqg3cnyr"))))
242 (build-system gnu-build-system)
244 `(("pkg-config" ,pkg-config)))
247 ("libassuan" ,libassuan)
248 ("libgcrypt" ,libgcrypt)
249 ("libgpg-error" ,libgpg-error)
252 ("openldap" ,openldap)
253 ("pcsc-lite" ,pcsc-lite)
254 ("readline" ,readline)
258 `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg`
259 ;; executable in its installation directory in
260 ;; /gnu/store before it has been installed.
261 "--enable-gnupg-builddir-envvar"
262 "--enable-all-tests")
264 (modify-phases %standard-phases
265 (add-before 'configure 'patch-paths
266 (lambda* (#:key inputs #:allow-other-keys)
267 (substitute* "scd/scdaemon.c"
268 (("\"(libpcsclite\\.so[^\"]*)\"" _ name)
269 (string-append "\"" (assoc-ref inputs "pcsc-lite")
272 (add-after 'build 'patch-scheme-tests
274 (substitute* (find-files "tests" ".\\.scm$")
275 (("/usr/bin/env gpgscm")
276 (string-append (getcwd) "/tests/gpgscm/gpgscm")))
278 (add-before 'build 'patch-test-paths
280 (substitute* '("tests/inittests"
281 "tests/pkits/inittests"
283 "tests/pkits/common.sh"
284 "tests/pkits/Makefile")
285 (("/bin/pwd") (which "pwd")))
286 (substitute* "common/t-exectool.c"
287 (("/bin/cat") (which "cat"))
288 (("/bin/true") (which "true"))
289 (("/bin/false") (which "false")))
291 (home-page "https://gnupg.org/")
292 (synopsis "GNU Privacy Guard")
294 "The GNU Privacy Guard is a complete implementation of the OpenPGP
295 standard. It is used to encrypt and sign data and communication. It
296 features powerful key management and the ability to access public key
297 servers. It includes several libraries: libassuan (IPC between GnuPG
298 components), libgpg-error (centralized GnuPG error values), and
299 libskba (working with X.509 certificates and CMS data).")
300 (license license:gpl3+)
301 (properties '((ftp-server . "ftp.gnupg.org")
302 (ftp-directory . "/gcrypt/gnupg")))))
304 (define-public gnupg-2.0
305 (package (inherit gnupg)
309 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
313 "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3"))))
319 ("libassuan" ,libassuan)
320 ("libgcrypt" ,libgcrypt)
321 ("libgpg-error" ,libgpg-error)
324 ("openldap" ,openldap)
326 ("readline" ,readline)))
329 (modify-phases %standard-phases
330 (add-before 'configure 'patch-config-files
332 (substitute* "tests/openpgp/Makefile.in"
333 (("/bin/sh") (which "sh")))
335 (add-after 'install 'rename-v2-commands
336 (lambda* (#:key outputs #:allow-other-keys)
337 ;; Upstream suggests removing the trailing '2' from command names:
338 ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>.
339 (let ((out (assoc-ref outputs "out")))
340 (with-directory-excursion (string-append out "/bin")
341 (rename-file "gpgv2" "gpgv")
342 (rename-file "gpg2" "gpg")
344 ;; Keep the old name around to ease transition.
345 (symlink "gpgv" "gpgv2")
346 (symlink "gpg" "gpg2")
348 (properties `((superseded . ,gnupg)))))
350 (define-public gnupg-1
351 (package (inherit gnupg)
355 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
359 "1d1hz4szh1kvwhsw7w2zxa6q5ndrk3qy6hj289l1b8k3xi5s554m"))))
365 ("readline" ,readline)
366 ("libgpg-error" ,libgpg-error)))
369 (modify-phases %standard-phases
370 (add-after 'unpack 'patch-check-sh
372 (substitute* "checks/Makefile.in"
373 (("/bin/sh") (which "sh")))
383 (uri (string-append "mirror://gnupg/gpgme/gpgme-" version
387 "0vxx5xaag3rhp4g2arp5qm77gvz4kj0m3hnpvhkdvqyjfhbi26rd"))))
388 (build-system gnu-build-system)
392 ;; Needs to be propagated because gpgme.h includes gpg-error.h.
393 `(("libgpg-error" ,libgpg-error-1.31)))
395 `(("libassuan" ,libassuan)))
396 (home-page "https://www.gnupg.org/related_software/gpgme/")
397 (synopsis "Library providing simplified access to GnuPG functionality")
399 "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
400 easier for applications. It provides a High-Level Crypto API for encryption,
401 decryption, signing, signature verification and key management. Currently
402 it uses GnuPG as its backend but the API isn't restricted to this engine.
404 Because the direct use of GnuPG from an application can be a complicated
405 programming task, it is suggested that all software should try to use GPGME
406 instead. This way bug fixes or improvements can be done at a central place
407 and every application benefits from this.")
408 (license license:lgpl2.1+)))
410 (define-public qgpgme
416 (modify-phases %standard-phases
417 (add-before 'build 'chdir-and-symlink
418 (lambda* (#:key inputs #:allow-other-keys)
419 (let ((gpgme (assoc-ref inputs "gpgme")))
420 (symlink (string-append gpgme "/lib/libgpgmepp.la")
421 "lang/cpp/src/libgpgmepp.la")
422 (symlink (string-append gpgme "/lib/libgpgme.la")
427 `(("pkg-config" ,pkg-config)
428 ,@(package-native-inputs gpgme)))
432 ,@(package-inputs gpgme)))
433 (synopsis "Qt API bindings for gpgme")
434 (description "QGpgme provides a very high level Qt API around GpgMEpp.
436 QGpgME was originally developed as part of libkleo and incorporated into
437 gpgpme starting with version 1.7.")
438 (license license:gpl2+))) ;; Note: this differs from gpgme
440 (define-public python-gpg
446 (uri (pypi-uri "gpg" version))
449 "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd"))))
450 (build-system python-build-system)
452 '(#:tests? #f)) ; No test suite.
457 (home-page (package-home-page gpgme))
458 (synopsis "Python bindings for GPGME GnuPG cryptography library")
459 (description "This package provides Python bindings to the GPGME GnuPG
460 cryptographic library. It is developed in the GPGME source code, and then
461 distributed separately.")
462 (license license:lgpl2.1+)))
464 (define-public python2-gpg
465 (package-with-python2 python-gpg))
467 (define-public python-pygpgme
469 (name "python-pygpgme")
474 (uri (pypi-uri "pygpgme" version))
477 "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z"))
478 ;; Unfortunately, we have to disable some tests due to some gpg-agent
480 ;; https://bugs.launchpad.net/pygpgme/+bug/999949
481 (patches (search-patches "pygpgme-disable-problematic-tests.patch"
482 "python-pygpgme-fix-pinentry-tests.patch"))))
485 (modify-phases %standard-phases
486 (add-before 'build 'make-build
488 (zero? (system* "make" "build"))))
491 (zero? (system* "make" "check")))))))
492 (build-system python-build-system)
494 `(("gnupg" ,gnupg-1)))
497 (home-page "https://launchpad.net/pygpgme")
498 (synopsis "Python module for working with OpenPGP messages")
500 "PyGPGME is a Python module that lets you sign, verify, encrypt and
501 decrypt messages using the OpenPGP format by making use of GPGME.")
502 (license license:lgpl2.1+)))
504 (define-public python2-pygpgme
505 (package-with-python2 python-pygpgme))
507 (define-public python-gnupg
509 (name "python-gnupg")
514 (uri (pypi-uri "python-gnupg" version))
517 "0nkbs9c8f30lra7ca39kg91x8cyxn0jb61vih4qky839gpbwwwiq"))))
518 (build-system python-build-system)
521 (modify-phases %standard-phases
524 (substitute* "test_gnupg.py"
525 ;; Exported keys don't have a version line!
526 (("del k1\\[1\\]") "#")
527 ;; Unsure why this test fails.
528 (("'test_search_keys'") "True")
529 (("def test_search_keys") "def disabled__search_keys"))
530 (setenv "USERNAME" "guixbuilder")
531 ;; The doctests are extremely slow and sometimes time out,
532 ;; so we disable them.
533 (zero? (system* "python"
534 "test_gnupg.py" "--no-doctests")))))))
536 `(("gnupg" ,gnupg-1)))
537 (home-page "https://packages.python.org/python-gnupg/index.html")
538 (synopsis "Wrapper for the GNU Privacy Guard")
540 "This module allows easy access to GnuPG’s key management, encryption
541 and signature functionality from Python programs.")
542 (license license:bsd-3)))
544 (define-public python2-gnupg
545 (package-with-python2 python-gnupg))
547 (define-public perl-gnupg-interface
549 (name "perl-gnupg-interface")
553 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
554 "GnuPG-Interface-" version ".tar.gz"))
557 "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4"))))
558 (build-system perl-build-system)
561 (modify-phases %standard-phases
562 ;; FIXME: This test fails for unknown reasons
563 (add-after 'unpack 'delete-broken-test
565 (delete-file "t/encrypt_symmetrically.t")
568 `(("gnupg" ,gnupg-1)))
570 `(("perl-moo" ,perl-moo)
571 ("perl-moox-handlesvia" ,perl-moox-handlesvia)
572 ("perl-moox-late" ,perl-moox-late)))
575 ("perl-module-install" ,perl-module-install)))
576 (home-page "http://search.cpan.org/dist/GnuPG-Interface/")
577 (synopsis "Perl interface to GnuPG")
578 (description "@code{GnuPG::Interface} and its associated modules are
579 designed to provide an object-oriented method for interacting with GnuPG,
580 being able to perform functions such as but not limited to encrypting,
581 signing, decryption, verification, and key-listing parsing.")
582 (license license:perl-license)))
591 "https://github.com/jaymzh/pius/releases/download/v"
592 version "/pius-" version ".tar.bz2"))
595 "1893hzpx3zv724drqv48csrn0cm98xw4ymb1zmhs2jvjj1778zfj"))
596 (patches (search-patches "pius.patch"))))
597 (build-system python-build-system)
598 (inputs `(("perl" ,perl) ;for 'pius-party-worksheet'
600 ("python-six" ,python2-six)))
603 #:python ,python-2 ;uses the Python 2 'print' syntax
605 (modify-phases %standard-phases
607 'build 'set-gpg-file-name
608 (lambda* (#:key inputs outputs #:allow-other-keys)
609 (let* ((gpg (string-append (assoc-ref inputs "gpg")
611 (substitute* "libpius/constants.py"
612 (("/usr/bin/gpg2") gpg))
614 (synopsis "Programs to simplify GnuPG key signing")
616 "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning
617 parties. It is the main utility and makes it possible to quickly and easily
618 sign each UID on a set of PGP keys. It is designed to take the pain out of
619 the sign-all-the-keys part of PGP Keysigning Party while adding security
622 pius-keyring-mgr and pius-party-worksheet help organisers of
623 PGP keysigning parties.")
624 (license license:gpl2)
625 (home-page "https://www.phildev.net/pius/index.shtml")))
627 (define-public signing-party
629 (name "signing-party")
633 (uri (string-append "mirror://debian/pool/main/s/signing-party/"
634 "signing-party_" version ".orig.tar.gz"))
636 "1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr"))))
637 (build-system gnu-build-system)
639 `(("autoconf" ,autoconf-wrapper)
640 ("automake" ,automake)))
641 (inputs `(("perl" ,perl)
642 ("perl-text-template" ,perl-text-template)
643 ("perl-mime-tools" ,perl-mime-tools)
644 ("perl-gnupg-interface" ,perl-gnupg-interface)
645 ("perl-net-idn-encode" ,perl-net-idn-encode)
650 (modify-phases %standard-phases
651 (add-before 'configure 'change-directory
653 ;; The build system in the unpack phase changes to a less useful
654 ;; subdirectory, so move up one level
655 (chdir (dirname (getcwd)))))
657 (lambda* (#:key outputs #:allow-other-keys)
658 (let ((out (assoc-ref outputs "out")))
659 (substitute* "keyanalyze/Makefile"
660 (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
661 (substitute* "keyanalyze/Makefile"
662 (("\\./configure") (string-append "./configure --prefix=" out)))
663 (substitute* "gpgwrap/src/Makefile"
665 (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
666 out "/bin/gpgwrap\n")))
667 (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
668 "keylookup/Makefile" "sig2dot/Makefile"
669 "springgraph/Makefile")
671 (setenv "CONFIG_SHELL" (which "sh")))))
673 (lambda* (#:key outputs #:allow-other-keys #:rest args)
674 (let ((out (assoc-ref outputs "out"))
675 (install (assoc-ref %standard-phases 'install)))
679 (copy-file (string-append dir "/" file)
680 (string-append out "/bin/" file)))
681 '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
682 "gpglist" "gpg-mailkeys" "gpgparticipants")
683 '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
684 "gpglist" "gpg-mailkeys" "gpgparticipants"))
687 (copy-file (string-append dir "/" file)
688 (string-append out "/share/man/man1/" file)))
689 '("caff" "caff" "caff" "gpgdir"
690 "gpg-key2ps" "gpglist" "gpg-mailkeys"
691 "gpgparticipants" "gpgsigs" "gpgwrap/doc"
692 "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
693 '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
694 "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
695 "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
696 "process_keys.1" "pgpring.1" "keyanalyze.1")))))
697 (add-after 'install 'wrap-programs
698 (lambda* (#:key outputs #:allow-other-keys)
699 (let* ((out (assoc-ref outputs "out")))
701 (string-append out "/bin/caff")
702 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))))
703 (synopsis "Collection of scripts for simplifying gnupg key signing")
705 "Signing-party is a collection for all kinds of PGP/GnuPG related things,
706 including tools for signing keys, keyring analysis, and party preparation.
708 @item caff: CA - Fire and Forget signs and mails a key
709 @item pgp-clean: removes all non-self signatures from key
710 @item pgp-fixkey: removes broken packets from keys
711 @item gpg-mailkeys: simply mail out a signed key to its owner
712 @item gpg-key2ps: generate PostScript file with fingerprint paper strips
713 @item gpgdir: recursive directory encryption tool
714 @item gpglist: show who signed which of your UIDs
715 @item gpgsigs: annotates list of GnuPG keys with already done signatures
716 @item gpgparticipants: create list of party participants for the organiser
717 @item gpgwrap: a passphrase wrapper
718 @item keyanalyze: minimum signing distance (MSD) analysis on keyrings
719 @item keylookup: ncurses wrapper around gpg --search
720 @item sig2dot: converts a list of GnuPG signatures to a .dot file
721 @item springgraph: creates a graph from a .dot file
723 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
724 ;; and caff and gpgsigs: bsd-3, see
725 ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
726 (license license:gpl2)
727 (home-page "https://pgp-tools.alioth.debian.org/")))
729 (define-public pinentry-tty
731 (name "pinentry-tty")
735 (uri (string-append "mirror://gnupg/pinentry/pinentry-"
739 "0w35ypl960pczg5kp6km3dyr000m1hf0vpwwlh72jjkjza36c1v8"))))
740 (build-system gnu-build-system)
742 `(#:configure-flags '("--enable-pinentry-tty")))
744 `(("ncurses" ,ncurses)
745 ("libassuan" ,libassuan)
746 ("libsecret" ,libsecret "out")))
748 `(("pkg-config" ,pkg-config)))
749 (home-page "https://gnupg.org/aegypten2/")
750 (synopsis "GnuPG's interface to passphrase input")
752 "Pinentry provides a console that allows users to enter a passphrase when
753 @code{gpg} is run and needs it.")
754 (license license:gpl2+)
755 (properties '((ftp-server . "ftp.gnupg.org")
756 (ftp-directory . "/gcrypt/pinentry")
757 (upstream-name . "pinentry")))))
759 (define-public pinentry-emacs
761 (inherit pinentry-tty)
762 (name "pinentry-emacs")
764 `(#:configure-flags '("--enable-pinentry-emacs")))
766 "Pinentry provides a console and an Emacs interface that allows users to
767 enter a passphrase when required by @code{gpg} or other software.")))
769 (define-public pinentry-gtk2
771 (inherit pinentry-tty)
772 (name "pinentry-gtk2")
776 ,@(package-inputs pinentry-tty)))
778 "Pinentry provides a console and a GTK+ GUI that allows users to enter a
779 passphrase when @code{gpg} is run and needs it.")))
781 (define-public pinentry-gnome3
783 (inherit pinentry-tty)
784 (name "pinentry-gnome3")
789 ,@(package-inputs pinentry-tty)))
791 `(#:configure-flags '("--enable-pinentry-gnome3")))
793 "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3
794 that allows users to enter a passphrase when required by @code{gpg} or other
797 (define-public pinentry-qt
799 (inherit pinentry-tty)
803 ,@(package-inputs pinentry-tty)))
805 `(#:configure-flags '("CXXFLAGS=-std=gnu++11")))
807 "Pinentry provides a console and a Qt GUI that allows users to enter a
808 passphrase when @code{gpg} is run and needs it.")))
810 (define-public pinentry
811 (package (inherit pinentry-gtk2)
814 (define-public paperkey
820 (uri (string-append "http://www.jabberwocky.com/"
821 "software/paperkey/paperkey-"
825 "1prd2jaf4zjad3xhv160hmi5n408ssljfg7iz90jxs9w111pjwy4"))))
826 (build-system gnu-build-system)
829 (modify-phases %standard-phases
830 (add-before 'check 'patch-check-scripts
832 (substitute* '("checks/roundtrip.sh"
833 "checks/roundtrip-raw.sh")
834 (("/bin/echo") "echo"))
836 (home-page "http://www.jabberwocky.com/software/paperkey/")
837 (synopsis "Backup OpenPGP keys to paper")
839 "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key
840 for printing with paper and ink, which have amazingly long retention
841 qualities. To reconstruct a secret key, you re-enter those
842 bytes (whether by hand, OCR, QR code, or the like) and paperkey can use
843 them to transform your existing public key into a secret key.")
844 (license license:gpl2+)))
852 (uri (string-append "mirror://gnupg/gpa/"
853 name "-" version ".tar.bz2"))
856 "09xphbi2456qynwqq5n0yh0zdmdi2ggrj3wk4hsyh5lrzlvcrff3"))))
857 (build-system gnu-build-system)
859 `(("pkg-config" ,pkg-config)))
863 ("libassuan" ,libassuan)
864 ("libgpg-error" ,libgpg-error)
866 (home-page "https://gnupg.org/software/gpa/")
867 (synopsis "Graphical user interface for GnuPG")
869 "GPA, the GNU Privacy Assistant, is a graphical user interface for
870 @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign
871 files, to verify signatures, and to manage the private and public keys.")
872 (license license:gpl3+)))
874 (define-public parcimonie
880 (uri (string-append "https://gaffer.ptitcanardnoir.org/"
881 "intrigeri/files/parcimonie/App-Parcimonie-"
885 "1kf891117s1f3k6lxvbjdb21va9gxh29vlp9bd664ssgw266rcyb"))))
886 (build-system perl-build-system)
888 `(("gnupg" ,gnupg-1) ; This is the version used by perl-gnupg-interface
889 ("perl-config-general" ,perl-config-general)
890 ("perl-clone" ,perl-clone)
891 ("perl-data" ,perl-data)
892 ("perl-exporter-tiny" ,perl-exporter-tiny)
893 ("perl-file-homedir" ,perl-file-homedir)
894 ("perl-file-sharedir" ,perl-file-sharedir)
895 ("perl-file-which" ,perl-file-which)
896 ("perl-getopt-long-descriptive" ,perl-getopt-long-descriptive)
897 ("perl-gnupg-interface" ,perl-gnupg-interface)
898 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
899 ("perl-list-moreutils" ,perl-list-moreutils)
900 ("perl-libintl-perl" ,perl-libintl-perl) ; Locale::TextDomain
901 ("perl-lwp-online" ,perl-lwp-online)
902 ("perl-module-build" ,perl-module-build)
903 ("perl-module-pluggable-object" ,perl-module-pluggable)
904 ("perl-moo" ,perl-moo)
905 ("perl-moox-handlesvia" ,perl-moox-handlesvia)
906 ("perl-moox-late" ,perl-moox-late)
907 ("perl-moox-options" ,perl-moox-options)
908 ("perl-namespace-clean" ,perl-namespace-clean)
909 ("perl-net-dbus" ,perl-net-dbus)
910 ("perl-net-dbus-glib" ,perl-net-dbus-glib)
911 ("perl-path-tiny" ,perl-path-tiny)
912 ("perl-test-most" ,perl-test-most)
913 ("perl-test-trap" ,perl-test-trap)
914 ("perl-time-duration" ,perl-time-duration)
915 ("perl-time-duration-parse" ,perl-time-duration-parse)
916 ("perl-try-tiny" ,perl-try-tiny)
917 ("perl-type-tiny" ,perl-type-tiny)
918 ("perl-types-path-tiny" ,perl-types-path-tiny)
919 ("perl-unicode-linebreak" ,perl-unicode-linebreak)
920 ("perl-xml-parser" ,perl-xml-parser)
921 ("perl-xml-twig" ,perl-xml-twig)
922 ("torsocks" ,torsocks)))
925 (modify-phases %standard-phases
926 ;; Needed for using gpg-connect-agent during tests.
927 (add-before 'check 'set-HOME
928 (lambda _ (setenv "HOME" "/tmp") #t))
929 (add-before 'install 'fix-references
930 (lambda* (#:key inputs outputs #:allow-other-keys)
931 (substitute* "lib/App/Parcimonie/GnuPG/Interface.pm"
933 ;; Skip check whether dependencies are in the PATH
934 (("defined which.*") "")
935 (("call\\('parcimonie-torified-gpg'\\)")
936 (string-append "call('" (assoc-ref outputs "out")
937 "/bin/parcimonie-torified-gpg')")))
938 (substitute* "bin/parcimonie-torified-gpg"
939 (("torsocks") (string-append (assoc-ref inputs "torsocks")
942 (add-after 'install 'wrap-program
943 (lambda* (#:key inputs outputs #:allow-other-keys)
944 (let* ((out (assoc-ref outputs "out"))
945 (perllib (string-append out "/lib/perl5/site_perl/"
946 ,(package-version perl))))
947 (wrap-program (string-append out "/bin/parcimonie")
949 prefix (,(string-append perllib ":" (getenv "PERL5LIB")))))
951 (home-page "https://gaffer.ptitcanardnoir.org/intrigeri/code/parcimonie/")
952 (synopsis "Incrementally refreshes a GnuPG keyring")
953 (description "Parcimonie incrementaly refreshes a GnuPG keyring in a way
954 that makes it hard to correlate the keyring content to an individual, and
955 makes it hard to locate an individual based on an identifying subset of her
956 keyring content. Parcimonie is a daemon that fetches one key at a time using
957 the Tor network, waits a bit, changes the Tor circuit being used, and starts
959 (license license:gpl1+)))
961 (define-public jetring
968 (uri (string-append "mirror://debian/pool/main/j/" name "/"
969 name "_" version ".tar.xz"))
972 "0jy0x5zj7v87xgyldlsx1knzp0mv10wzamblrw1b61i2m1ii4pxz"))))
973 (build-system gnu-build-system)
976 (modify-phases %standard-phases
977 (delete 'configure) ; no configure script
978 (add-before 'install 'hardlink-gnupg
979 (lambda* (#:key inputs #:allow-other-keys)
980 (let ((gpg (string-append (assoc-ref inputs "gnupg")
982 (substitute* (find-files "." "jetring-[[:alpha:]]+$")
983 (("gpg -") (string-append gpg " -"))
984 (("\\\"gpg\\\"") (string-append "\"" gpg "\"")))
987 (lambda* (#:key outputs #:allow-other-keys)
988 (let* ((out (assoc-ref outputs "out"))
989 (man (string-append out "/share/man")))
990 (for-each (lambda (file)
991 (install-file file (string-append out "/bin/")))
992 (find-files "." "jetring-[[:alpha:]]+$"))
993 (for-each (lambda (file)
994 (install-file file (string-append man "/man1/")))
995 (find-files "." ".*\\.1$"))
996 (install-file "jetring.7" (string-append man "/man7/"))
998 #:tests? #f)) ; no test phase
1002 (home-page "https://joeyh.name/code/jetring/")
1003 (synopsis "GnuPG keyring maintenance using changesets")
1005 "Jetring is a collection of tools that allow for gpg keyrings to be
1006 maintained using changesets. It was developed with the Debian keyring in mind,
1007 and aims to solve the problem that a gpg keyring is a binary blob that's hard
1008 for multiple people to collaboratively edit.
1010 With jetring, changesets can be submitted, reviewed to see exactly what they
1011 will do, applied, and used to build a keyring. The origin of every change made
1012 to the keyring is available for auditing, and gpg signatures can be used for
1013 integrity guarantees.")
1014 (license license:gpl2+)))