From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:51868) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnoQJ-0007Wk-PQ for guix-patches@gnu.org; Wed, 17 Jul 2019 14:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnoQI-0007NB-3U for guix-patches@gnu.org; Wed, 17 Jul 2019 14:13:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnoQI-0007N5-0U for guix-patches@gnu.org; Wed, 17 Jul 2019 14:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnoQH-0003Mo-Q3 for guix-patches@gnu.org; Wed, 17 Jul 2019 14:13:01 -0400 Subject: [bug#36638] [PATCH v2 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> <8736j7l155.fsf@gnu.org> <87r26rjm3q.fsf@gnu.org> <87y30wpm68.fsf_-_@sdf.lonestar.org> <87tvbkpm4b.fsf_-_@sdf.lonestar.org> Date: Wed, 17 Jul 2019 14:12:23 -0400 In-Reply-To: <87tvbkpm4b.fsf_-_@sdf.lonestar.org> (Jakob L. Kreuze's message of "Wed, 17 Jul 2019 14:11:16 -0400") Message-ID: <87pnm8pm2g.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 | 107 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 gnu/packages/i2p.scm diff --git a/gnu/local.mk b/gnu/local.mk index e6fca384a0..20f77c89f0 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..0f6aa2133a =2D-- /dev/null +++ b/gnu/packages/i2p.scm @@ -0,0 +1,107 @@ +;;; 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" + "-DBUILD_SHARED_LIBS=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)))) + (add-after 'install 'install-headers + (lambda* (#:key outputs #:allow-other-keys) + (let* ((install-dir (assoc-ref outputs "out")) + (src-dir (string-append install-dir "/src")) + (include-dir + (string-append install-dir "/include"))) + (mkdir-p include-dir) + ;; This is the only header file that's relevant t= o the + ;; public interface. + ;; + (install-file (string-append src-dir "/api.h") + include-dir) + #t))) + (add-after 'install-headers 'remove-source + (lambda* (#:key outputs #:allow-other-keys) + (let* ((install-dir (assoc-ref outputs "out")) + (src-dir (string-append install-dir "/src"))) + (delete-file-recursively src-dir) + (delete-file (string-append install-dir + "/LICENSE")) + #t)))))) + (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----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl0vZQkACgkQ9Qb9Fp2P 2Vqs7BAAmCmI/TP2Xs0S2Ge6vbcpDw7lTcjeU6ybWDDkELftmpo+xyhwSU7JehS4 kbbqZQXPpIjqtelNyzMsifO1IxQzt7iXQgXsMxcmqCvFrQPs5yp24AppYIG6ns0t iIbGyDSYmD1MF6rKZq3gO9IzbS0myEHZrPB0sTRnzG+5SenEOOuiUz2f6H8/Rokp /iKTQhFwAEo2xTaYMX+1qLEoG+Nv72in6FNEfVoVLWQLsx/Qn4RKfKONDAOGnKl0 qY5yraV7WGfo7rRPHfmYq/hAKFuBxYh3mKPrubi8AlABvMOXIOq3XylTi38cgseP SbJbXnAAN7F3n3mxA4P2k8WdrMFXcRnknGJ2RTOZVhcRz/hTAFy4eCmNUve8abmR YuZAJziyArZlW31nVMph7rRBapd5ag4y6LdjpWDNNg5x6ebp5ideGvSDafOpMvnQ h9lq/l1hy2J96GRzyPNfff1PNBW9xf6iqKYj1JcXXGktFhYPfs5DG37frjKSziM4 16TtawZueMtRbomsRVmF/WfGcanyKHoYNTnKVpKrAN4dVTT6ux6YO0l+JV3uASCx Mn5H4U6Ty/PIxHzin5FTyHEKbWVjrK7if9eKyd7QJ1LPKoZX9jO1rwJrjhn4v3Ha zBFFI+C7CXkjgDoedUdp6r0Wh/1liRrrBXge2is68AUTfkwymQI= =LNP4 -----END PGP SIGNATURE----- --=-=-=--