git: 2bf62c074175 - main - ftp/wush: New port: CLI P2P file transfer tool

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Fri, 30 Aug 2024 11:11:59 UTC
The branch main has been updated by ashish:

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

commit 2bf62c0741753cbdc6dd00d7aae6ddb7e2c5e128
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2024-08-30 10:49:44 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2024-08-30 11:11:25 +0000

    ftp/wush: New port: CLI P2P file transfer tool
    
    wush is a command line tool that lets you easily transfer files and
    open shells over a peer-to-peer wireguard connection. It's similar to
    magic-wormhole but:
    
     - No requirement to set up or trust a relay server for authentication.
    
     - Powered by Wireguard for secure, fast, and reliable connections.
    
     - Automatic peer-to-peer connections over UDP.
    
     - Endless possibilities; rsync, ssh, etc.
---
 ftp/Makefile       |  1 +
 ftp/wush/Makefile  | 19 +++++++++++++++++++
 ftp/wush/distinfo  |  5 +++++
 ftp/wush/pkg-descr | 11 +++++++++++
 4 files changed, 36 insertions(+)

diff --git a/ftp/Makefile b/ftp/Makefile
index 7c9a8723cd32..06b545d27011 100644
--- a/ftp/Makefile
+++ b/ftp/Makefile
@@ -95,6 +95,7 @@
     SUBDIR += wget
     SUBDIR += wmget
     SUBDIR += wput
+    SUBDIR += wush
     SUBDIR += wzdftpd
     SUBDIR += yafc
 
diff --git a/ftp/wush/Makefile b/ftp/wush/Makefile
new file mode 100644
index 000000000000..a6827bdb90bc
--- /dev/null
+++ b/ftp/wush/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	wush
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.0
+CATEGORIES=	ftp
+
+MAINTAINER=	ashish@FreeBSD.org
+COMMENT=	Command-line file transfer tool over wireguard
+WWW=		https://github.com/coder/wush
+
+LICENSE=	CC0-1.0
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:1.22,modules
+
+GO_MODULE=	github.com/coder/wush
+GO_TARGET=	./cmd/wush
+PLIST_FILES=	bin/wush
+
+.include <bsd.port.mk>
diff --git a/ftp/wush/distinfo b/ftp/wush/distinfo
new file mode 100644
index 000000000000..f58391f517d0
--- /dev/null
+++ b/ftp/wush/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1725013565
+SHA256 (go/ftp_wush/wush-v0.1.0/v0.1.0.mod) = 58c0fca81e350862d7140ce13482f94db4551474a9f4d2dac25c9314a230cf9f
+SIZE (go/ftp_wush/wush-v0.1.0/v0.1.0.mod) = 11806
+SHA256 (go/ftp_wush/wush-v0.1.0/v0.1.0.zip) = 96be42311f08fdeb6074225d01079e95085a12f7d7aa887b128964f4df4a8cb4
+SIZE (go/ftp_wush/wush-v0.1.0/v0.1.0.zip) = 72824
diff --git a/ftp/wush/pkg-descr b/ftp/wush/pkg-descr
new file mode 100644
index 000000000000..c45ce269b256
--- /dev/null
+++ b/ftp/wush/pkg-descr
@@ -0,0 +1,11 @@
+wush is a command line tool that lets you easily transfer files and
+open shells over a peer-to-peer wireguard connection. It's similar to
+magic-wormhole but:
+
+ - No requirement to set up or trust a relay server for authentication.
+
+ - Powered by Wireguard for secure, fast, and reliable connections.
+
+ - Automatic peer-to-peer connections over UDP.
+
+ - Endless possibilities; rsync, ssh, etc.