Subject: [PATCH] gnu: torsocks: Update to 2.4.0

From: Jim Newsome <[email-masked]>
Date: Tue, 9 Aug 2022 09:38:40 -0500

From: Jim Newsome <[email-masked]>

* gnu/packages/tor.scm (torsocks): Update to 2.4.0.
[native-inputs]: Set to autoconf, automake, libtool. torsocks releases
no longer pre-run autogen.sh.
[synopsis, description]: Clarify that applications do not need to be
socks-aware to be used with torsocks.
---
 gnu/packages/tor.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm
index 613575ae0e..fb913595ea 100644
--- a/gnu/packages/tor.scm
+++ b/gnu/packages/tor.scm
@@ -160,17 +160,19 @@ (define-public tor-client
 (define-public torsocks
   (package
     (name "torsocks")
-    (version "2.3.0")
+    (version "2.4.0")
     (source (origin
               (method url-fetch)
-              (uri (string-append "https://people.torproject.org/~dgoulet/"
-                                  "torsocks/torsocks-" version ".tar.xz"))
+              (uri (string-append "https://gitlab.torproject.org/tpo/core/torsocks/-/archive/v"
+                                   version "/torsocks-v" version ".tar.bz2"))
               (sha256
                (base32
-                "08inrkap29gikb6sdmb58z43hw4abwrfw7ny40c4xzdkss0vkwdr"))))
+                "1a7k3njdhp7dz603knhisna1zvxw35j3g213p6dvczv9bcjy7cjl"))))
     (build-system gnu-build-system)
     (inputs
      (list libcap))
+    (native-inputs
+     (list autoconf automake libtool))
     (arguments
      `(#:phases (modify-phases %standard-phases
                   (add-after 'build 'absolutize
@@ -180,9 +182,9 @@ (define-public torsocks
                          (string-append "getcap=" (which "getcap") "\n")))
                       #t)))))
     (home-page "https://www.torproject.org/")
-    (synopsis "Use socks-friendly applications with Tor")
+    (synopsis "Transparently route an application's traffic through Tor.")
     (description
-     "Torsocks allows you to use most socks-friendly applications in a safe
+     "Torsocks allows you to use most applications in a safe
 way with Tor.  It ensures that DNS requests are handled safely and explicitly
 rejects UDP traffic from the application you're using.")

base-commit: 515288874ff12c00ca8d1d22a94ef4b4903fec76
-- 
2.25.1