From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcDgI-0003iU-Hd for guix-patches@gnu.org; Sun, 08 Jul 2018 13:41:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcDgF-0001og-8G for guix-patches@gnu.org; Sun, 08 Jul 2018 13:41:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43485) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcDgF-0001oL-43 for guix-patches@gnu.org; Sun, 08 Jul 2018 13:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fcDgE-0004BJ-Tt for guix-patches@gnu.org; Sun, 08 Jul 2018 13:41:02 -0400 Subject: [bug#31531] [PATCH v2 2/9] gnu: Add monero-miniupnpc. Resent-Message-ID: From: Theodoros Foradis Date: Sun, 8 Jul 2018 20:39:25 +0300 Message-Id: <20180708173932.14807-2-theodoros@foradis.org> In-Reply-To: <20180708173932.14807-1-theodoros@foradis.org> References: <87d0vxy6j1.fsf@foradis.org> <20180708173932.14807-1-theodoros@foradis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31531@debbugs.gnu.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 ;;; Copyright © 2016 Hartmut Goebel ;;; Copyright © 2017 Carlo Zancanaro -;;; Copyright © 2017 Theodoros Foradis +;;; Copyright © 2017, 2018 Theodoros Foradis ;;; Copyright © 2017 Vasile Dumitrascu ;;; Copyright © 2017 Tobias Geerinckx-Rice ;;; Copyright © 2018 Eric Bavier @@ -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