From patchwork Sat Jul 13 17:54:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jakob L. Kreuze" X-Patchwork-Id: 14634 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5BE201721C; Sat, 13 Jul 2019 18:56:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EDAE31721A for ; Sat, 13 Jul 2019 18:56:07 +0100 (BST) Received: from localhost ([::1]:57554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmMFj-00046p-Kc for patchwork@mira.cbaines.net; Sat, 13 Jul 2019 13:56:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45937) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmMFg-00045M-4Q for guix-patches@gnu.org; Sat, 13 Jul 2019 13:56:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmMFe-0000Jc-JJ for guix-patches@gnu.org; Sat, 13 Jul 2019 13:56:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34525) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmMFe-0000JY-FE for guix-patches@gnu.org; Sat, 13 Jul 2019 13:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmMFe-0006Cb-Ce for guix-patches@gnu.org; Sat, 13 Jul 2019 13:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36638] [PATCH 2/2] gnu: Add i2pd. Resent-From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 13 Jul 2019 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36638 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36638@debbugs.gnu.org Received: via spool by 36638-submit@debbugs.gnu.org id=B36638.156304051223772 (code B ref 36638); Sat, 13 Jul 2019 17:56:02 +0000 Received: (at 36638) by debbugs.gnu.org; 13 Jul 2019 17:55:12 +0000 Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmMEp-0006BJ-RU for submit@debbugs.gnu.org; Sat, 13 Jul 2019 13:55:12 -0400 Received: from mx.sdf.org ([205.166.94.20]:58739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmMEn-0006B9-I4 for 36638@debbugs.gnu.org; Sat, 13 Jul 2019 13:55:10 -0400 Received: from Upsilon (mobile-166-172-63-162.mycingular.net [166.172.63.162]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x6DHt1mL029355 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO) for <36638@debbugs.gnu.org>; Sat, 13 Jul 2019 17:55:05 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) References: <87o91xbz4p.fsf@sdf.lonestar.org> <87k1clbz2i.fsf@sdf.lonestar.org> Date: Sat, 13 Jul 2019 13:54:56 -0400 In-Reply-To: <87k1clbz2i.fsf@sdf.lonestar.org> (Jakob L. Kreuze's message of "Sat, 13 Jul 2019 13:53:57 -0400") Message-ID: <87ftn9bz0v.fsf_-_@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/i2p.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/i2p.scm | 85 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 gnu/packages/i2p.scm diff --git a/gnu/local.mk b/gnu/local.mk index 67d9eb703a..b94e9fb97e 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -243,6 +243,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/hugs.scm \ %D%/packages/hurd.scm \ %D%/packages/hyperledger.scm \ + %D%/packages/i2p.scm \ %D%/packages/ibus.scm \ %D%/packages/icu4c.scm \ %D%/packages/idris.scm \ diff --git a/gnu/packages/i2p.scm b/gnu/packages/i2p.scm new file mode 100644 index 0000000000..f67461a260 --- /dev/null +++ b/gnu/packages/i2p.scm @@ -0,0 +1,85 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2019 Jakob L. Kreuze +;;; +;;; 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 . + +(define-module (gnu packages i2p) + #:use-module (gnu packages boost) + #:use-module (gnu packages compression) + #:use-module (gnu packages tls) + #:use-module (gnu packages upnp) + #:use-module (gnu packages web) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public i2pd + (package + (name "i2pd") + (version "2.27.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PurpleI2P/i2pd.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00y0y57z84gakwa88zzm0g3ixgc6y7zm35rjiysiajzvmdq5w1wf")))) + (build-system cmake-build-system) + (inputs `(("boost" ,boost) + ("miniupnpc" ,miniupnpc) + ("openssl" ,openssl) + ("websocketpp" ,websocketpp) + ("zlib" ,zlib))) + (arguments '(#:configure-flags + (let ((source (assoc-ref %build-inputs "source"))) + (list (string-append "-S" source "/build") + "-DWITH_PCH=OFF" + "-DWITH_STATIC=OFF" + "-DWITH_UPNP=ON" + "-DWITH_WEBSOCKETS=ON" + "-DWITH_LIBRARY=ON" + "-DWITH_BINARY=ON")) + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key + (make-flags '()) + (parallel-tests? #t) + #:allow-other-keys) + (let ((oldpwd (getcwd)) + (source (assoc-ref %build-inputs "source"))) + (copy-recursively (string-append source "/tests") + "./tests") + (chdir "./tests") + (substitute* "Makefile" + (("../libi2pd/") (string-append source "/libi2pd/"))) + (apply invoke "make" "all" + `(,@(if parallel-tests? + `("-j" ,(number->string + (parallel-job-count))) + '()) + ,@make-flags)) + (chdir oldpwd))))))) + (home-page "https://i2pd.website/") + (synopsis "Router for an end-to-end encrypted and anonymous internet") + (description "i2pd is a client for the anonymous I2P network, upon which +applications for file sharing, web browsing, instant messaging, and more are +built. i2pd allows people from all around the world to communicate and share +information securely without restrictions.") + (license license:bsd-3)))