all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Theodoros Foradis <theodoros@foradis.org>
To: 31531@debbugs.gnu.org
Subject: [bug#31531] [PATCH v2 2/9] gnu: Add monero-miniupnpc.
Date: Sun,  8 Jul 2018 20:39:25 +0300	[thread overview]
Message-ID: <20180708173932.14807-2-theodoros@foradis.org> (raw)
In-Reply-To: <20180708173932.14807-1-theodoros@foradis.org>

* gnu/packages/finance.scm (monero-miniupnpc): New variable.
---
 gnu/packages/finance.scm | 43 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 42 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 55afa6217..26f4488ab 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -4,7 +4,7 @@
 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
 ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
-;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
+;;; Copyright © 2017, 2018 Theodoros Foradis <theodoros@foradis.org>
 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
@@ -35,6 +35,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
+  #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages boost)
@@ -329,6 +330,46 @@ generation from a seed.  Your secret keys are encrypted and are never sent to
 other machines/servers.  Electrum does not download the Bitcoin blockchain.")
     (license license:expat)))
 
+(define monero-miniupnpc
+  ;; This package is the bundled version of miniupnpc used with monero. Monero-project has
+  ;; been maintaining its own version of the package since release 0.12.2.0. It includes
+  ;; security fixes not included in upstream releases.
+  (let ((revision "0")
+        (commit "6a63f9954959119568fbc4af57d7b491b9428d87"))
+    (package
+      (inherit miniupnpc)
+      (name "monero-miniupnpc")
+      (version (string-append "2.1-monero-0.12.3.0-" revision "."
+                              (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/monero-project/miniupnp/")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0s67zcz978iapjlq30yy9dl8qda9xhrl3jdi5f99cnbglh5gy16a"))
+                (file-name (string-append name "-" version "-checkout"))
+                (modules '((guix build utils)))
+                (snippet
+                 '(begin
+                    ;; Delete miniupnp subprojects except for miniupnpc.
+                    (for-each
+                     delete-file-recursively
+                     '("minissdpd" "miniupnpc-async" "miniupnpc-libevent"
+                       "miniupnpd" ))
+                    #t))))
+      (arguments
+       (substitute-keyword-arguments (package-arguments miniupnpc)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             (add-before 'build 'change-directory
+               (lambda _
+                 (chdir "miniupnpc")))
+             (add-after 'change-directory 'chmod-header-file
+               (lambda _
+                 (chmod "miniupnpc.h" #o644))))))))))
+
 (define-public monero
   ;; This package bundles easylogging++ and lmdb.
   ;; The bundled easylogging++ is modified, and the changes will not be upstreamed.
-- 
2.16.2

  reply	other threads:[~2018-07-08 17:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-19 18:50 [bug#31531] Update monero to 0.12.0.0 Theodoros Foradis
2018-05-19 18:54 ` [bug#31531] [PATCH 1/3] gnu: Add cppzmq Theodoros Foradis
2018-05-19 18:54   ` [bug#31531] [PATCH 2/3] gnu: monero: Update to 0.12.0.0 Theodoros Foradis
2018-05-21 20:35     ` Ricardo Wurmus
2018-05-19 18:54   ` [bug#31531] [PATCH 3/3] gnu: monero-core: " Theodoros Foradis
2018-05-21 20:36     ` Ricardo Wurmus
2018-05-21 20:31   ` [bug#31531] [PATCH 1/3] gnu: Add cppzmq Ricardo Wurmus
2018-07-08 17:35     ` Theodoros Foradis
2018-07-08 17:39       ` [bug#31531] [PATCH v2 1/9] " Theodoros Foradis
2018-07-08 17:39         ` Theodoros Foradis [this message]
2018-07-13 15:30           ` [bug#31531] [PATCH v2 2/9] gnu: Add monero-miniupnpc Ludovic Courtès
2018-07-08 17:39         ` [bug#31531] [PATCH v2 3/9] gnu: monero: Update to 0.12.3.0 Theodoros Foradis
2018-07-13 15:31           ` Ludovic Courtès
2018-07-15 11:34             ` Theodoros Foradis
2018-07-16 14:40               ` Ludovic Courtès
2018-07-08 17:39         ` [bug#31531] [PATCH v2 4/9] gnu: monero: Return #t from phases Theodoros Foradis
2018-07-08 17:39         ` [bug#31531] [PATCH v2 5/9] gnu: monero-core: Update to 0.12.2.0 Theodoros Foradis
2018-07-08 17:39         ` [bug#31531] [PATCH v2 6/9] gnu: monero-core: Return #t from phases Theodoros Foradis
2018-07-08 17:39         ` [bug#31531] [PATCH v2 7/9] gnu: monero: Use git-fetch Theodoros Foradis
2018-07-08 17:39         ` [bug#31531] [PATCH v2 8/9] gnu: monero-core: " Theodoros Foradis
2018-07-08 17:39         ` [bug#31531] [PATCH v2 9/9] gnu: monero-core: Rename package to "monero-gui" Theodoros Foradis
2018-07-16 14:52           ` bug#31531: " Ludovic Courtès
2018-07-13 15:29         ` [bug#31531] [PATCH v2 1/9] gnu: Add cppzmq Ludovic Courtès
2018-06-14 20:21 ` [bug#31531] Update monero to 0.12.0.0 Ludovic Courtès
2018-07-04 16:36   ` Theodoros Foradis

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=20180708173932.14807-2-theodoros@foradis.org \
    --to=theodoros@foradis.org \
    --cc=31531@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.