git: 4c31ba907d01 - main - www/h2c: Add a new port
Mateusz Piotrowski
0mp at FreeBSD.org
Mon Aug 23 08:13:08 UTC 2021
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4c31ba907d019165606b96b0f636bbf68e1e0c5a
commit 4c31ba907d019165606b96b0f636bbf68e1e0c5a
Author: Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-08-23 06:05:05 +0000
Commit: Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-08-23 08:13:07 +0000
www/h2c: Add a new port
h2c stands for headers 2 curl. Provided a set of HTTP request headers,
it outputs the curl command line for generating the desired request.
WWW: https://curl.se/h2c/
---
www/Makefile | 1 +
www/h2c/Makefile | 25 +++++++++++++++++++++++++
www/h2c/distinfo | 3 +++
www/h2c/pkg-descr | 4 ++++
4 files changed, 33 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index fe5854b5cbb9..c7ca045a6dc5 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -221,6 +221,7 @@
SUBDIR += guile-www
SUBDIR += gurl
SUBDIR += gwsocket
+ SUBDIR += h2c
SUBDIR += h2o
SUBDIR += h2o-devel
SUBDIR += habari
diff --git a/www/h2c/Makefile b/www/h2c/Makefile
new file mode 100644
index 000000000000..c3489031f0b0
--- /dev/null
+++ b/www/h2c/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= h2c
+DISTVERSION= 1.0
+CATEGORIES= www
+
+MAINTAINER= 0mp at FreeBSD.org
+COMMENT= Provided a set of HTTP request headers, output a curl command line
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= perl5 shebangfix
+USE_GITHUB= yes
+GH_ACCOUNT= curl
+USE_PERL5= run
+SHEBANG_FILES= ${PORTNAME}
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+PLIST_FILES= bin/${PORTNAME}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/www/h2c/distinfo b/www/h2c/distinfo
new file mode 100644
index 000000000000..4f9f71410539
--- /dev/null
+++ b/www/h2c/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1629697915
+SHA256 (curl-h2c-1.0_GH0.tar.gz) = 1c5e4d76131abb5151c89cc54945256509dad9d12cab36205aa5bcd7f8a311af
+SIZE (curl-h2c-1.0_GH0.tar.gz) = 6418
diff --git a/www/h2c/pkg-descr b/www/h2c/pkg-descr
new file mode 100644
index 000000000000..fbd8e6a5eaad
--- /dev/null
+++ b/www/h2c/pkg-descr
@@ -0,0 +1,4 @@
+h2c stands for headers 2 curl. Provided a set of HTTP request headers,
+it outputs the curl command line for generating the desired request.
+
+WWW: https://curl.se/h2c/
More information about the dev-commits-ports-all
mailing list