unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob a997f4ed74b6e4836e8be8db8d63e9f905c755cc 6554 bytes (raw)
name: gnu/packages/openpgp.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages openpgp)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module (guix build-system gnu)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (gnu packages check)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages crypto)
  #:use-module (gnu packages gnupg)
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages web))

(define-public libtmcg
  (package
    (name "libtmcg")
    (version "1.3.18")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://savannah/libtmcg/libTMCG-" version
                                  ".tar.gz"))
              (sha256
               (base32
                "179b5jx3mqs9hgsj8cfwk6x8qib60kw9szk9fkz6s1gl3v83mnyx"))))
    (build-system gnu-build-system)
    (arguments '(#:configure-flags '("--enable-silent-rules")))
    (inputs `(("gmp" ,gmp)
              ("libgcrypt" ,libgcrypt)))
    (synopsis
     "C++ library for creating secure and fair online card games")
    (description
     "The library provides a sort of useful classes, algorithms, and
high-level protocols to support an application programmer in writing such
software.  The most remarkable feature is the absence of a trusted third
party (TTP), i.e. neither a central game server nor trusted hardware
components are necessary.

The corresponding cryptographic problem, actually called Mental Poker, has
been studied since 1979 (Shamir, Rivest, and Adleman) by many authors.
LibTMCG provides the first practical implementation of such protocols.")
    (home-page "https://www.nongnu.org/libtmcg/")
    (license license:gpl2+)))

(define-public dkgpg
  (package
    (name "dkgpg")
    (version "1.1.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://savannah/dkgpg/dkgpg-" version
                                  ".tar.gz"))
              (sha256
               (base32
                "1hpfg7akd5icj49i03z74hp9zj0xwl90bndn0hnw0hpb8lk7qcxg"))))
    (build-system gnu-build-system)
    (arguments '(#:configure-flags
                 '("--enable-silent-rules")
                 ;; https://savannah.nongnu.org/bugs/?58772
                 #:parallel-tests? #f))
    (inputs `(("bzip2" ,bzip2)
              ("gmp" ,gmp)
              ("libgcrypt" ,libgcrypt)
              ("libtmcg" ,libtmcg)
              ("zlib" ,zlib)))
    (synopsis
     "Distributed Key Generation and Threshold Cryptography for OpenPGP")
    (description
     "The Distributed Privacy Guard (DKGPG) implements Distributed Key
Generation (DKG) and Threshold Cryptography for OpenPGP.  The generated public
keys are compatible with the standard and thus can be used by any
RFC4880-compliant application (e.g. GnuPG).  The main purposes of this
software are distributing power among multiple parties, eliminating single
points of failure, and increasing the difficulty of side-channel attacks on
private key material.

DKGPG consists of a bunch of simple command-line programs.  The current
implementation is in experimental state and should NOT be used in production
environments.")
    (home-page "https://www.nongnu.org/dkgpg/")
    (license license:gpl2+)))

(define-public rnp
  (package
    (name "rnp")
    (version "0.13.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/rnpgp/rnp")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "04b2a5cwy91i41vgix6ws99bg93fav8qizx92bivc75lxii8gisz"))
              (patches
               (search-patches "rnp-unbundle-googletest.patch"
                               "rnp-disable-ruby-rnp-tests.patch"
                               "rnp-fix-test-setup.patch"
                               "rnp-fix-cp.patch"
                               "rnp-fix-test.patch"
                               "rnp-fix-gnupg-list-packets.patch"
                               "rnp-fix-true-false.patch"
                               "rnp-update-expiration-16ecb289.patch"))))
    (build-system cmake-build-system)
    (arguments '(#:configure-flags
                 '("-DBUILD_SHARED_LIBS=on"
                   "-DBUILD_TESTING=on")
                 #:phases
                 (modify-phases %standard-phases
                   (add-after 'unpack 'fixes
                     (lambda* (#:key inputs #:allow-other-keys)
                       (copy-recursively (assoc-ref inputs "googletest-source")
                                         "src/tests/googletest-src")
                       #t)))))
    (native-inputs
     `(("gnupg" ,gnupg)
       ("googletest-source" ,(package-source googletest))
       ("pkg-config" ,pkg-config)
       ("python2" ,python-2.7)))
    (inputs `(("botan" ,botan)
              ("bzip2" ,bzip2)
              ("json-c" ,json-c)
              ("zlib" ,zlib)))
    (synopsis
     "RFC4880-compliant OpenPGP library written in C++")
    (description
     "Set of OpenPGP (RFC4880) tools that works on Linux, *BSD and macOS as a
replacement of GnuPG.  It is maintained by Ribose after being forked from
NetPGP, itself originally written for NetBSD.

librnp is the library used by rnp for all OpenPGP functions, useful for
developers to build against.  It is a “real” library, not a wrapper like GPGME
of GnuPG.")
    (home-page "https://www.rnpgp.com/")
    (license (list license:bsd-2 license:asl2.0 license:bsd-3))))

debug log:

solving a997f4ed74 ...
found a997f4ed74 in https://yhetil.org/guix-patches/20200723120322.8385-3-justus@sequoia-pgp.org/
found 94beab9929 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 94beab9929e412b58e7ef6a048443e4019c1b7b8	gnu/packages/openpgp.scm

applying [1/1] https://yhetil.org/guix-patches/20200723120322.8385-3-justus@sequoia-pgp.org/
diff --git a/gnu/packages/openpgp.scm b/gnu/packages/openpgp.scm
index 94beab9929..a997f4ed74 100644

Checking patch gnu/packages/openpgp.scm...
Applied patch gnu/packages/openpgp.scm cleanly.

index at:
100644 a997f4ed74b6e4836e8be8db8d63e9f905c755cc	gnu/packages/openpgp.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).