gnu: Add go-github-com-inetaf-tcpproxy.

* gnu/packages/golang-web.scm (go-github-com-inetaf-tcpproxy, go-tlsrouter): New variables.

Change-Id: I25f64ce2bf34260a1400325b9aa15508826ca1f9
This commit is contained in:
Sharlatan Hellseher 2025-07-10 08:47:12 +01:00
parent b1d85e0905
commit 075ed5ed4b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4598,6 +4598,32 @@ protocol) - used to discover UPnP services on a network
@end itemize")
(license license:bsd-2)))
(define-public go-github-com-inetaf-tcpproxy
(package
(name "go-github-com-inetaf-tcpproxy")
(version "0.0.0-20250222171855-c4b9df066048")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/inetaf/tcpproxy")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1m682wk8vs1pqiky2w4gmp8l1ysxlgsm7jw0dqd723mcaxkivy9p"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/inetaf/tcpproxy"))
(native-inputs
(list go-github-com-armon-go-proxyproto))
(home-page "https://github.com/inetaf/tcpproxy")
(synopsis "Proxy TCP connections based on static rules")
(description
"Package tcpproxy lets users build TCP proxies, optionally making routing
decisions based on HTTP/1 Host headers and the SNI hostname in TLS connections.")
(license license:asl2.0)))
(define-public go-github-com-jackpal-gateway
(package
(name "go-github-com-jackpal-gateway")
@ -11616,6 +11642,23 @@ go-github-com-multiformats-go-multiaddr-dns.")))
(description "This package provides a CLI binary executable built from
go-github-com-tdewolff-minify-v2 source.")))
(define-public go-tlsrouter
(package/inherit go-github-com-inetaf-tcpproxy
(name "go-tlsrouter")
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-inetaf-tcpproxy)
((#:tests? _ #t) #f)
((#:install-source? _ #t) #f)
((#:import-path _) "github.com/inetaf/tcpproxy/cmd/tlsrouter")
((#:unpack-path _ "") "github.com/inetaf/tcpproxy")))
(propagated-inputs '())
(inputs '())
(description
"TLSRouter is a TLS proxy that routes connections to backends based on
the TLS @acronym{SNI, Server Name Indication} of the TLS handshake. It
carries no encryption keys and cannot decode the traffic that it proxies.")))
(define-public gron
(package
(name "gron")