summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-05-27 09:57:10 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-05-27 09:57:23 +0100
commit1f9a0911707c3cbb225ba6b5e7d71b050a111720 (patch)
tree2bc656ba9ae3cc3606b1bcf60893e2d689d671a9
parent3d39d357cda4291d8c631678d10c2535b00f4c6f (diff)
gnu: Add go-obfs4proxy.
Fixes <https://issues.guix.gnu.org/77470>. * gnu/packages/golang-crypto.scm (go-obfs4proxy): New variable. Change-Id: I318e757e3d2eaaba818f28277559e65ab87c910b
-rw-r--r--gnu/packages/golang-crypto.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 84b08cf414..41bc7ad963 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -3096,6 +3096,35 @@ tools."))))
" This package provides an command line interface (CLI)
tool."))))
+(define-public go-obfs4proxy
+ (package/inherit go-github-com-operatorfoundation-obfs4
+ (name "go-obfs4proxy")
+ (arguments
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-operatorfoundation-obfs4)
+ ((#:tests? _ #t) #f)
+ ((#:skip-build? _ #t) #f)
+ ((#:install-source? _ #t) #f)
+ ((#:import-path _) "github.com/OperatorFoundation/obfs4/obfs4proxy")
+ ((#:unpack-path _ "") "github.com/OperatorFoundation/obfs4")
+ ((#:phases phases '%standard-phases)
+ #~(modify-phases #$phases
+ (add-after 'install 'install-man-pages
+ (lambda* (#:key unpack-path #:allow-other-keys)
+ (let ((man-out (string-append #$output "/man/man1/"))
+ (man-src (string-append "src/" unpack-path "/doc/obfs4proxy.1")))
+ (install-file man-src man-out))))))))
+ (native-inputs (package-propagated-inputs go-github-com-operatorfoundation-obfs4))
+ (propagated-inputs '())
+ (inputs '())
+ (synopsis "Pluggable transport proxy for Tor, implementing obfs4")
+ (description
+ "obfs4proxy is a tool that attempts to circumvent censorship by
+transforming the Tor traffic between the client and the bridge. This way
+censors, who usually monitor traffic between the client and the bridge, will
+see innocent-looking transformed traffic instead of the actual Tor
+traffic.")))
+
(define-public ssh-to-pgp
(package
(name "ssh-to-pgp")