all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andre Batista <nandre@riseup.net>
To: guix-devel@gnu.org
Subject: [PATCH] Add Tor client only package definition
Date: Sun, 17 May 2020 00:11:27 -0300	[thread overview]
Message-ID: <20200517031127.GA17209@andel> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 495 bytes --]

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.

----

[-- Attachment #1.2: diff.txt --]
[-- Type: text/plain, Size: 825 bytes --]

--- 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)))
 
+ (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")

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 841 bytes --]

             reply	other threads:[~2020-05-17  3:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-17  3:11 Andre Batista [this message]
2020-05-24 20:51 ` [PATCH] Add Tor client only package definition Ludovic Courtès
2020-05-26 14:56   ` Andre Batista
2020-05-31 19:40     ` André Batista
2020-05-31 23:42       ` Andre Batista
2020-06-03  4:49         ` Andre Batista
2020-06-16 22:59           ` André Batista
2020-07-02  9:36             ` Ludovic Courtès
2020-07-03 20:24               ` André Batista

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200517031127.GA17209@andel \
    --to=nandre@riseup.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.