gnu: shadowsocks: Update to 2.9.1.

* gnu/packages/networking.scm (shadowsocks): Update to 2.9.1.
This commit is contained in:
Nicolas Goaziou 2021-11-27 09:58:18 +01:00
parent 811a450199
commit bd7ef5ab0f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -3051,40 +3051,36 @@ (define-public asio
(license license:boost1.0))) (license license:boost1.0)))
(define-public shadowsocks (define-public shadowsocks
;; There are some security fixes after the last release. (package
(let* ((commit "e332ec93e9c90f1cbee676b022bf2c5d5b7b1239") (name "shadowsocks")
(revision "0") (version "2.9.1")
(version (git-version "2.8.2" revision commit))) (source
(package (origin
(name "shadowsocks") (method git-fetch)
(version version) (uri (git-reference
(home-page "https://github.com/shadowsocks/shadowsocks") (url "https://github.com/shadowsocks/shadowsocks")
(source (origin (commit version)))
(method git-fetch) (sha256
(uri (git-reference (base32 "02mp5905nz02d7amb4zc77rcrkxmvy8mf5rci7mvy58g24lvbw25"))
(url home-page) (file-name (git-file-name name version))))
(commit commit))) (inputs
(sha256 `(("openssl" ,openssl)))
(base32 (arguments
"1idd9b4f2pnhcpk1bh030hqg5zq25gkwxd53xi3c0cj242w7sp2j")) '(#:phases
(file-name (git-file-name name version)))) (modify-phases %standard-phases
(inputs (add-after 'unpack 'patch-crypto-paths
`(("openssl" ,openssl))) (lambda* (#:key inputs #:allow-other-keys)
(arguments (substitute* "shadowsocks/shell.py"
'(#:phases (("config\\.get\\('libopenssl', None\\)")
(modify-phases %standard-phases (format #f "config.get('libopenssl', ~s)"
(add-after 'unpack 'patch-crypto-paths (string-append
(lambda* (#:key inputs #:allow-other-keys) (assoc-ref inputs "openssl")
(substitute* "shadowsocks/shell.py" "/lib/libssl.so")))))))))
(("config\\.get\\('libopenssl', None\\)") (build-system python-build-system)
(format #f "config.get('libopenssl', ~s)" (home-page "https://github.com/shadowsocks/shadowsocks")
(string-append (synopsis "Fast tunnel proxy that helps you bypass firewalls")
(assoc-ref inputs "openssl") (description
"/lib/libssl.so"))))))))) "This package is a fast tunnel proxy that helps you bypass firewalls.
(build-system python-build-system)
(synopsis "Fast tunnel proxy that helps you bypass firewalls")
(description
"This package is a fast tunnel proxy that helps you bypass firewalls.
Features: Features:
@itemize @itemize
@ -3094,7 +3090,7 @@ (define-public shadowsocks
@item Workers and graceful restart @item Workers and graceful restart
@item Destination IP blacklist @item Destination IP blacklist
@end itemize") @end itemize")
(license license:asl2.0)))) (license license:asl2.0)))
(define-public net-snmp (define-public net-snmp
(package (package