git: 62967515333c - main - net/revsocks: Add new port

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Fri, 10 Nov 2023 09:17:27 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62967515333c0dceca2cc608a45ce6e122016938

commit 62967515333c0dceca2cc608a45ce6e122016938
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2023-11-10 09:17:01 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2023-11-10 09:17:21 +0000

    net/revsocks: Add new port
    
    Reverse SOCKS5 tunneler with SSL/TLS and proxy support.
    
    Features:
    
      *  Single executable
      *  Encrypted communication with TLS
      *  DNS tunneling support (SOCKS5 over DNS)
      *  Support for proxies
      *  Automatic SSL/TLS certificate generation if not specified
---
 net/Makefile           |  1 +
 net/revsocks/Makefile  | 37 +++++++++++++++++++++++++++++++++++++
 net/revsocks/distinfo  | 37 +++++++++++++++++++++++++++++++++++++
 net/revsocks/pkg-descr |  9 +++++++++
 4 files changed, 84 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index abeba9f1e997..7199f7f9b3b8 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1218,6 +1218,7 @@
     SUBDIR += remotebox
     SUBDIR += remotedesk
     SUBDIR += repeater
+    SUBDIR += revsocks
     SUBDIR += rfbproxy
     SUBDIR += rinetd
     SUBDIR += ripe-whois
diff --git a/net/revsocks/Makefile b/net/revsocks/Makefile
new file mode 100644
index 000000000000..3cf05473e498
--- /dev/null
+++ b/net/revsocks/Makefile
@@ -0,0 +1,37 @@
+PORTNAME=	revsocks
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.5
+CATEGORIES=	net
+
+MAINTAINER=	ehaupt@FreeBSD.org
+COMMENT=	Reverse SOCKS5 implementation in Go
+WWW=		https://github.com/kost/revsocks
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go
+USE_GITHUB=	yes
+GH_ACCOUNT=	kost
+
+GH_TUPLE=	Jeffail:tunny:v0.1.4:jeffail_tunny/vendor/github.com/Jeffail/tunny \
+		acomagu:bufpipe:v1.0.4:acomagu_bufpipe/vendor/github.com/acomagu/bufpipe \
+		armon:go-socks5:e75332964ef5:armon_go_socks5/vendor/github.com/armon/go-socks5 \
+		golang:crypto:v0.14.0:golang_crypto/vendor/golang.org/x/crypto \
+		golang:mod:v0.10.0:golang_mod/vendor/golang.org/x/mod \
+		golang:net:v0.17.0:golang_net/vendor/golang.org/x/net \
+		golang:protobuf:v1.5.3:golang_protobuf/vendor/github.com/golang/protobuf \
+		golang:sys:v0.13.0:golang_sys/vendor/golang.org/x/sys \
+		golang:tools:v0.9.1:golang_tools/vendor/golang.org/x/tools \
+		hashicorp:yamux:v0.1.1:hashicorp_yamux/vendor/github.com/hashicorp/yamux \
+		kost:chashell:cf0fbd106275:kost_chashell/vendor/github.com/kost/chashell \
+		kost:dnstun:6e7f5656a900:kost_dnstun/vendor/github.com/kost/dnstun \
+		kost:go-ntlmssp:a22bdd33b2a4:kost_go_ntlmssp/vendor/github.com/kost/go-ntlmssp \
+		miekg:dns:v1.1.54:miekg_dns/vendor/github.com/miekg/dns \
+		nhooyr:websocket:v1.8.10:nhooyr_websocket/vendor/nhooyr.io/websocket \
+		protocolbuffers:protobuf-go:v1.30.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
+		rs:xid:v1.5.0:rs_xid/vendor/github.com/rs/xid
+
+PLIST_FILES=	bin/revsocks
+
+.include <bsd.port.mk>
diff --git a/net/revsocks/distinfo b/net/revsocks/distinfo
new file mode 100644
index 000000000000..cce10905de0e
--- /dev/null
+++ b/net/revsocks/distinfo
@@ -0,0 +1,37 @@
+TIMESTAMP = 1699607291
+SHA256 (kost-revsocks-v2.5_GH0.tar.gz) = e3ad4e9ce556ae4b1b701a367ca450e9de72bfef11f42e01eda92ae4762d7515
+SIZE (kost-revsocks-v2.5_GH0.tar.gz) = 14489
+SHA256 (Jeffail-tunny-v0.1.4_GH0.tar.gz) = 2a4ddc46109e3c3398bec1a091b2b126765a250caa5721e0f69a157c8e1aec7a
+SIZE (Jeffail-tunny-v0.1.4_GH0.tar.gz) = 60016
+SHA256 (acomagu-bufpipe-v1.0.4_GH0.tar.gz) = e0cbe34e710110bf42c961195a968bf6e52f82f23ebf654469a43e645e019c99
+SIZE (acomagu-bufpipe-v1.0.4_GH0.tar.gz) = 4544
+SHA256 (armon-go-socks5-e75332964ef5_GH0.tar.gz) = 37f9cad3e321c452ea54824021ecd5b6ef4222c68b25f9c8a66a0c6d8411437e
+SIZE (armon-go-socks5-e75332964ef5_GH0.tar.gz) = 8586
+SHA256 (golang-crypto-v0.14.0_GH0.tar.gz) = 0c4a544080fe2e26e8cee929a123a9663cee81db155d1d66ccb0b38b395614b8
+SIZE (golang-crypto-v0.14.0_GH0.tar.gz) = 1797313
+SHA256 (golang-mod-v0.10.0_GH0.tar.gz) = 3d944a6ee2d258713636400930d0d5913a71a861d8efd00b51b97e8d19b487ba
+SIZE (golang-mod-v0.10.0_GH0.tar.gz) = 120380
+SHA256 (golang-net-v0.17.0_GH0.tar.gz) = 8cbbc0df17599834c9f547d802045b279724a3931f3cdb92c02d141214fd80c4
+SIZE (golang-net-v0.17.0_GH0.tar.gz) = 1456230
+SHA256 (golang-protobuf-v1.5.3_GH0.tar.gz) = 48457a6a9e8c78a7556ff5ff4a4c77d7df9bf70e882491ee0f3f1ff06db2bfaa
+SIZE (golang-protobuf-v1.5.3_GH0.tar.gz) = 171822
+SHA256 (golang-sys-v0.13.0_GH0.tar.gz) = 8877d20a8f1b2533ddef00e65b6b3b9cebbcbffa319ed525df0bc229f583e2b6
+SIZE (golang-sys-v0.13.0_GH0.tar.gz) = 1442250
+SHA256 (golang-tools-v0.9.1_GH0.tar.gz) = 564276c2f2c842d25df6a897932cd7fb2c1fab30283f9680a9deaa80185574d6
+SIZE (golang-tools-v0.9.1_GH0.tar.gz) = 3457326
+SHA256 (hashicorp-yamux-v0.1.1_GH0.tar.gz) = 0d91861ee5a3795e7c1e67202c5aedc8061d1d64889c34aaab6bf3a8df0855e3
+SIZE (hashicorp-yamux-v0.1.1_GH0.tar.gz) = 26020
+SHA256 (kost-chashell-cf0fbd106275_GH0.tar.gz) = fd31ca16de8e41a8af3cb4daf271a77cac72c0d130425b13dcaadee971fe71e8
+SIZE (kost-chashell-cf0fbd106275_GH0.tar.gz) = 118003
+SHA256 (kost-dnstun-6e7f5656a900_GH0.tar.gz) = fc6681897a642590331577167e6ae8029aaeb101429057e86c211d195f7f4a60
+SIZE (kost-dnstun-6e7f5656a900_GH0.tar.gz) = 7172
+SHA256 (kost-go-ntlmssp-a22bdd33b2a4_GH0.tar.gz) = 7c2be32875614e5881aa0d3d5323c5f76ef4c6e882369ac6ea0709f7acfdd67a
+SIZE (kost-go-ntlmssp-a22bdd33b2a4_GH0.tar.gz) = 7857
+SHA256 (miekg-dns-v1.1.54_GH0.tar.gz) = 8d7f1e5e4d08652ff9b84f54a88f8e9512ca5ad67e03ec3cb098db44339c1093
+SIZE (miekg-dns-v1.1.54_GH0.tar.gz) = 211769
+SHA256 (nhooyr-websocket-v1.8.10_GH0.tar.gz) = 0d91430f743963fbb39bea08592b47b2a8fed7c93b5338b7b30c809e111c8c4f
+SIZE (nhooyr-websocket-v1.8.10_GH0.tar.gz) = 58189
+SHA256 (protocolbuffers-protobuf-go-v1.30.0_GH0.tar.gz) = 3279a16ec3bdd7c53fe1599134de298ed90d9f3b6ec1c1eb5f3b76ba5aaa9f0c
+SIZE (protocolbuffers-protobuf-go-v1.30.0_GH0.tar.gz) = 1298988
+SHA256 (rs-xid-v1.5.0_GH0.tar.gz) = 105fc29a13c39f558a5ccf70bd27eded738628328bad682e24e04c3a798d3196
+SIZE (rs-xid-v1.5.0_GH0.tar.gz) = 11534
diff --git a/net/revsocks/pkg-descr b/net/revsocks/pkg-descr
new file mode 100644
index 000000000000..79932ac67fa9
--- /dev/null
+++ b/net/revsocks/pkg-descr
@@ -0,0 +1,9 @@
+Reverse SOCKS5 tunneler with SSL/TLS and proxy support.
+
+Features:
+
+  *  Single executable
+  *  Encrypted communication with TLS
+  *  DNS tunneling support (SOCKS5 over DNS)
+  *  Support for proxies
+  *  Automatic SSL/TLS certificate generation if not specified