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, 2017 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>
15 ;;; Copyright © 2017 Petter <petter@mykolab.ch>
17 ;;; This file is part of GNU Guix.
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32 (define-module (gnu packages gnupg)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages adns)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages base)
38 #:use-module (gnu packages curl)
39 #:use-module (gnu packages crypto)
40 #:use-module (gnu packages openldap)
41 #:use-module (gnu packages perl)
42 #:use-module (gnu packages pth)
43 #:use-module (gnu packages python)
44 #:use-module (gnu packages qt)
45 #:use-module (gnu packages readline)
46 #:use-module (gnu packages compression)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages gtk)
49 #:use-module (gnu packages glib)
50 #:use-module (gnu packages gnome)
51 #:use-module (gnu packages pkg-config)
52 #:use-module (gnu packages ncurses)
53 #:use-module (gnu packages security-token)
54 #:use-module (gnu packages swig)
55 #:use-module (gnu packages tls)
56 #:use-module (guix packages)
57 #:use-module (guix download)
58 #:use-module (guix git-download)
59 #:use-module (guix build-system gnu)
60 #:use-module (guix build-system perl)
61 #:use-module (guix build-system python))
63 (define-public libgpg-error
70 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
74 "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg"))))
75 (build-system gnu-build-system)
76 (home-page "https://gnupg.org")
77 (synopsis "Library of error values for GnuPG components")
79 "Libgpg-error is a small library that defines common error values
80 for all GnuPG components. Among these are GPG, GPGSM, GPGME,
81 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
82 Daemon and possibly more in the future.")
83 (license license:lgpl2.0+)
84 (properties '((ftp-server . "ftp.gnupg.org")
85 (ftp-directory . "/gcrypt/libgpg-error")))))
87 (define-public libgcrypt
89 (replacement libgcrypt/fixed)
94 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
98 "16f1rsv4y4w2pk1il2jbcqggsb6mrlfva5vayd205fp68zm7d0ll"))))
99 (build-system gnu-build-system)
101 `(("libgpg-error-host" ,libgpg-error)))
103 ;; Needed here for the 'gpg-error' program.
104 `(("libgpg-error-native" ,libgpg-error)))
106 ;; The '--with-gpg-error-prefix' argument is needed because otherwise
107 ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
108 ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
110 (list (string-append "--with-gpg-error-prefix="
111 (assoc-ref %build-inputs "libgpg-error-host")))))
112 (outputs '("out" "debug"))
113 (home-page "https://gnupg.org/")
114 (synopsis "Cryptographic function library")
116 "Libgcrypt is a general-purpose cryptographic library. It provides the
117 standard cryptographic building blocks such as symmetric ciphers, hash
118 algorithms, public key algorithms, large integer functions and random number
120 (license license:lgpl2.0+)
121 (properties '((ftp-server . "ftp.gnupg.org")
122 (ftp-directory . "/gcrypt/libgcrypt")))))
124 (define libgcrypt/fixed
130 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
134 "1cvqd9jk5qshbh48yh3ixw4zyr4n5k50r3475rrh20xfn7w7aa3s"))))))
136 (define-public libassuan
143 (uri (string-append "mirror://gnupg/libassuan/libassuan-"
147 "0w9bmasln4z8mn16s1is55a06w3nv8jbyal496z5jvr5vcxkm112"))))
148 (build-system gnu-build-system)
150 `(("libgpg-error" ,libgpg-error) ("pth" ,pth)))
151 (home-page "https://gnupg.org")
153 "IPC library used by GnuPG and related software")
155 "Libassuan is a small library implementing the so-called Assuan
156 protocol. This protocol is used for IPC between most newer
157 GnuPG components. Both, server and client side functions are
159 (license license:lgpl2.0+)
160 (properties '((ftp-server . "ftp.gnupg.org")
161 (ftp-directory . "/gcrypt/libassuan")))))
163 (define-public libksba
171 "mirror://gnupg/libksba/libksba-"
175 "0h53q4sns1jz1pkmhcz5wp9qrfn9f5g9i3vjv6dafwzzlvblyi21"))))
176 (build-system gnu-build-system)
178 `(("libgpg-error" ,libgpg-error)))
180 `(("libgpg-error" ,libgpg-error)))
183 (list ,@(if (%current-target-system)
184 '("CC_FOR_BUILD=gcc")
186 (string-append "--with-gpg-error-prefix="
187 (assoc-ref %build-inputs "libgpg-error")))))
188 (home-page "https://www.gnupg.org")
189 (synopsis "CMS and X.509 access library")
191 "KSBA (pronounced Kasbah) is a library to make X.509 certificates
192 as well as the CMS easily accessible by other applications. Both
193 specifications are building blocks of S/MIME and TLS.")
194 (license license:gpl3+)
195 (properties '((ftp-server . "ftp.gnupg.org")
196 (ftp-directory . "/gcrypt/libksba")))))
205 (uri (string-append "mirror://gnupg/npth/npth-" version ".tar.bz2"))
208 "1hmkkp6vzyrh8v01c2ynzf9vwikyagp7p1lxhbnr4ysk3w66jji9"))))
209 (build-system gnu-build-system)
210 (home-page "https://www.gnupg.org")
211 (synopsis "Non-preemptive thread library")
213 "Npth is a library to provide the GNU Pth API and thus a non-preemptive
214 threads implementation.
216 In contrast to GNU Pth is is based on the system's standard threads
217 implementation. This allows the use of libraries which are not
218 compatible to GNU Pth.")
219 (license (list license:lgpl3+ license:gpl2+)))) ; dual license
227 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
231 "1yv2pwf3vhv9dpbf51fnm0wy03va1cg5r7qaz7rg75cwbgb0rmrl"))))
232 (build-system gnu-build-system)
234 `(("pkg-config" ,pkg-config)))
239 ("libassuan" ,libassuan)
240 ("libgcrypt" ,libgcrypt)
241 ("libgpg-error" ,libgpg-error)
244 ("openldap" ,openldap)
245 ("pcsc-lite" ,pcsc-lite)
246 ("readline" ,readline)
250 `(#:configure-flags '(;; Otherwise, the test suite looks for the `gpg`
251 ;; executable in its installation directory in
252 ;; /gnu/store before it has been installed.
253 "--enable-gnupg-builddir-envvar"
254 "--enable-all-tests")
256 (modify-phases %standard-phases
257 (add-before 'configure 'patch-paths
258 (lambda* (#:key inputs #:allow-other-keys)
259 (substitute* "scd/scdaemon.c"
260 (("\"(libpcsclite\\.so[^\"]*)\"" _ name)
261 (string-append "\"" (assoc-ref inputs "pcsc-lite")
264 (add-after 'build 'patch-scheme-tests
266 (substitute* (find-files "tests" ".\\.scm$")
267 (("/usr/bin/env gpgscm")
268 (string-append (getcwd) "/tests/gpgscm/gpgscm")))
270 (add-before 'build 'patch-test-paths
272 (substitute* '("tests/inittests"
273 "tests/pkits/inittests"
275 "tests/pkits/common.sh"
276 "tests/pkits/Makefile")
277 (("/bin/pwd") (which "pwd")))
278 (substitute* "common/t-exectool.c"
279 (("/bin/cat") (which "cat"))
280 (("/bin/true") (which "true"))
281 (("/bin/false") (which "false")))
283 (home-page "https://gnupg.org/")
284 (synopsis "GNU Privacy Guard")
286 "The GNU Privacy Guard is a complete implementation of the OpenPGP
287 standard. It is used to encrypt and sign data and communication. It
288 features powerful key management and the ability to access public key
289 servers. It includes several libraries: libassuan (IPC between GnuPG
290 components), libgpg-error (centralized GnuPG error values), and
291 libskba (working with X.509 certificates and CMS data).")
292 (license license:gpl3+)
293 (properties '((ftp-server . "ftp.gnupg.org")
294 (ftp-directory . "/gcrypt/gnupg")))))
296 (define-public gnupg-2.0
297 (package (inherit gnupg)
301 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
305 "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3"))))
311 ("libassuan" ,libassuan)
312 ("libgcrypt" ,libgcrypt)
313 ("libgpg-error" ,libgpg-error)
316 ("openldap" ,openldap)
318 ("readline" ,readline)))
321 (modify-phases %standard-phases
322 (add-before 'configure 'patch-config-files
324 (substitute* "tests/openpgp/Makefile.in"
325 (("/bin/sh") (which "sh")))
327 (add-after 'install 'rename-v2-commands
328 (lambda* (#:key outputs #:allow-other-keys)
329 ;; Upstream suggests removing the trailing '2' from command names:
330 ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>.
331 (let ((out (assoc-ref outputs "out")))
332 (with-directory-excursion (string-append out "/bin")
333 (rename-file "gpgv2" "gpgv")
334 (rename-file "gpg2" "gpg")
336 ;; Keep the old name around to ease transition.
337 (symlink "gpgv" "gpgv2")
338 (symlink "gpg" "gpg2")
341 (define-public gnupg-1
342 (package (inherit gnupg)
346 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
350 "1d1hz4szh1kvwhsw7w2zxa6q5ndrk3qy6hj289l1b8k3xi5s554m"))))
356 ("readline" ,readline)
357 ("libgpg-error" ,libgpg-error)))
360 (modify-phases %standard-phases
361 (add-after 'unpack 'patch-check-sh
363 (substitute* "checks/Makefile.in"
364 (("/bin/sh") (which "sh"))))))))))
373 (uri (string-append "mirror://gnupg/gpgme/gpgme-" version
377 "1ssc0gs02r4fasabk7c6v6r865k2j02mpb5g1vkpbmzsigdzwa8v"))))
378 (build-system gnu-build-system)
380 ;; Needs to be propagated because gpgme.h includes gpg-error.h.
381 `(("libgpg-error" ,libgpg-error)))
383 `(("gnupg" ,gnupg-2.0)
384 ("libassuan" ,libassuan)))
387 (modify-phases %standard-phases
388 (add-after 'configure 'patch-cmake-file
390 ;; Work around <https://bugs.gnupg.org/gnupg/issue2877>.
391 (substitute* "lang/cpp/src/GpgmeppConfig.cmake.in"
392 (("@libsuffix@") ".so"))
394 (home-page "https://www.gnupg.org/related_software/gpgme/")
395 (synopsis "Library providing simplified access to GnuPG functionality")
397 "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
398 easier for applications. It provides a High-Level Crypto API for encryption,
399 decryption, signing, signature verification and key management. Currently
400 it uses GnuPG as its backend but the API isn't restricted to this engine.
402 Because the direct use of GnuPG from an application can be a complicated
403 programming task, it is suggested that all software should try to use GPGME
404 instead. This way bug fixes or improvements can be done at a central place
405 and every application benefits from this.")
406 (license license:lgpl2.1+)))
408 (define-public qgpgme
414 (modify-phases %standard-phases
415 (add-before 'build 'chdir-and-symlink
416 (lambda* (#:key inputs #:allow-other-keys)
417 (let ((gpgme (assoc-ref inputs "gpgme")))
418 (symlink (string-append gpgme "/lib/libgpgmepp.la")
419 "lang/cpp/src/libgpgmepp.la")
420 (symlink (string-append gpgme "/lib/libgpgme.la")
425 `(("pkg-config" ,pkg-config)))
429 ,@(package-inputs gpgme)))
430 (synopsis "Qt API bindings for gpgme")
431 (description "QGpgme provides a very high level Qt API around GpgMEpp.
433 QGpgME was originally developed as part of libkleo and incorporated into
434 gpgpme starting with version 1.7.")
435 (license license:gpl2+))) ;; Note: this differs from gpgme
437 (define-public python-gpg
443 (uri (pypi-uri "gpg" version))
446 "1x74i6q713c0bckls7rdm8kgsmllf9qvy9x62jghszlhgjkyh9nd"))))
447 (build-system python-build-system)
449 '(#:tests? #f)) ; No test suite.
454 (home-page (package-home-page gpgme))
455 (synopsis "Python bindings for GPGME GnuPG cryptography library")
456 (description "This package provides Python bindings to the GPGME GnuPG
457 cryptographic library. It is developed in the GPGME source code, and then
458 distributed separately.")
459 (license license:lgpl2.1+)))
461 (define-public python2-gpg
462 (package-with-python2 python-gpg))
464 (define-public python-pygpgme
466 (name "python-pygpgme")
471 (uri (pypi-uri "pygpgme" version))
474 "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z"))
475 ;; Unfortunately, we have to disable some tests due to some gpg-agent
477 ;; https://bugs.launchpad.net/pygpgme/+bug/999949
478 (patches (search-patches "pygpgme-disable-problematic-tests.patch"
479 "python-pygpgme-fix-pinentry-tests.patch"))))
482 (modify-phases %standard-phases
483 (add-before 'build 'make-build
485 (zero? (system* "make" "build"))))
488 (zero? (system* "make" "check")))))))
489 (build-system python-build-system)
491 `(("gnupg" ,gnupg-2.0)
493 (home-page "https://launchpad.net/pygpgme")
494 (synopsis "Python module for working with OpenPGP messages")
496 "PyGPGME is a Python module that lets you sign, verify, encrypt and
497 decrypt messages using the OpenPGP format by making use of GPGME.")
498 (license license:lgpl2.1+)))
500 (define-public python2-pygpgme
501 (package-with-python2 python-pygpgme))
503 (define-public python-gnupg
505 (name "python-gnupg")
510 (uri (pypi-uri "python-gnupg" version))
513 "0nkbs9c8f30lra7ca39kg91x8cyxn0jb61vih4qky839gpbwwwiq"))))
514 (build-system python-build-system)
517 (modify-phases %standard-phases
520 (substitute* "test_gnupg.py"
521 ;; Exported keys don't have a version line!
522 (("del k1\\[1\\]") "#")
523 ;; Unsure why this test fails.
524 (("'test_search_keys'") "True")
525 (("def test_search_keys") "def disabled__search_keys"))
526 (setenv "USERNAME" "guixbuilder")
527 ;; The doctests are extremely slow and sometimes time out,
528 ;; so we disable them.
529 (zero? (system* "python"
530 "test_gnupg.py" "--no-doctests")))))))
532 `(("gnupg" ,gnupg-1)))
533 (home-page "https://packages.python.org/python-gnupg/index.html")
534 (synopsis "Wrapper for the GNU Privacy Guard")
536 "This module allows easy access to GnuPG’s key management, encryption
537 and signature functionality from Python programs.")
538 (license license:bsd-3)))
540 (define-public python2-gnupg
541 (package-with-python2 python-gnupg))
543 (define-public perl-gnupg-interface
545 (name "perl-gnupg-interface")
551 "mirror://cpan/authors/id/A/AL/ALEXMV/GnuPG-Interface-"
556 "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4"))))
557 (build-system perl-build-system)
560 ;; Failed 10/20 test programs. 21/52 subtests failed.
563 `(("perl-module-install" ,perl-module-install)
568 `(("perl-moo" ,perl-moo)
569 ("perl-moox-late" ,perl-moox-late)
570 ("perl-moox-handlesvia" ,perl-moox-handlesvia)))
571 (home-page "http://search.cpan.org/~alexmv/GnuPG-Interface/")
572 (synopsis "Perl interface to GnuPG")
574 "@code{GnuPG::Interface} and its associated modules are designed to
575 provide an object-oriented method for interacting with GnuPG, being able to
576 perform functions such as but not limited to encrypting, signing, decryption,
577 verification, and key-listing parsing.")
578 (license license:perl-license)))
587 "https://github.com/jaymzh/pius/releases/download/v"
588 version "/pius-" version ".tar.bz2"))
591 "0lgc0ipwdfqbq16zax8kn17wbv8xyw4ygc09fawl2yp459z0ql4n"))))
592 (build-system python-build-system)
593 (inputs `(("perl" ,perl) ;for 'pius-party-worksheet'
597 #:python ,python-2 ;uses the Python 2 'print' syntax
599 (modify-phases %standard-phases
601 'build 'set-gpg-file-name
602 (lambda* (#:key inputs outputs #:allow-other-keys)
603 (let* ((gpg (string-append (assoc-ref inputs "gpg")
605 (substitute* "libpius/constants.py"
606 (("/usr/bin/gpg2") gpg))
608 (synopsis "Programs to simplify GnuPG key signing")
610 "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning
611 parties. It is the main utility and makes it possible to quickly and easily
612 sign each UID on a set of PGP keys. It is designed to take the pain out of
613 the sign-all-the-keys part of PGP Keysigning Party while adding security
616 pius-keyring-mgr and pius-party-worksheet help organisers of
617 PGP keysigning parties.")
618 (license license:gpl2)
619 (home-page "https://www.phildev.net/pius/index.shtml")))
621 (define-public signing-party
623 (name "signing-party")
627 (uri (string-append "mirror://debian/pool/main/s/signing-party/"
628 "signing-party_" version ".orig.tar.gz"))
630 "1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr"))))
631 (build-system gnu-build-system)
633 `(("autoconf" ,(autoconf-wrapper))
634 ("automake" ,automake)))
635 (inputs `(("perl" ,perl)
636 ("perl-text-template" ,perl-text-template)
637 ("perl-mime-tools" ,perl-mime-tools)
638 ("perl-gnupg-interface" ,perl-gnupg-interface)
639 ("perl-net-idn-encode" ,perl-net-idn-encode)
644 (modify-phases %standard-phases
645 (add-before 'configure 'change-directory
647 ;; The build system in the unpack phase changes to a less useful
648 ;; subdirectory, so move up one level
649 (chdir (dirname (getcwd)))))
651 (lambda* (#:key outputs #:allow-other-keys)
652 (let ((out (assoc-ref outputs "out")))
653 (substitute* "keyanalyze/Makefile"
654 (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
655 (substitute* "keyanalyze/Makefile"
656 (("\\./configure") (string-append "./configure --prefix=" out)))
657 (substitute* "gpgwrap/src/Makefile"
659 (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
660 out "/bin/gpgwrap\n")))
661 (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
662 "keylookup/Makefile" "sig2dot/Makefile"
663 "springgraph/Makefile")
665 (setenv "CONFIG_SHELL" (which "sh")))))
667 (lambda* (#:key outputs #:allow-other-keys #:rest args)
668 (let ((out (assoc-ref outputs "out"))
669 (install (assoc-ref %standard-phases 'install)))
673 (copy-file (string-append dir "/" file)
674 (string-append out "/bin/" file)))
675 '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
676 "gpglist" "gpg-mailkeys" "gpgparticipants")
677 '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
678 "gpglist" "gpg-mailkeys" "gpgparticipants"))
681 (copy-file (string-append dir "/" file)
682 (string-append out "/share/man/man1/" file)))
683 '("caff" "caff" "caff" "gpgdir"
684 "gpg-key2ps" "gpglist" "gpg-mailkeys"
685 "gpgparticipants" "gpgsigs" "gpgwrap/doc"
686 "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
687 '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
688 "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
689 "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
690 "process_keys.1" "pgpring.1" "keyanalyze.1")))))
691 (add-after 'install 'wrap-programs
692 (lambda* (#:key outputs #:allow-other-keys)
693 (let* ((out (assoc-ref outputs "out")))
695 (string-append out "/bin/caff")
696 `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))))
697 (synopsis "Collection of scripts for simplifying gnupg key signing")
699 "Signing-party is a collection for all kinds of PGP/GnuPG related things,
700 including tools for signing keys, keyring analysis, and party preparation.
702 @item caff: CA - Fire and Forget signs and mails a key
703 @item pgp-clean: removes all non-self signatures from key
704 @item pgp-fixkey: removes broken packets from keys
705 @item gpg-mailkeys: simply mail out a signed key to its owner
706 @item gpg-key2ps: generate PostScript file with fingerprint paper strips
707 @item gpgdir: recursive directory encryption tool
708 @item gpglist: show who signed which of your UIDs
709 @item gpgsigs: annotates list of GnuPG keys with already done signatures
710 @item gpgparticipants: create list of party participants for the organiser
711 @item gpgwrap: a passphrase wrapper
712 @item keyanalyze: minimum signing distance (MSD) analysis on keyrings
713 @item keylookup: ncurses wrapper around gpg --search
714 @item sig2dot: converts a list of GnuPG signatures to a .dot file
715 @item springgraph: creates a graph from a .dot file
717 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
718 ;; and caff and gpgsigs: bsd-3, see
719 ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
720 (license license:gpl2)
721 (home-page "https://pgp-tools.alioth.debian.org/")))
723 (define-public pinentry-tty
725 (name "pinentry-tty")
729 (uri (string-append "mirror://gnupg/pinentry/pinentry-"
733 "0ni7g4plq6x78p32al7m8h2zsakvg1rhfz0qbc3kdc7yq7nw4whn"))))
734 (build-system gnu-build-system)
736 `(#:configure-flags '("--enable-pinentry-tty")))
738 `(("ncurses" ,ncurses)
739 ("libassuan" ,libassuan)
740 ("libsecret" ,libsecret "out")))
742 `(("pkg-config" ,pkg-config)))
743 (home-page "https://gnupg.org/aegypten2/")
744 (synopsis "GnuPG's interface to passphrase input")
746 "Pinentry provides a console that allows users to enter a passphrase when
747 @code{gpg} is run and needs it.")
748 (license license:gpl2+)))
750 (define-public pinentry-gtk2
752 (inherit pinentry-tty)
753 (name "pinentry-gtk2")
757 ,@(package-inputs pinentry-tty)))
759 "Pinentry provides a console and a GTK+ GUI that allows users to enter a
760 passphrase when @code{gpg} is run and needs it.")))
762 (define-public pinentry-gnome3
764 (inherit pinentry-tty)
765 (name "pinentry-gnome3")
770 ,@(package-inputs pinentry-tty)))
772 `(#:configure-flags '("--enable-pinentry-gnome3")))
774 "Pinentry provides a console and a GUI designed for use with GNOME@tie{}3
775 that allows users to enter a passphrase when required by @code{gpg} or other
778 (define-public pinentry-qt
780 (inherit pinentry-tty)
784 ,@(package-inputs pinentry-tty)))
786 `(#:configure-flags '("CXXFLAGS=-std=gnu++11")))
788 "Pinentry provides a console and a Qt GUI that allows users to enter a
789 passphrase when @code{gpg} is run and needs it.")))
791 (define-public pinentry
792 (package (inherit pinentry-gtk2)
795 (define-public paperkey
801 (uri (string-append "http://www.jabberwocky.com/"
802 "software/paperkey/paperkey-"
806 "1yybj8bj68v4lxwpn596b6ismh2fyixw5vlqqg26byrn4d9dfmsv"))))
807 (build-system gnu-build-system)
810 (modify-phases %standard-phases
811 (add-before 'check 'patch-check-scripts
813 (substitute* '("checks/roundtrip.sh"
814 "checks/roundtrip-raw.sh")
815 (("/bin/echo") "echo"))
817 (home-page "http://www.jabberwocky.com/software/paperkey/")
818 (synopsis "Backup OpenPGP keys to paper")
820 "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key
821 for printing with paper and ink, which have amazingly long retention
822 qualities. To reconstruct a secret key, you re-enter those
823 bytes (whether by hand, OCR, QR code, or the like) and paperkey can use
824 them to transform your existing public key into a secret key.")
825 (license license:gpl2+)))
833 (uri (string-append "mirror://gnupg/gpa/"
834 name "-" version ".tar.bz2"))
837 "09xphbi2456qynwqq5n0yh0zdmdi2ggrj3wk4hsyh5lrzlvcrff3"))))
838 (build-system gnu-build-system)
840 `(("pkg-config" ,pkg-config)))
844 ("libassuan" ,libassuan)
845 ("libgpg-error" ,libgpg-error)
847 (home-page "https://gnupg.org/software/gpa/")
848 (synopsis "Graphical user interface for GnuPG")
850 "GPA, the GNU Privacy Assistant, is a graphical user interface for
851 @uref{https://gnupg.org, GnuPG}. It can be used to encrypt, decrypt, and sign
852 files, to verify signatures, and to manage the private and public keys.")
853 (license license:gpl3+)))
855 (define-public perl-gnupg-interface
857 (name "perl-gnupg-interface")
861 (uri (string-append "mirror://cpan/authors/id/A/AL/ALEXMV/"
862 "GnuPG-Interface-" version ".tar.gz"))
865 "0dgx8yhdsmhkazcrz14n4flrk1afv7azgl003hl4arxvi1d9yyi4"))))
866 (build-system perl-build-system)
869 (modify-phases %standard-phases
870 ;; FIXME: This test fails for unknown reasons
871 (add-after 'unpack 'delete-broken-test
873 (delete-file "t/encrypt_symmetrically.t")
876 `(("gnupg" ,gnupg-1)))
878 `(("perl-moo" ,perl-moo)
879 ("perl-moox-handlesvia" ,perl-moox-handlesvia)
880 ("perl-moox-late" ,perl-moox-late)))
883 ("perl-module-install" ,perl-module-install)))
884 (home-page "http://search.cpan.org/dist/GnuPG-Interface/")
885 (synopsis "Perl interface to GnuPG")
886 (description "@code{GnuPG::Interface} and its associated modules are
887 designed to provide an object-oriented method for interacting with GnuPG,
888 being able to perform functions such as but not limited to encrypting,
889 signing, decryption, verification, and key-listing parsing.")
890 (license license:perl-license)))