git: cdeafd8493ea - main - www/zgrab2: New port: Fast Go application scanner

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 25 Jun 2023 07:04:02 UTC
The branch main has been updated by yuri:

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

commit cdeafd8493ea8b2838cf64e2f806cdc0604235e7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-25 07:03:20 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-25 07:03:56 +0000

    www/zgrab2: New port: Fast Go application scanner
---
 www/Makefile         |  1 +
 www/zgrab2/Makefile  | 20 ++++++++++++++++++++
 www/zgrab2/distinfo  |  5 +++++
 www/zgrab2/pkg-descr |  6 ++++++
 4 files changed, 32 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index ddae3e968d6c..e8682eecfb61 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2457,6 +2457,7 @@
     SUBDIR += zend-framework
     SUBDIR += zenphoto
     SUBDIR += zerowait-httpd
+    SUBDIR += zgrab2
     SUBDIR += zola
 
 .include <bsd.port.subdir.mk>
diff --git a/www/zgrab2/Makefile b/www/zgrab2/Makefile
new file mode 100644
index 000000000000..d19ccf811541
--- /dev/null
+++ b/www/zgrab2/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	zgrab2
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.7
+CATEGORIES=	www
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Fast Go application scanner
+WWW=		https://github.com/zmap/zgrab2
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/zmap/zgrab2
+GO_TARGET=	./cmd/${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/zgrab2/distinfo b/www/zgrab2/distinfo
new file mode 100644
index 000000000000..03ea87ad1e47
--- /dev/null
+++ b/www/zgrab2/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1687676208
+SHA256 (go/www_zgrab2/zgrab2-v0.1.7/v0.1.7.mod) = 3bbb36f55fcf412090b10fb334cced23783605af60f3ac7b0d79729ec51dc7e4
+SIZE (go/www_zgrab2/zgrab2-v0.1.7/v0.1.7.mod) = 548
+SHA256 (go/www_zgrab2/zgrab2-v0.1.7/v0.1.7.zip) = 5a962abd6ff3daa072866943560166d5c70a3beaeb6f483eccb060b6aa479499
+SIZE (go/www_zgrab2/zgrab2-v0.1.7/v0.1.7.zip) = 1060870
diff --git a/www/zgrab2/pkg-descr b/www/zgrab2/pkg-descr
new file mode 100644
index 000000000000..1509d7d7b163
--- /dev/null
+++ b/www/zgrab2/pkg-descr
@@ -0,0 +1,6 @@
+ZGrab is a fast, modular application-layer network scanner designed for
+completing large Internet-wide surveys. ZGrab is built to work with
+ZMap (ZMap identifies L4 responsive hosts, ZGrab performs in-depth, follow-up
+L7 handshakes). Unlike many other network scanners, ZGrab outputs detailed
+transcripts of network handshakes (e.g., all messages exchanged in a TLS
+handshake) for offline analysis.