git: 4e789bf705ef - main - www/httpx: Add new port

From: Gabriel M. Dutra <dutra_at_FreeBSD.org>
Date: Wed, 04 Dec 2024 15:13:28 UTC
The branch main has been updated by dutra:

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

commit 4e789bf705ef77c73fd6eef9b53e74cdb06b345f
Author:     Gabriel M. Dutra <dutra@FreeBSD.org>
AuthorDate: 2024-12-04 04:35:39 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2024-12-04 15:12:21 +0000

    www/httpx: Add new port
    
    HTTP toolkit that allows running multiple probes using the retryablehttp library
---
 www/Makefile        |  1 +
 www/httpx/Makefile  | 19 +++++++++++++++++++
 www/httpx/distinfo  |  5 +++++
 www/httpx/pkg-descr | 10 ++++++++++
 4 files changed, 35 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 8380ecfd3105..67d6fa8c1a55 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -266,6 +266,7 @@
     SUBDIR += httpclient
     SUBDIR += httpcore
     SUBDIR += httptunnel
+    SUBDIR += httpx
     SUBDIR += httrack
     SUBDIR += hurl
     SUBDIR += hypermail
diff --git a/www/httpx/Makefile b/www/httpx/Makefile
new file mode 100644
index 000000000000..7c5aff8c8cde
--- /dev/null
+++ b/www/httpx/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	httpx
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.6.9
+CATEGORIES=	www
+
+MAINTAINER=	dutra@FreeBSD.org
+COMMENT=	Multi-purpose HTTP toolkit
+WWW=		https://github.com/projectdiscovery/httpx
+
+LICENSE=	MIT
+
+USES=		go:1.21,modules
+GO_MODULE=	github.com/projectdiscovery/httpx
+
+GO_TARGET=	./cmd/${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/httpx/distinfo b/www/httpx/distinfo
new file mode 100644
index 000000000000..cfe3b7366d5f
--- /dev/null
+++ b/www/httpx/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1733285562
+SHA256 (go/www_httpx/httpx-v1.6.9/v1.6.9.mod) = 7a7cb1058905f462f0b0101488c724e70929d3d4be866e302f29ed0a44f11c0a
+SIZE (go/www_httpx/httpx-v1.6.9/v1.6.9.mod) = 7736
+SHA256 (go/www_httpx/httpx-v1.6.9/v1.6.9.zip) = 32f0faeb8db9296652261c2135bba300e6d11c386a2a7adc76bcfd6c37dfd686
+SIZE (go/www_httpx/httpx-v1.6.9/v1.6.9.zip) = 1766955
diff --git a/www/httpx/pkg-descr b/www/httpx/pkg-descr
new file mode 100644
index 000000000000..253c2c8a8cb1
--- /dev/null
+++ b/www/httpx/pkg-descr
@@ -0,0 +1,10 @@
+httpx is a fast and multi-purpose HTTP toolkit that allows running
+multiple probes using the retryablehttp library.
+
+Features:
+ - Simple and modular code base making it easy to contribute.
+ - Fast And fully configurable flags to probe multiple elements.
+ - Supports multiple HTTP based probings.
+ - Smart auto fallback from https to http as default.
+ - Supports hosts, URLs and CIDR as input.
+ - Handles edge cases doing retries, backoffs etc for handling WAFs.