1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2013, 2015 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 Efraim Flashner <efraim@flashner.co.il>
8 ;;; Copyright © 2015, 2016 Ricardo Wurmus <rekado@elephly.net>
9 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
10 ;;; Copyright © 2016, 2017 ng0 <ng0@infotropique.org>
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>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages gnupg)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages adns)
35 #:use-module (gnu packages autotools)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages curl)
38 #:use-module (gnu packages crypto)
39 #:use-module (gnu packages openldap)
40 #:use-module (gnu packages perl)
41 #:use-module (gnu packages pth)
42 #:use-module (gnu packages python)
43 #:use-module (gnu packages qt)
44 #:use-module (gnu packages readline)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages gtk)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages gnome)
50 #:use-module (gnu packages pkg-config)
51 #:use-module (gnu packages ncurses)
52 #:use-module (gnu packages security-token)
53 #:use-module (gnu packages swig)
54 #:use-module (gnu packages tls)
55 #:use-module (guix packages)
56 #:use-module (guix download)
57 #:use-module (guix git-download)
58 #:use-module (guix build-system gnu)
59 #:use-module (guix build-system perl)
60 #:use-module (guix build-system python))
62 (define-public libgpg-error
69 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
73 "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg"))))
74 (build-system gnu-build-system)
75 (home-page "https://gnupg.org")
76 (synopsis "Library of error values for GnuPG components")
78 "Libgpg-error is a small library that defines common error values
79 for all GnuPG components. Among these are GPG, GPGSM, GPGME,
80 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
81 Daemon and possibly more in the future.")
82 (license license:lgpl2.0+)
83 (properties '((ftp-server . "ftp.gnupg.org")
84 (ftp-directory . "/gcrypt/libgpg-error")))))
86 (define-public libgcrypt
88 (replacement libgcrypt/fixed)
93 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
97 "16f1rsv4y4w2pk1il2jbcqggsb6mrlfva5vayd205fp68zm7d0ll"))))
98 (build-system gnu-build-system)
100 `(("libgpg-error-host" ,libgpg-error)))
102 ;; Needed here for the 'gpg-error' program.
103 `(("libgpg-error-native" ,libgpg-error)))
105 ;; The '--with-gpg-error-prefix' argument is needed because otherwise
106 ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
107 ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
109 (list (string-append "--with-gpg-error-prefix="
110 (assoc-ref %build-inputs "libgpg-error-host")))))
111 (outputs '("out" "debug"))
112 (home-page "https://gnupg.org/")
113 (synopsis "Cryptographic function library")
115 "Libgcrypt is a general-purpose cryptographic library. It provides the
116 standard cryptographic building blocks such as symmetric ciphers, hash
117 algorithms, public key algorithms, large integer functions and random number
119 (license license:lgpl2.0+)
120 (properties '((ftp-server . "ftp.gnupg.org")
121 (ftp-directory . "/gcrypt/libgcrypt")))))
123 (define libgcrypt/fixed
129 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
133 "1cvqd9jk5qshbh48yh3ixw4zyr4n5k50r3475rrh20xfn7w7aa3s"))))))
135 (define-public libassuan
142 (uri (string-append "mirror://gnupg/libassuan/libassuan-"
146 "0w9bmasln4z8mn16s1is55a06w3nv8jbyal496z5jvr5vcxkm112"))))
147 (build-system gnu-build-system)
149 `(("libgpg-error" ,libgpg-error) ("pth" ,pth)))
150 (home-page "https://gnupg.org")
152 "IPC library used by GnuPG and related software")
154 "Libassuan is a small library implementing the so-called Assuan
155 protocol. This protocol is used for IPC between most newer
156 GnuPG components. Both, server and client side functions are
158 (license license:lgpl2.0+)
159 (properties '((ftp-server . "ftp.gnupg.org")
160 (ftp-directory . "/gcrypt/libassuan")))))
162 (define-public libksba
170 "mirror://gnupg/libksba/libksba-"
174 "0h53q4sns1jz1pkmhcz5wp9qrfn9f5g9i3vjv6dafwzzlvblyi21"))))
175 (build-system gnu-build-system)
177 `(("libgpg-error" ,libgpg-error)))
179 `(("libgpg-error" ,libgpg-error)))
182 (list ,@(if (%current-target-system)
183 '("CC_FOR_BUILD=gcc")
185 (string-append "--with-gpg-error-prefix="
186 (assoc-ref %build-inputs "libgpg-error")))))
187 (home-page "https://www.gnupg.org")
188 (synopsis "CMS and X.509 access library")
190 "KSBA (pronounced Kasbah) is a library to make X.509 certificates
191 as well as the CMS easily accessible by other applications. Both
192 specifications are building blocks of S/MIME and TLS.")
193 (license license:gpl3+)
194 (properties '((ftp-server . "ftp.gnupg.org")
195 (ftp-directory . "/gcrypt/libksba")))))
204 (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2"))
207 "1hmkkp6vzyrh8v01c2ynzf9vwikyagp7p1lxhbnr4ysk3w66jji9"))))
208 (build-system gnu-build-system)
209 (home-page "https://www.gnupg.org")
210 (synopsis "Non-preemptive thread library")
212 "Npth is a library to provide the GNU Pth API and thus a non-preemptive
213 threads implementation.
215 In contrast to GNU Pth is is based on the system's standard threads
216 implementation. This allows the use of libraries which are not
217 compatible to GNU Pth.")
218 (license (list license:lgpl3+ license:gpl2+)))) ; dual license
226 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
230 "1yv2pwf3vhv9dpbf51fnm0wy03va1cg5r7qaz7rg75cwbgb0rmrl"))))
231 (build-system gnu-build-system)
233 `(("pkg-config" ,pkg-config)))
238 ("libassuan" ,libassuan)
239 ("libgcrypt" ,libgcrypt)
240 ("libgpg-error" ,libgpg-error)
243 ("openldap" ,openldap)
244 ("pcsc-lite" ,pcsc-lite)
245 ("readline" ,readline)
249 `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg`
250 ;; executable in its installation directory in
251 ;; /gnu/store before it has been installed.
252 "--enable-gnupg-builddir-envvar"
253 "--enable-all-tests")
255 (modify-phases %standard-phases
256 (add-before 'configure 'patch-paths
257 (lambda* (#:key inputs #:allow-other-keys)
258 (substitute* "scd/scdaemon.c"
259 (("\"(libpcsclite\\.so[^\"]*)\"" _ name)
260 (string-append "\"" (assoc-ref inputs "pcsc-lite")
263 (add-after 'build 'patch-scheme-tests
265 (substitute* (find-files "tests" ".\\.scm$")
266 (("/usr/bin/env gpgscm")
267 (string-append (getcwd) "/tests/gpgscm/gpgscm")))
269 (add-before 'build 'patch-test-paths
271 (substitute* '("tests/inittests"
272 "tests/pkits/inittests"
274 "tests/pkits/common.sh"
275 "tests/pkits/Makefile")
276 (("/bin/pwd") (which "pwd")))
277 (substitute* "common/t-exectool.c"
278 (("/bin/cat") (which "cat"))
279 (("/bin/true") (which "true"))
280 (("/bin/false") (which "false")))
282 (home-page "https://gnupg.org/")
283 (synopsis "GNU Privacy Guard")
285 "The GNU Privacy Guard is a complete implementation of the OpenPGP
286 standard. It is used to encrypt and sign data and communication. It
287 features powerful key management and the ability to access public key
288 servers. It includes several libraries: libassuan (IPC between GnuPG
289 components), libgpg-error (centralized GnuPG error values), and
290 libskba (working with X.509 certificates and CMS data).")
291 (license license:gpl3+)
292 (properties '((ftp-server . "ftp.gnupg.org")
293 (ftp-directory . "/gcrypt/gnupg")))))
295 (define-public gnupg-2.0
296 (package (inherit gnupg)
300 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
304 "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3"))))
310 ("libassuan" ,libassuan)
311 ("libgcrypt" ,libgcrypt)
312 ("libgpg-error" ,libgpg-error)
315 ("openldap" ,openldap)
317 ("readline" ,readline)))
320 (modify-phases %standard-phases
321 (add-before 'configure 'patch-config-files
323 (substitute* "tests/openpgp/Makefile.in"
324 (("/bin/sh") (which "sh")))
326 (add-after 'install 'rename-v2-commands
327 (lambda* (#:key outputs #:allow-other-keys)
328 ;; Upstream suggests removing the trailing '2' from command names:
329 ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>.
330 (let ((out (assoc-ref outputs "out")))
331 (with-directory-excursion (string-append out "/bin")
332 (rename-file "gpgv2" "gpgv")
333 (rename-file "gpg2" "gpg")
335 ;; Keep the old name around to ease transition.
336 (symlink "gpgv" "gpgv2")
337 (symlink "gpg" "gpg2")
340 (define-public gnupg-1
341 (package (inherit gnupg)
345 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
349 "1d1hz4szh1kvwhsw7w2zxa6q5ndrk3qy6hj289l1b8k3xi5s554m"))))
355 ("readline" ,readline)
356 ("libgpg-error" ,libgpg-error)))
359 (modify-phases %standard-phases
360 (add-after 'unpack 'patch-check-sh
362 (substitute* "checks/Makefile.in"
363 (("/bin/sh") (which "sh"))))))))))
372 (uri (string-append "mirror://gnupg/gpgme/gpgme-" version
376 "1ssc0gs02r4fasabk7c6v6r865k2j02mpb5g1vkpbmzsigdzwa8v"))))
377 (build-system gnu-build-system)
379 ;; Needs to be propagated because gpgme.h includes gpg-error.h.
380 `(("libgpg-error" ,libgpg-error)))
382 `(("gnupg" ,gnupg-2.0)
383 ("libassuan" ,libassuan)))
386 (modify-phases %standard-phases
387 (add-after 'configure 'patch-cmake-file
389 ;; Work around <https://bugs.gnupg.org/gnupg/issue2877>.
390 (substitute* "lang/cpp/src/GpgmeppConfig.cmake.in"
391 (("@libsuffix@") ".so"))
393 (home-page "https://www.gnupg.org/related_software/gpgme/")
394 (synopsis "Library providing simplified access to GnuPG functionality")
396 "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
397 easier for applications. It provides a High-Level Crypto API for encryption,
398 decryption, signing, signature verification and key management. Currently
399 it uses GnuPG as its backend but the API isn't restricted to this engine.
401 Because the direct use of GnuPG from an application can be a complicated
402 programming task, it is suggested that all software should try to use GPGME
403 instead. This way bug fixes or improvements can be done at a central place
404 and every application benefits from this.")
405 (license license:lgpl2.1+)))
407 (define-public qgpgme
413 (modify-phases %standard-phases
414 (add-before 'build 'chdir-and-symlink
415 (lambda* (#:key inputs #:allow-other-keys)
416 (let ((gpgme (assoc-ref inputs "gpgme")))
417 (symlink (string-append gpgme "/lib/libgpgmepp.la")
418 "lang/cpp/src/libgpgmepp.la")
419 (symlink (string-append gpgme "/lib/libgpgme.la")
424 `(("pkg-config" ,pkg-config)))
428 ,@(package-inputs gpgme)))
429 (synopsis "Qt API bindings for gpgme")
430 (description "QGpgme provides a very high level Qt API around GpgMEpp.
432 QGpgME was originally developed as part of libkleo and incorporated into
433 gpgpme starting with version 1.7.")
434 (license license:gpl2+))) ;; Note: this differs from gpgme
436 (define-public python-gpg
442 (uri (pypi-uri "gpg" version))
445 "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd"))))
446 (build-system python-build-system)
448 '(#:tests? #f)) ; No test suite.
453 (home-page (package-home-page gpgme))
454 (synopsis "Python bindings for GPGME GnuPG cryptography library")
455 (description "This package provides Python bindings to the GPGME GnuPG
456 cryptographic library. It is developed in the GPGME source code, and then
457 distributed separately.")
458 (license license:lgpl2.1+)))
460 (define-public python2-gpg
461 (package-with-python2 python-gpg))
463 (define-public python-pygpgme
465 (name "python-pygpgme")
470 (uri (pypi-uri "pygpgme" version))
473 "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z"))
474 ;; Unfortunately, we have to disable some tests due to some gpg-agent
476 ;; https://bugs.launchpad.net/pygpgme/+bug/999949
477 (patches (search-patches "pygpgme-disable-problematic-tests.patch"
478 "python-pygpgme-fix-pinentry-tests.patch"))))
481 (modify-phases %standard-phases
482 (add-before 'build 'make-build
484 (zero? (system* "make" "build"))))
487 (zero? (system* "make" "check")))))))
488 (build-system python-build-system)
490 `(("gnupg" ,gnupg-2.0)
492 (home-page "https://launchpad.net/pygpgme")
493 (synopsis "Python module for working with OpenPGP messages")
495 "PyGPGME is a Python module that lets you sign, verify, encrypt and
496 decrypt messages using the OpenPGP format by making use of GPGME.")
497 (license license:lgpl2.1+)))
499 (define-public python2-pygpgme
500 (package-with-python2 python-pygpgme))
502 (define-public python-gnupg
504 (name "python-gnupg")
509 (uri (pypi-uri "python-gnupg" version))
512 "0nkbs9c8f30lra7ca39kg91x8cyxn0jb61vih4qky839gpbwwwiq"))))
513 (build-system python-build-system)
516 (modify-phases %standard-phases
519 (substitute* "test_gnupg.py"
520 ;; Exported keys don't have a version line!
521 (("del k1\\[1\\]") "#")
522 ;; Unsure why this test fails.
523 (("'test_search_keys'") "True")
524 (("def test_search_keys") "def disabled__search_keys"))
525 (setenv "USERNAME" "guixbuilder")
526 ;; The doctests are extremely slow and sometimes time out,
527 ;; so we disable them.
528 (zero? (system* "python"
529 "test_gnupg.py" "--no-doctests")))))))
531 `(("gnupg" ,gnupg-1)))
532 (home-page "https://packages.python.org/python-gnupg/index.html")
533 (synopsis "Wrapper for the GNU Privacy Guard")
535 "This module allows easy access to GnuPG’s key management, encryption
536 and signature functionality from Python programs.")
537 (license license:bsd-3)))
539 (define-public python2-gnupg
540 (package-with-python2 python-gnupg))
542 (define-public perl-gnupg-interface
544 (name "perl-gnupg-interface")
550 "mirror://cpan/authors/id/A/AL/ALEXMV/GnuPG-Interface-"
555 "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4"))))
556 (build-system perl-build-system)
559 ;; Failed 10/20 test programs. 21/52 subtests failed.
562 `(("perl-module-install" ,perl-module-install)
567 `(("perl-moo" ,perl-moo)
568 ("perl-moox-late" ,perl-moox-late)
569 ("perl-moox-handlesvia" ,perl-moox-handlesvia)))
570 (home-page "http://search.cpan.org/~alexmv/GnuPG-Interface/")
571 (synopsis "Perl interface to GnuPG")
573 "@code{GnuPG::Interface} and its associated modules are designed to
574 provide an object-oriented method for interacting with GnuPG, being able to
575 perform functions such as but not limited to encrypting, signing, decryption,
576 verification, and key-listing parsing.")
577 (license license:perl-license)))
586 "https://github.com/jaymzh/pius/releases/download/v"
587 version "/pius-" version ".tar.bz2"))
590 "0lgc0ipwdfqbq16zax8kn17wbv8xyw4ygc09fawl2yp459z0ql4n"))))
591 (build-system python-build-system)
592 (inputs `(("perl" ,perl) ;for 'pius-party-worksheet'
596 #:python ,python-2 ;uses the Python 2 'print' syntax
598 (modify-phases %standard-phases
600 'build 'set-gpg-file-name
601 (lambda* (#:key inputs outputs #:allow-other-keys)
602 (let* ((gpg (string-append (assoc-ref inputs "gpg")
604 (substitute* "libpius/constants.py"
605 (("/usr/bin/gpg2") gpg))
607 (synopsis "Programs to simplify GnuPG key signing")
609 "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning
610 parties. It is the main utility and makes it possible to quickly and easily
611 sign each UID on a set of PGP keys. It is designed to take the pain out of
612 the sign-all-the-keys part of PGP Keysigning Party while adding security
615 pius-keyring-mgr and pius-party-worksheet help organisers of
616 PGP keysigning parties.")
617 (license license:gpl2)
618 (home-page "https://www.phildev.net/pius/index.shtml")))
620 (define-public signing-party
622 (name "signing-party")
626 (uri (string-append "mirror://debian/pool/main/s/signing-party/"
627 "signing-party_" version ".orig.tar.gz"))
629 "1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr"))))
630 (build-system gnu-build-system)
632 `(("autoconf" ,(autoconf-wrapper))
633 ("automake" ,automake)))
634 (inputs `(("perl" ,perl)
635 ("perl-text-template" ,perl-text-template)
636 ("perl-mime-tools" ,perl-mime-tools)
637 ("perl-gnupg-interface" ,perl-gnupg-interface)
638 ("perl-net-idn-encode" ,perl-net-idn-encode)
643 (modify-phases %standard-phases
644 (add-before 'configure 'change-directory
646 ;; The build system in the unpack phase changes to a less useful
647 ;; subdirectory, so move up one level
648 (chdir (dirname (getcwd)))))
650 (lambda* (#:key outputs #:allow-other-keys)
651 (let ((out (assoc-ref outputs "out")))
652 (substitute* "keyanalyze/Makefile"
653 (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
654 (substitute* "keyanalyze/Makefile"
655 (("\\./configure") (string-append "./configure --prefix=" out)))
656 (substitute* "gpgwrap/src/Makefile"
658 (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
659 out "/bin/gpgwrap\n")))
660 (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
661 "keylookup/Makefile" "sig2dot/Makefile"
662 "springgraph/Makefile")
664 (setenv "CONFIG_SHELL" (which "sh")))))
666 (lambda* (#:key outputs #:allow-other-keys #:rest args)
667 (let ((out (assoc-ref outputs "out"))
668 (install (assoc-ref %standard-phases 'install)))
672 (copy-file (string-append dir "/" file)
673 (string-append out "/bin/" file)))
674 '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
675 "gpglist" "gpg-mailkeys" "gpgparticipants")
676 '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
677 "gpglist" "gpg-mailkeys" "gpgparticipants"))
680 (copy-file (string-append dir "/" file)
681 (string-append out "/share/man/man1/" file)))
682 '("caff" "caff" "caff" "gpgdir"
683 "gpg-key2ps" "gpglist" "gpg-mailkeys"
684 "gpgparticipants" "gpgsigs" "gpgwrap/doc"
685 "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
686 '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
687 "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
688 "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
689 "process_keys.1" "pgpring.1" "keyanalyze.1")))))
690 (add-after 'install 'wrap-programs
691 (lambda* (#:key outputs #:allow-other-keys)
692 (let* ((out (assoc-ref outputs "out")))
694 (string-append out "/bin/caff")
695 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))))
696 (synopsis "Collection of scripts for simplifying gnupg key signing")
698 "Signing-party is a collection for all kinds of PGP/GnuPG related things,
699 including tools for signing keys, keyring analysis, and party preparation.
701 @item caff: CA - Fire and Forget signs and mails a key
702 @item pgp-clean: removes all non-self signatures from key
703 @item pgp-fixkey: removes broken packets from keys
704 @item gpg-mailkeys: simply mail out a signed key to its owner
705 @item gpg-key2ps: generate PostScript file with fingerprint paper strips
706 @item gpgdir: recursive directory encryption tool
707 @item gpglist: show who signed which of your UIDs
708 @item gpgsigs: annotates list of GnuPG keys with already done signatures
709 @item gpgparticipants: create list of party participants for the organiser
710 @item gpgwrap: a passphrase wrapper
711 @item keyanalyze: minimum signing distance (MSD) analysis on keyrings
712 @item keylookup: ncurses wrapper around gpg --search
713 @item sig2dot: converts a list of GnuPG signatures to a .dot file
714 @item springgraph: creates a graph from a .dot file
716 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
717 ;; and caff and gpgsigs: bsd-3, see
718 ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
719 (license license:gpl2)
720 (home-page "https://pgp-tools.alioth.debian.org/")))
722 (define-public pinentry-tty
724 (name "pinentry-tty")
728 (uri (string-append "mirror://gnupg/pinentry/pinentry-"
732 "0ni7g4plq6x78p32al7m8h2zsakvg1rhfz0qbc3kdc7yq7nw4whn"))))
733 (build-system gnu-build-system)
735 `(#:configure-flags '("--enable-pinentry-tty")))
737 `(("ncurses" ,ncurses)
738 ("libassuan" ,libassuan)
739 ("libsecret" ,libsecret "out")))
741 `(("pkg-config" ,pkg-config)))
742 (home-page "https://gnupg.org/aegypten2/")
743 (synopsis "GnuPG's interface to passphrase input")
745 "Pinentry provides a console that allows users to enter a passphrase when
746 @code{gpg} is run and needs it.")
747 (license license:gpl2+)))
749 (define-public pinentry-gtk2
751 (inherit pinentry-tty)
752 (name "pinentry-gtk2")
756 ,@(package-inputs pinentry-tty)))
758 "Pinentry provides a console and a GTK+ GUI that allows users to enter a
759 passphrase when @code{gpg} is run and needs it.")))
761 (define-public pinentry-gnome3
763 (inherit pinentry-tty)
764 (name "pinentry-gnome3")
769 ,@(package-inputs pinentry-tty)))
771 `(#:configure-flags '("--enable-pinentry-gnome3")))
773 "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3
774 that allows users to enter a passphrase when required by @code{gpg} or other
777 (define-public pinentry-qt
779 (inherit pinentry-tty)
783 ,@(package-inputs pinentry-tty)))
785 `(#:configure-flags '("CXXFLAGS=-std=gnu++11")))
787 "Pinentry provides a console and a Qt GUI that allows users to enter a
788 passphrase when @code{gpg} is run and needs it.")))
790 (define-public pinentry
791 (package (inherit pinentry-gtk2)
794 (define-public paperkey
800 (uri (string-append "http://www.jabberwocky.com/"
801 "software/paperkey/paperkey-"
805 "1yybj8bj68v4lxwpn596b6ismh2fyixw5vlqqg26byrn4d9dfmsv"))))
806 (build-system gnu-build-system)
809 (modify-phases %standard-phases
810 (add-before 'check 'patch-check-scripts
812 (substitute* '("checks/roundtrip.sh"
813 "checks/roundtrip-raw.sh")
814 (("/bin/echo") "echo"))
816 (home-page "http://www.jabberwocky.com/software/paperkey/")
817 (synopsis "Backup OpenPGP keys to paper")
819 "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key
820 for printing with paper and ink, which have amazingly long retention
821 qualities. To reconstruct a secret key, you re-enter those
822 bytes (whether by hand, OCR, QR code, or the like) and paperkey can use
823 them to transform your existing public key into a secret key.")
824 (license license:gpl2+)))
832 (uri (string-append "mirror://gnupg/gpa/"
833 name "-" version ".tar.bz2"))
836 "09xphbi2456qynwqq5n0yh0zdmdi2ggrj3wk4hsyh5lrzlvcrff3"))))
837 (build-system gnu-build-system)
839 `(("pkg-config" ,pkg-config)))
843 ("libassuan" ,libassuan)
844 ("libgpg-error" ,libgpg-error)
846 (home-page "https://gnupg.org/software/gpa/")
847 (synopsis "Graphical user interface for GnuPG")
849 "GPA, the GNU Privacy Assistant, is a graphical user interface for
850 @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign
851 files, to verify signatures, and to manage the private and public keys.")
852 (license license:gpl3+)))