From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#36638] [PATCH 2/2] gnu: Add i2pd. Resent-Message-ID: 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> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: 36638@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable * gnu/packages/i2p.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. =2D-- 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 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -243,6 +243,7 @@ GNU_SYSTEM_MODULES =3D \ %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 =2D-- /dev/null +++ b/gnu/packages/i2p.scm @@ -0,0 +1,85 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 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=3DOFF" + "-DWITH_STATIC=3DOFF" + "-DWITH_UPNP=3DON" + "-DWITH_WEBSOCKETS=3DON" + "-DWITH_LIBRARY=3DON" + "-DWITH_BINARY=3DON")) + #: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 "/libi2p= d/"))) + (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 whi= ch +applications for file sharing, web browsing, instant messaging, and more a= re +built. i2pd allows people from all around the world to communicate and sha= re +information securely without restrictions.") + (license license:bsd-3))) =2D-=20 2.22.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl0qGvEACgkQ9Qb9Fp2P 2Voc0BAArSrlwiFD4NAu024QyxYTH1fMFlhIQJIG7y76xcVawKcrkWt9MfEvFYaW HJkwXjv1LfrPJJbIQQFPSvj+reoH9RYsf1jwo5Wd7HrdE5MJ4zzYhsarI3AgB2j/ UMV8cJZGdRVYxkSnIeRRPec+kAA5N6Z12KFWY4RD9bIkysNMnIJeQcA64FH1N1jK hQC2H+v3LNxuBFILzmz9YksK7z8FfrrO+pjDlKhXm2RVt0FmzxsCMMQwtwytr+0n iqcHz+TLw7hILCahja36rh0GJq+frvP9UivyZ+3C/Sc6kju9NjOeA+7MezZL/jWs gOy26vhHUAqYffKko/ZPzELy7x3/V2efxm/MgnC4C0Xf3Kn54ZCJCCLytNxLn3DS WIPRzRyHN7k5V7WOPG4F40VzHFxw+/MYMYYjArrlrQn+b5uLznAVFclnEYR5amoG Zspzs8HYajriKhlmZ5N5woVV1Rn7g119d3QwzF1EjYnauaQorJgsInf0zbLS41Zj c8HMFdvP4V/H/b3CAJL60xnGuO7zjvYYFhtzUKe2EtObv8yNgbVSk0bDN14YoxWi 2i1Ytor8lAqdQoGxx398x8nSgpBB+PNcLWemjoD8/BsIVopkrtz+CP+AGtNIUeHC E4CNt2LkvghcX+PQ67qvsuolzlP83pqAcg0v5Jew5TkofTkwIGA= =i0tY -----END PGP SIGNATURE----- --=-=-=--