From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gJMoMnOrwF6zSwAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 03:11:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 1DXvLXOrwF6FTAAA1q6Kng (envelope-from ) for ; Sun, 17 May 2020 03:11:47 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 44CEA940142 for ; Sun, 17 May 2020 03:11:47 +0000 (UTC) Received: from localhost ([::1]:38174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ja9iM-0006XQ-0F for larch@yhetil.org; Sat, 16 May 2020 23:11:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ja9iE-0006XI-2c for guix-devel@gnu.org; Sat, 16 May 2020 23:11:38 -0400 Received: from mx1.riseup.net ([198.252.153.129]:58378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ja9iC-00077Z-Of for guix-devel@gnu.org; Sat, 16 May 2020 23:11:37 -0400 Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49PnHB3HpWzFgP7 for ; Sat, 16 May 2020 20:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1589685094; bh=UtYX5vklinplPpT9CrTw5sekLLhmCL0MoHoE+pi3WUg=; h=Date:From:To:Subject:From; b=A2gdiIUw+DK/5rUggPyDrYHaZN5czO2Kl17SZrulHGUmp+L5xflk0Z+9aNauJOFdi 9KnDyXpoYmBNApmj0OkeLGm22oEmfX56zM/dU8lF8/GLajPsWQvs45Ayb4SdhqNp0Q tvtGs2Ano40/khNUfUflfFZSUYz1Y05hUW7Ov9cs= X-Riseup-User-ID: 0E1BD96370B1B2D9A5F7243A824C6A33BEF91B5D04229D5CAE3BE723E055E607 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49PnH92djfzJnG9 for ; Sat, 16 May 2020 20:11:33 -0700 (PDT) Date: Sun, 17 May 2020 00:11:27 -0300 From: Andre Batista To: guix-devel@gnu.org Subject: [PATCH] Add Tor client only package definition Message-ID: <20200517031127.GA17209@andel> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline Received-SPF: pass client-ip=198.252.153.129; envelope-from=nandre@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/16 23:11:34 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=A2gdiIUw; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.31 X-TUID: MIfsmPAUkrST --aM3YZ0Iwxop3KEKx Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello Guix, Starting on version 0.4.3.5, Tor provides a configuration flag to disable relay code (--disable-module-relay). Considering most people are running clients, not relays, I thought it would be nice for guix to have a client-only package definition (maybe it could even be the default?). What do you think? I've tested the code below and it works as expected on my guix install. However, since I'm neither a schemer nor guixpert, fell free to teach me how to do it the guix way. ---- --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Description: diff.txt Content-Disposition: inline; filename="tor.diff" Content-Transfer-Encoding: quoted-printable --- a/gnu/packages/tor.scm 2020-05-16 23:35:47.690031277 -0300 +++ b/gnu/packages/tor.scm 2020-05-16 23:47:11.291254106 -0300 @@ -91,6 +91,20 @@ the application layer) you need to install @code{torsocks}.") (license license:bsd-3))) =20 + (define-public tor-client + (package + (inherit tor) + (name "tor-client") + (arguments + `(#:configure-flags + `(,@(cons "--disable-module-relay" + ,(cadr (package-arguments tor)))))) + (synopsis "Client to the anonymous Tor network") + (description + (string-append (package-description tor) + "\n\nThis package only provides the client funcionality to the Tor +Network. If you want to setup a relay you need to install @code{tor}.")))) + (define-public torsocks (package (name "torsocks") --FL5UXtIhxfXey3p5-- --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI5BAABCgAjFiEEIBdLYNLH+F+MBdSrYrJ+WmBEwoIFAl7Aq04FgwPCZwAACgkQ YrJ+WmBEwoJWOw/7B45HaOYIUVu66yT/Rw3D63kOhqm+TrRq8iL/6+GG5Mi4g+Mb esLsXsamhCfBOhA/qKB+DDoWizhKLYX1z/DAY2h3AJOZHBV86PvucSeDZVmd1M0q o/qC0Z48jDgrS0Uql9LQeFz7G2HRA2yK0Ing3XZQYrWpEz34UU/tYW/U5BJgtaPh Z/SKPux6hS2+9PhAZbfkkKSrF1ZX7cm50NURYwT03Hbj4dltj+hzFuStotD8e0d2 dpPPYNC2K+IN96QHtI/HeAVcdMJY0BzYxflrHzqkkd7gmON+khlIjeSN1MLyiqTe /nLfGIFeaFfKFBxxebML4r+Dg4Alq/i0o63OrBsujjNabIL5K99n2G3/v17/bDGx e7WgsH4Ffyzf/01s+2c5Rhqo4q46m5plhJ7MFcFLtMietPQ2YCxF/H/7YG0kKH8p U/2Ll0TucMnHYef8IjyoJqPA6HnhGVw2Fqkinkb5yEzYhyftlhKNkJMWe8ZJ9X3/ 5XDLRd7DoQaB/Z6Mtvdxi6MBpGdU1Gbup/BQm8yBAfQaz9xEpwtk6avJuCauLko7 Gm1OL+DrKiF5+pVTfqyaOxZgYTSZxnEY3O6PiVmjg+QiemsNWE0ndO4k2idGzpih Z7xqEerzfqtzWySelkWF1YDDpmUGHH8TBjsNxbFFutc9QufntdBwDlBQoLE= =QIrX -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--