[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#48729] [PATCH v6 09/25] gnu: Add go-github-com-operatorfoundation-o
From: |
Raghav Gururajan |
Subject: |
[bug#48729] [PATCH v6 09/25] gnu: Add go-github-com-operatorfoundation-obfs4. |
Date: |
Tue, 22 Jun 2021 00:35:01 -0400 |
* gnu/packages/golang.scm (go-github-com-operatorfoundation-obfs4): New
variable.
---
gnu/packages/golang.scm | 128 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 128 insertions(+)
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 2887e1380b..be21ec69fa 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -69,6 +69,134 @@
#:use-module (ice-9 match)
#:use-module (srfi srfi-1))
+(define-public go-github-com-operatorfoundation-obfs4
+ (package
+ (name "go-github-com-operatorfoundation-obfs4")
+ (version "1.0.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/OperatorFoundation/obfs4")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0s730xagdxs66wfh65hb5v9a5h01q5ncic3pyij0a043scagizgr"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:unpack-path "github.com/OperatorFoundation/obfs4"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda _
+ (substitute* (find-files "." "\\.go$")
+ ;; To drop '.git' suffix in import path of goptlib.
+ (("goptlib\\.git") "goptlib"))))
+ (replace 'build
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'build)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/OperatorFoundation/obfs4/common/csrand"
+ "github.com/OperatorFoundation/obfs4/common/drbg"
+ "github.com/OperatorFoundation/obfs4/common/log"
+ "github.com/OperatorFoundation/obfs4/common/ntor"
+ "github.com/OperatorFoundation/obfs4/common/probdist"
+ "github.com/OperatorFoundation/obfs4/common/pt_extras"
+ "github.com/OperatorFoundation/obfs4/common/replayfilter"
+ "github.com/OperatorFoundation/obfs4/common/socks5"
+ "github.com/OperatorFoundation/obfs4/common/termmon"
+ "github.com/OperatorFoundation/obfs4/common/uniformdh"
+ "github.com/OperatorFoundation/obfs4/modes/pt_socks5"
+ "github.com/OperatorFoundation/obfs4/modes/stun_udp"
+ "github.com/OperatorFoundation/obfs4/modes/transparent_tcp"
+ "github.com/OperatorFoundation/obfs4/modes/transparent_udp"
+ "github.com/OperatorFoundation/obfs4/obfs4proxy"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4"
+ "github.com/OperatorFoundation/obfs4/transports"))))
+ (replace 'check
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'check)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/OperatorFoundation/obfs4/common/csrand"
+ "github.com/OperatorFoundation/obfs4/common/drbg"
+ "github.com/OperatorFoundation/obfs4/common/log"
+ "github.com/OperatorFoundation/obfs4/common/ntor"
+ "github.com/OperatorFoundation/obfs4/common/probdist"
+ "github.com/OperatorFoundation/obfs4/common/pt_extras"
+ "github.com/OperatorFoundation/obfs4/common/replayfilter"
+ "github.com/OperatorFoundation/obfs4/common/socks5"
+ "github.com/OperatorFoundation/obfs4/common/termmon"
+ "github.com/OperatorFoundation/obfs4/common/uniformdh"
+ ;; ERROR: Println arg dialFn is a func value, not called.
+ ;;"github.com/OperatorFoundation/obfs4/modes/pt_socks5"
+ ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn.
+ ;;"github.com/OperatorFoundation/obfs4/modes/stun_udp"
+ "github.com/OperatorFoundation/obfs4/modes/transparent_tcp"
+ ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn
+ ;;"github.com/OperatorFoundation/obfs4/modes/transparent_udp"
+ ;; ERROR: Println call has possible formatting directive %s.
+ ;;"github.com/OperatorFoundation/obfs4/obfs4proxy"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4"
+ "github.com/OperatorFoundation/obfs4/transports"))))
+ (replace 'install
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'install)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/OperatorFoundation/obfs4/common/csrand"
+ "github.com/OperatorFoundation/obfs4/common/drbg"
+ "github.com/OperatorFoundation/obfs4/common/log"
+ "github.com/OperatorFoundation/obfs4/common/ntor"
+ "github.com/OperatorFoundation/obfs4/common/probdist"
+ "github.com/OperatorFoundation/obfs4/common/pt_extras"
+ "github.com/OperatorFoundation/obfs4/common/replayfilter"
+ "github.com/OperatorFoundation/obfs4/common/socks5"
+ "github.com/OperatorFoundation/obfs4/common/termmon"
+ "github.com/OperatorFoundation/obfs4/common/uniformdh"
+ "github.com/OperatorFoundation/obfs4/modes/pt_socks5"
+ "github.com/OperatorFoundation/obfs4/modes/stun_udp"
+ "github.com/OperatorFoundation/obfs4/modes/transparent_tcp"
+ "github.com/OperatorFoundation/obfs4/modes/transparent_udp"
+ "github.com/OperatorFoundation/obfs4/obfs4proxy"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http"
+ "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4"
+ "github.com/OperatorFoundation/obfs4/transports")))))))
+ (propagated-inputs
+ `(("go-github-com-dchest-siphash"
+ ,go-github-com-dchest-siphash)
+ ("go-github-com-operatorfoundation-ed25519"
+ ,go-github-com-operatorfoundation-ed25519)
+ ("go-github-com-willscott-goturn"
+ ,go-github-com-willscott-goturn)
+ ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
+ ("go-golang-org-x-net" ,go-golang-org-x-net)
+ ("go-torproject-org-pluggable-transports-goptlib"
+ ,go-torproject-org-pluggable-transports-goptlib)))
+ (home-page "https://github.com/OperatorFoundation/obfs4")
+ (synopsis "Network Obfourscator")
+ (description "Obfs4 is a look-like nothing obfuscation protocol that
+incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol.
+The notable differences between ScrambleSuit and obfs4 are:
+@itemize
+@item The handshake always does a full key exchange (no such thing as a Session
+Ticket Handshake).
+@item The handshake uses the Tor Project's ntor handshake with public keys
+obfuscated via the Elligator 2 mapping.
+@item The link layer encryption uses NaCl secret boxes (Poly1305/XSalsa20).
+@end itemize")
+ (license license:bsd-2)))
+
(define-public go-github-com-willscott-goturn
(let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b")
(revision "68"))
--
2.32.0
- [bug#48729] [PATCH v6 05/25] gnu: Add go-github-com-keybase-go-ps., (continued)
- [bug#48729] [PATCH v6 05/25] gnu: Add go-github-com-keybase-go-ps., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 04/25] gnu: Add go-github-com-apparentlymart-go-openvpn-mgmt., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 06/25] gnu: Add go-github-com-sevlyar-go-daemon., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 07/25] gnu: Add go-torproject-org-pluggable-transports-goptlib., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 10/25] gnu: Add go-github-com-operatorfoundation-shapeshifter-ipc., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 08/25] gnu: Add go-github-com-willscott-goturn., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 11/25] gnu: Add go-github-com-op-go-logging., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 13/25] gnu: Add go-github-com-deckarep-golang-set., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 16/25] gnu: Add go-github-com-mufti1-interconv., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 17/25] gnu: Add go-github-com-aead-chacha20., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 09/25] gnu: Add go-github-com-operatorfoundation-obfs4.,
Raghav Gururajan <=
- [bug#48729] [PATCH v6 15/25] gnu: Add go-github-com-opentracing-opentracing-go., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 12/25] gnu: Add go-github-com-blanu-dust., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 14/25] gnu: Add go-github-com-operatorfoundation-monolith-go., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 18/25] gnu: Add go-github-com-riobard-go-bloom., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 20/25] gnu: Add go-github-com-kataras-pio., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 21/25] gnu: Add go-github-com-kataras-golog., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 23/25] gnu: Add go-0xacab-org-leap-shapeshifter., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 25/25] services: Add bitmask-service-type., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 19/25] gnu: Add go-github-com-shadowsocks-go-shadowsocks2., Raghav Gururajan, 2021/06/22
- [bug#48729] [PATCH v6 22/25] gnu: Add go-github-com-operatorfoundation-shapeshifter-transports., Raghav Gururajan, 2021/06/22