aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2021-08-23 06:05:05 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2021-08-23 08:13:07 +0000
commit4c31ba907d019165606b96b0f636bbf68e1e0c5a (patch)
treeb36082b61d0cd9a17f70e7d20f480c1857781826
parent2ddff4b91cddcd2bd61288b48e149a0594ddfa71 (diff)
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/
-rw-r--r--www/Makefile1
-rw-r--r--www/h2c/Makefile25
-rw-r--r--www/h2c/distinfo3
-rw-r--r--www/h2c/pkg-descr4
4 files changed, 33 insertions, 0 deletions
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@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/