gnu: torsocks: Update to 2.3.0.

* gnu/packages/tor.scm (torsocks): Update to 2.3.0.
[inputs]: Remove which.
[arguments]: Update 'absolutize' substitutions.
This commit is contained in:
Tobias Geerinckx-Rice 2019-02-08 13:00:37 +01:00
parent d77ade87fe
commit 15c661ec8e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -91,27 +91,24 @@ (define-public tor
(define-public torsocks
(package
(name "torsocks")
(version "2.2.0")
(version "2.3.0")
(source (origin
(method url-fetch)
(uri (string-append "https://people.torproject.org/~dgoulet/"
"torsocks/torsocks-" version ".tar.xz"))
(sha256
(base32
"0byr9ga9w79qz4vp0m11sbmspad7fsal9wm67r4znzb7zb7cis19"))))
"08inrkap29gikb6sdmb58z43hw4abwrfw7ny40c4xzdkss0vkwdr"))))
(build-system gnu-build-system)
(inputs
`(("which" ,which)
("libcap" ,libcap)))
`(("libcap" ,libcap)))
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'build 'absolutize
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/bin/torsocks"
(("getcap=`.*`")
(string-append "getcap=" (which "getcap")))
(("`which")
(string-append "`" (which "which"))))
(("getcap=.*")
(string-append "getcap=" (which "getcap") "\n")))
#t)))))
(home-page "https://www.torproject.org/")
(synopsis "Use socks-friendly applications with Tor")