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