git: e1ea5938c452 - main - www/ghostunnel: New port: SSL/TLS proxy with mutual authentication for securing non-TLS services

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 20 Apr 2023 07:29:31 UTC
The branch main has been updated by yuri:

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

commit e1ea5938c4524d98dfc987b0766a3ebcc291e05a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-04-20 07:28:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-04-20 07:29:18 +0000

    www/ghostunnel: New port: SSL/TLS proxy with mutual authentication for securing non-TLS services
---
 www/Makefile             |  1 +
 www/ghostunnel/Makefile  | 19 +++++++++++++++++++
 www/ghostunnel/distinfo  |  5 +++++
 www/ghostunnel/pkg-descr |  9 +++++++++
 4 files changed, 34 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 0e4ab62610c4..a90edbd20c24 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -182,6 +182,7 @@
     SUBDIR += geneweb
     SUBDIR += geolizer
     SUBDIR += get_flash_videos
+    SUBDIR += ghostunnel
     SUBDIR += gist
     SUBDIR += gitea
     SUBDIR += gitlab-ce
diff --git a/www/ghostunnel/Makefile b/www/ghostunnel/Makefile
new file mode 100644
index 000000000000..d756f8550c5a
--- /dev/null
+++ b/www/ghostunnel/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	ghostunnel
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.7.1
+CATEGORIES=	www
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	SSL/TLS proxy with mutual authentication for securing non-TLS services
+WWW=		https://github.com/ghostunnel/ghostunnel
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/ghostunnel/ghostunnel
+
+PLIST_FILES=	bin/ghostunnel
+
+.include <bsd.port.mk>
diff --git a/www/ghostunnel/distinfo b/www/ghostunnel/distinfo
new file mode 100644
index 000000000000..6dbbed932e68
--- /dev/null
+++ b/www/ghostunnel/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1681975299
+SHA256 (go/www_ghostunnel/ghostunnel-v1.7.1/v1.7.1.mod) = 5fe3556a4ef9259a7982f48cc755c769f37c01ee1e10dd24139a73e3a99a103f
+SIZE (go/www_ghostunnel/ghostunnel-v1.7.1/v1.7.1.mod) = 7962
+SHA256 (go/www_ghostunnel/ghostunnel-v1.7.1/v1.7.1.zip) = 46557abb2a59cad88eb5c641583f2c4a0f4bf2a8f4d2afdc6bf0d3a553d47c87
+SIZE (go/www_ghostunnel/ghostunnel-v1.7.1/v1.7.1.zip) = 322105
diff --git a/www/ghostunnel/pkg-descr b/www/ghostunnel/pkg-descr
new file mode 100644
index 000000000000..5ed4966d7b10
--- /dev/null
+++ b/www/ghostunnel/pkg-descr
@@ -0,0 +1,9 @@
+Ghostunnel is a simple TLS proxy with mutual authentication support for securing
+non-TLS backend applications.
+
+Ghostunnel supports two modes, client mode and server mode. Ghostunnel in server
+mode runs in front of a backend server and accepts TLS-secured connections,
+which are then proxied to the (insecure) backend. A backend can be a TCP
+domain/port or a UNIX domain socket. Ghostunnel in client mode accepts
+(insecure) connections through a TCP or UNIX domain socket and proxies them to
+a TLS-secured service. In other words, ghostunnel is a replacement for stunnel.