build: 'sync-descriptions' now compares GNU package descriptions.
[jackhill/guix/guix.git] / gnu / packages / gnupg.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
84a3e3b7 2;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
ea4d96c6 3;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
8d1939e4 4;;;
233e7676 5;;; This file is part of GNU Guix.
8d1939e4 6;;;
233e7676 7;;; GNU Guix is free software; you can redistribute it and/or modify it
8d1939e4
LC
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
233e7676 12;;; GNU Guix is distributed in the hope that it will be useful, but
8d1939e4
LC
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
233e7676 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
8d1939e4 19
1ffa7090 20(define-module (gnu packages gnupg)
4a44e743 21 #:use-module (guix licenses)
01e11826
AE
22 #:use-module (gnu packages curl)
23 #:use-module (gnu packages openldap)
ea4d96c6 24 #:use-module (gnu packages perl)
1ffa7090 25 #:use-module (gnu packages pth)
ea4d96c6 26 #:use-module (gnu packages python)
1ffa7090
LC
27 #:use-module (gnu packages readline)
28 #:use-module ((gnu packages compression)
4a44e743 29 #:renamer (symbol-prefix-proc 'guix:))
8d1939e4 30 #:use-module (guix packages)
87f5d366 31 #:use-module (guix download)
8d1939e4
LC
32 #:use-module (guix build-system gnu))
33
34(define-public libgpg-error
35 (package
36 (name "libgpg-error")
e0bb2e6b 37 (version "1.12")
8d1939e4
LC
38 (source
39 (origin
87f5d366 40 (method url-fetch)
0db342a5 41 (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
8d1939e4
LC
42 version ".tar.bz2"))
43 (sha256
44 (base32
e0bb2e6b 45 "0pz58vr12qihq2f0bypjxsb6cf6ajq5258fmfm8s6lvwm3b9xz6a"))))
8d1939e4
LC
46 (build-system gnu-build-system)
47 (home-page "http://gnupg.org")
48 (synopsis
49 "Libgpg-error, a small library that defines common error values for all GnuPG components")
50 (description
51 "Libgpg-error is a small library that defines common error values
52for all GnuPG components. Among these are GPG, GPGSM, GPGME,
53GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
54Daemon and possibly more in the future.")
4a44e743 55 (license lgpl2.0+)))
8d1939e4
LC
56
57(define-public libgcrypt
58 (package
59 (name "libgcrypt")
24f3e788 60 (version "1.5.3")
84a3e3b7
LC
61 (source (origin
62 (method url-fetch)
63 (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-"
64 version ".tar.bz2"))
65 (sha256
66 (base32
24f3e788 67 "1lar8y3lh61zl5flljpz540d78g99h4d5idfwrfw8lm3gm737xdw"))))
8d1939e4
LC
68 (build-system gnu-build-system)
69 (propagated-inputs
70 `(("libgpg-error" ,libgpg-error)))
71 (home-page "http://gnupg.org/")
f50d2669 72 (synopsis "Cryptographic function library")
8d1939e4
LC
73 (description
74 "GNU Libgcrypt is a general purpose cryptographic library based on
75the code from GnuPG. It provides functions for all
76cryptographic building blocks: symmetric ciphers, hash
77algorithms, MACs, public key algorithms, large integer
78functions, random numbers and a lot of supporting functions.")
4a44e743 79 (license lgpl2.0+)))
8d1939e4
LC
80
81(define-public libassuan
82 (package
83 (name "libassuan")
e0bb2e6b 84 (version "2.1.1")
8d1939e4
LC
85 (source
86 (origin
87f5d366 87 (method url-fetch)
0db342a5 88 (uri (string-append "mirror://gnupg/libassuan/libassuan-"
8d1939e4
LC
89 version ".tar.bz2"))
90 (sha256
91 (base32
e0bb2e6b 92 "1783nb0b6nr9yjhb5wfh8ykc5w89f4anppz1kz9913mqg5vxdqi3"))))
8d1939e4
LC
93 (build-system gnu-build-system)
94 (propagated-inputs
95 `(("libgpg-error" ,libgpg-error) ("pth" ,pth)))
96 (home-page "http://gnupg.org")
97 (synopsis
98 "Libassuan, the IPC library used by GnuPG and related software")
99 (description
100 "Libassuan is a small library implementing the so-called Assuan
101protocol. This protocol is used for IPC between most newer
102GnuPG components. Both, server and client side functions are
103provided.")
4a44e743 104 (license lgpl2.0+)))
8d1939e4
LC
105
106(define-public libksba
107 (package
108 (name "libksba")
98fbd7ce 109 (version "1.3.0")
8d1939e4
LC
110 (source
111 (origin
87f5d366 112 (method url-fetch)
8d1939e4 113 (uri (string-append
0db342a5 114 "mirror://gnupg/libksba/libksba-"
8d1939e4
LC
115 version ".tar.bz2"))
116 (sha256
117 (base32
98fbd7ce 118 "0w8rfb6yhcwkwzvjafrashcygy4hd9xwwmvlnkfd1m2h0paywqas"))))
8d1939e4
LC
119 (build-system gnu-build-system)
120 (propagated-inputs
121 `(("libgpg-error" ,libgpg-error)))
122 (home-page "http://www.gnupg.org")
123 (synopsis
124 "Libksba is a CMS and X.509 access library under development")
125 (description
126 "KSBA (pronounced Kasbah) is a library to make X.509 certificates
127as well as the CMS easily accessible by other applications. Both
128specifications are building blocks of S/MIME and TLS.")
4a44e743 129 (license gpl3+)))
8d1939e4
LC
130
131(define-public gnupg
132 (package
133 (name "gnupg")
de73a878 134 (version "2.0.22")
8d1939e4
LC
135 (source
136 (origin
87f5d366 137 (method url-fetch)
0db342a5
LC
138 (uri (string-append "mirror://gnupg/gnupg/gnupg-" version
139 ".tar.bz2"))
8d1939e4
LC
140 (sha256
141 (base32
de73a878 142 "0lg210acj2rxq291q4cwamg9gx6gh2prb1xa93y5jhw5b6r0lza3"))))
8d1939e4
LC
143 (build-system gnu-build-system)
144 (inputs
f1be8061 145 `(("bzip2" ,guix:bzip2)
01e11826 146 ("curl" ,curl)
8d1939e4
LC
147 ("libassuan" ,libassuan)
148 ("libgcrypt" ,libgcrypt)
01e11826 149 ("libgpg-error" ,libgpg-error)
8d1939e4
LC
150 ("libksba" ,libksba)
151 ("pth" ,pth)
01e11826 152 ("openldap" ,openldap)
4a44e743 153 ("zlib" ,guix:zlib)
8d1939e4 154 ("readline" ,readline)))
30e9cbb4
AE
155 (arguments
156 `(#:phases
157 (alist-replace
158 'configure
159 (lambda* (#:key #:allow-other-keys #:rest args)
160 (let ((configure (assoc-ref %standard-phases 'configure)))
161 (substitute* "tests/openpgp/Makefile.in"
162 (("/bin/sh") (which "bash")))
163 (apply configure args)))
164 %standard-phases)))
8d1939e4 165 (home-page "http://gnupg.org/")
f50d2669 166 (synopsis "GNU Privacy Guard")
8d1939e4
LC
167 (description
168 "GnuPG is the GNU project's complete and free implementation of
169the OpenPGP standard as defined by RFC4880. GnuPG allows to
170encrypt and sign your data and communication, features a
171versatile key managment system as well as access modules for all
172kind of public key directories. GnuPG, also known as GPG, is a
173command line tool with features for easy integration with other
174applications. A wealth of frontend applications and libraries
175are available. Version 2 of GnuPG also provides support for
176S/MIME.")
4a44e743 177 (license gpl3+)))
ea4d96c6 178
09d5c166
AE
179(define-public gpgme
180 (package
181 (name "gpgme")
182 (version "1.4.3")
183 (source
184 (origin
185 (method url-fetch)
186 (uri (string-append "mirror://gnupg/gpgme/gpgme-" version
187 ".tar.bz2"))
188 (sha256
189 (base32
190 "15h429h6pd67iiv580bjmwbkadpxsdppw0xrqpcm4dvm24jc271d"))))
191 (build-system gnu-build-system)
192 (inputs
193 `(("gnupg" ,gnupg)
194 ("libassuan" ,libassuan)
195 ("libgpg-error" ,libgpg-error)))
196 (home-page "http://www.gnupg.org/related_software/gpgme/")
197 (synopsis "library providing simplified access to GnuPG functionality")
198 (description
199 "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
200easier for applications. It provides a High-Level Crypto API for encryption,
201decryption, signing, signature verification and key management. Currently
202it uses GnuPG as its backend but the API isn't restricted to this engine.
203
204Because the direct use of GnuPG from an application can be a complicated
205programming task, it is suggested that all software should try to use GPGME
206instead. This way bug fixes or improvements can be done at a central place
207and every application benefits from this.")
208 (license lgpl2.1+)))
209
ea4d96c6
AE
210(define-public pius
211 (package
212 (name "pius")
213 (version "2.0.9")
214 (source (origin
215 (method url-fetch)
216 (uri (string-append "mirror://sourceforge/pgpius/pius/"
217 version "/pius-"
218 version ".tar.bz2"))
219 (sha256 (base32
220 "1g1jly3wl4ks6h8ydkygyl2c4i7v3z91rg42005m6vm70y1d8b3d"))))
221 (build-system gnu-build-system)
222 (inputs `(("perl" ,perl)
ee3e314b 223 ("python" ,python-wrapper)
9eed6f9b 224 ("gpg" ,gnupg)))
ea4d96c6
AE
225 (arguments
226 `(#:tests? #f
227 #:phases
228 (alist-replace
229 'configure
230 (lambda* (#:key #:allow-other-keys) #t)
231 (alist-replace
232 'build
233 (lambda* (#:key #:allow-other-keys) #t)
234 (alist-replace
235 'install
9eed6f9b
LC
236 (lambda* (#:key inputs outputs #:allow-other-keys)
237 (let* ((out (assoc-ref outputs "out"))
238 (gpg (string-append (assoc-ref inputs "gpg")
239 "/bin/gpg2")))
ea4d96c6
AE
240 (mkdir out)
241 (mkdir (string-append out "/bin"))
9eed6f9b
LC
242 (for-each (lambda (file)
243 (substitute* file
244 (("/usr/bin/gpg") gpg))
245 (copy-file file (string-append out "/bin/" file)))
246 '("pius" "pius-keyring-mgr" "pius-party-worksheet"))))
ea4d96c6 247 %standard-phases)))))
9eed6f9b 248 (synopsis "Programs to simplify GnuPG key signing")
ea4d96c6
AE
249 (description
250 "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning
251parties. It is the main utility and makes it possible to quickly and easily
252sign each UID on a set of PGP keys. It is designed to take the pain out of
253the sign-all-the-keys part of PGP Keysigning Party while adding security
254to the process.
255
256pius-keyring-mgr and pius-party-worksheet help organisers of
257PGP keysigning parties.")
258 (license gpl2)
259 (home-page "http://www.phildev.net/pius/index.shtml")))
96be765c
AE
260
261(define-public signing-party
262 (package
263 (name "signing-party")
264 (version "1.1.4")
265 (source (origin
266 (method url-fetch)
267 (uri (string-append "http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_"
268 version ".orig.tar.gz"))
269 (sha256 (base32
270 "188gp0prbh8qs29lq3pbf0qibfd6jq4fk7i0pfrybl8aahvm84rx"))))
271 (build-system gnu-build-system)
272 (inputs `(("perl" ,perl)))
273 (arguments
274 `(#:tests? #f
275 #:phases
276 (alist-replace
277 'unpack
278 (lambda* (#:key #:allow-other-keys #:rest args)
279 (let ((unpack (assoc-ref %standard-phases 'unpack)))
280 (apply unpack args)
281 ;; remove spurious symlink
282 (delete-file "keyanalyze/pgpring/depcomp")))
283 (alist-replace
284 'configure
285 (lambda* (#:key outputs #:allow-other-keys)
286 (let ((out (assoc-ref outputs "out")))
287 (substitute* "keyanalyze/Makefile"
288 (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
289 (substitute* "keyanalyze/Makefile"
290 (("./configure") (string-append "./configure --prefix=" out)))
291 (substitute* "keyanalyze/pgpring/configure"
292 (("/bin/sh") (which "bash")))
293 (substitute* "gpgwrap/Makefile"
294 (("\\} clean") (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
295 out "/bin/gpgwrap\n")))
296 (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
297 "keylookup/Makefile" "sig2dot/Makefile"
298 "springgraph/Makefile")
299 (("/usr") out))))
300 (alist-replace
301 'install
302 (lambda* (#:key outputs #:allow-other-keys #:rest args)
303 (let ((out (assoc-ref outputs "out"))
304 (install (assoc-ref %standard-phases 'install)))
305 (apply install args)
306 (for-each
307 (lambda (dir file)
308 (copy-file (string-append dir "/" file)
309 (string-append out "/bin/" file)))
310 '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
311 "gpglist" "gpg-mailkeys" "gpgparticipants")
312 '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
313 "gpglist" "gpg-mailkeys" "gpgparticipants"))
314 (for-each
315 (lambda (dir file)
316 (copy-file (string-append dir "/" file)
317 (string-append out "/share/man/man1/" file)))
318 '("caff" "caff" "caff" "gpgdir"
319 "gpg-key2ps" "gpglist" "gpg-mailkeys"
320 "gpgparticipants" "gpgsigs" "gpgwrap/doc"
321 "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
322 '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
323 "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
324 "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
325 "process_keys.1" "pgpring.1" "keyanalyze.1"))))
326 %standard-phases)))))
327 (synopsis "collection of scripts for simplifying gnupg key signing")
328 (description
329 "signing-party is a collection for all kinds of PGP/GnuPG related things,
330including tools for signing keys, keyring analysis, and party preparation.
331
332 * caff: CA - Fire and Forget signs and mails a key
333
334 * pgp-clean: removes all non-self signatures from key
335
336 * pgp-fixkey: removes broken packets from keys
337
338 * gpg-mailkeys: simply mail out a signed key to its owner
339
340 * gpg-key2ps: generate PostScript file with fingerprint paper strips
341
342 * gpgdir: recursive directory encryption tool
343
344 * gpglist: show who signed which of your UIDs
345
346 * gpgsigs: annotates list of GnuPG keys with already done signatures
347
348 * gpgparticipants: create list of party participants for the organiser
349
350 * gpgwrap: a passphrase wrapper
351
352 * keyanalyze: minimum signing distance (MSD) analysis on keyrings
353
354 * keylookup: ncurses wrapper around gpg --search
355
356 * sig2dot: converts a list of GnuPG signatures to a .dot file
357
358 * springgraph: creates a graph from a .dot file")
359 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
360 ;; and caff and gpgsigs: bsd-3, see
361 ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
362 (license gpl2)
363 (home-page "http://pgp-tools.alioth.debian.org/")))