all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 41490@debbugs.gnu.org
Subject: [bug#41490] [PATCH 2/5] gnu: Add pep-engine.
Date: Sat, 23 May 2020 20:51:01 +0200	[thread overview]
Message-ID: <1e8aecfb44c33bc054486cbbc2b6f6f8eee7155f.1590259641.git.h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <cover.1590259641.git.h.goebel@crazy-compilers.com>

* gnu/packages/pep.scm (fdik-libetpan, sequoia4pEp, pep-engine): New
  variables.
---
 gnu/packages/pep.scm | 106 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)

diff --git a/gnu/packages/pep.scm b/gnu/packages/pep.scm
index 9e5be66f78..57fb0e88f3 100644
--- a/gnu/packages/pep.scm
+++ b/gnu/packages/pep.scm
@@ -19,9 +19,19 @@
 (define-module (gnu packages pep)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
+  #:use-module (guix git-download)
   #:use-module (guix hg-download)
+  #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages linux)
+  #:use-module (gnu packages mail) ; for libetpan
+  #:use-module (gnu packages nettle)
+  #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages sequoia)
+  #:use-module (gnu packages sqlite)
+  #:use-module (gnu packages tls)
   #:use-module (gnu packages xml))
 
 (define-public yml2
@@ -47,3 +57,99 @@ provides the command line front end yml2c.  As default, it compiles
 your script and outputs to stdout, that usually is the terminal.  Your
 shell provides options to redirect the output into a pipe or a file.")
     (license license:gpl2)))
+
+(define fdik-libetpan
+  ;; pEp Engine requires libetpan with a set of patches that have not been
+  ;; upstreamed yet.
+  (let ((commit "370050956b7ee95b0c3b54c018b40ad1f366683a") ; 2019-11-12
+        (checksum "0lcqcnij3ray7nssvq0lzb352wmnab8ffzk7dgff2c68mvjbh1l6")
+        (revision "4"))
+   (package
+    (inherit libetpan)
+    (name "fdik-libetpan")
+    (version (string-append "1.6-" revision "." (string-take commit 8)))
+    (source
+     (origin
+       (inherit (package-source libetpan))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/fdik/libetpan")
+             (commit commit)))
+       (file-name (string-append name "-" version))
+       (sha256 (base32 checksum)))))))
+
+(define sequoia4pEp
+  ;; Currently pEp Engine requires sequoia in not-so-current version
+  (package/inherit sequoia
+    (name "sequoia")
+    (version "0.15.0-pEp")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/sequoia-pgp/sequoia.git")
+             (commit "0eb1b6cd846ea8c36b3dfdf01ec88383fc64f2fe")))
+       (sha256
+        (base32 "06dqs9whwp9lfibwp8dqm0aw4nm3s3v4jp2n4fz51zcvsld40nfh"))
+       (file-name (git-file-name name version))))))
+
+(define-public pep-engine
+  (package
+    (name "pep-engine")
+    (version "2.0.5")
+    (source
+     (origin
+       (method hg-fetch)
+       (uri (hg-reference
+             (url "https://pep.foundation/dev/repos/pEpEngine")
+             (changeset "3db667f48863"))) ;; r4701
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "0ljf79j4ng7l8w6pbdcrfzb4yk51zslypvq0n72ib1d7grqvnagi"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:parallel-build? #f
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           ;; pEpEngie does not use autotools and configure,
+           ;; but a local.conf. We need to tweak the values there.
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out"))
+                   (yml2 (assoc-ref inputs "yml2")))
+               (with-output-to-file "local.conf"
+                 (lambda ()
+                   (format #t "
+PREFIX=~a
+PER_MACHINE_DIRECTORY=${PREFIX}/share/pEp
+SYSTEM_DB=~a/share/pEp/system.db
+ASN1C=~a
+YML2_PATH=~a
+OPENPGP=SEQUOIA
+"
+                           out out (which "asn1c")
+                           (string-append yml2 "/bin"))))
+               #t)))
+         (delete 'check)
+         (add-after 'install 'install-db
+           (lambda _
+             (invoke "make" "-C" "db" "install"))))))
+    (native-inputs
+     `(("asn1c" ,asn1c) ; >= 0.9.27
+       ("pkg-config" ,pkg-config)
+       ("yml2" ,yml2)))
+    (inputs
+     `(("libetpan" ,fdik-libetpan)
+       ("libiconv" ,libiconv)
+       ("nettle" ,nettle)
+       ("openssl" ,openssl)
+       ("sequoia" ,sequoia4pEp)
+       ("sqlite3" ,sqlite)
+       ("util-linux" ,util-linux "lib"))) ;; uuid.h
+    (home-page "https://pep.foundation/")
+    (synopsis "Library for automatic key management and encryption of
+messages")
+    (description "The p≡p engine is the core part of p≡p (pretty Easy
+privacy).")
+    (license ;; code: GPL 3, docs: CC-BY-SA
+     (list license:gpl3 license:cc-by-sa3.0))))
-- 
2.21.3





  parent reply	other threads:[~2020-05-23 18:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-23 18:48 [bug#41490] [PATCH 0/5] Add pEp (pretty Easy privacy) Hartmut Goebel
2020-05-23 18:51 ` [bug#41490] [PATCH 1/5] gnu: Add yml2 Hartmut Goebel
2020-05-23 18:51 ` Hartmut Goebel [this message]
2020-05-23 18:51 ` [bug#41490] [PATCH 3/5] gnu: Add libpepadapter Hartmut Goebel
2020-05-23 18:51 ` [bug#41490] [PATCH 4/5] gnu: Add python-pep-adapter Hartmut Goebel
2020-05-23 18:51 ` [bug#41490] [PATCH 5/5] gnu: Add java-pep-adapter Hartmut Goebel
2020-06-07 10:09 ` [PATCH 0/5] Add pEp (pretty Easy privacy) Hartmut Goebel
2020-06-08 16:06 ` Advice on package naming (was: [PATCH 0/5] Add pEp (pretty Easy privacy)) Hartmut Goebel
2020-06-09 16:13   ` [bug#41490] Advice on package naming Ludovic Courtès
2020-06-09 18:02     ` bug#41490: " Hartmut Goebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e8aecfb44c33bc054486cbbc2b6f6f8eee7155f.1590259641.git.h.goebel@crazy-compilers.com \
    --to=h.goebel@crazy-compilers.com \
    --cc=41490@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.