Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2021 11:13:02 +0000 (UTC)
From:      Dave Cottlehuber <dch@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r566045 - in head/www: . gurl
Message-ID:  <202102191113.11JBD2Rt038259@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dch
Date: Fri Feb 19 11:13:02 2021
New Revision: 566045
URL: https://svnweb.freebsd.org/changeset/ports/566045

Log:
  www/gurl: new port of cURL-like tool in go, for humans.
  
  A cURL-like tool for humans, written in go. gURL can be used for
  testing, debugging, and generally interacting with HTTP servers. It
  makes using headers and JSON delightful.
  
  Sponsored by:	SkunkWerks, GmbH
  Differential Revision:	https://reviews.freebsd.org/D28784

Added:
  head/www/gurl/
  head/www/gurl/Makefile   (contents, props changed)
  head/www/gurl/distinfo   (contents, props changed)
  head/www/gurl/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Feb 19 10:18:18 2021	(r566044)
+++ head/www/Makefile	Fri Feb 19 11:13:02 2021	(r566045)
@@ -227,6 +227,7 @@
     SUBDIR += gtkhtml4
     SUBDIR += guacamole-client
     SUBDIR += guile-www
+    SUBDIR += gurl
     SUBDIR += gwsocket
     SUBDIR += h2o
     SUBDIR += h2o-devel

Added: head/www/gurl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/gurl/Makefile	Fri Feb 19 11:13:02 2021	(r566045)
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME=	gurl
+DISTVERSION=	0.2.1
+CATEGORIES=	www
+
+MAINTAINER=	dch@FreeBSD.org
+COMMENT=	Terminal cURL-like HTTP tool with delightful JSON & header support
+
+LICENSE=	APACHE20
+
+USES=		go:modules
+USE_GITHUB=	yes
+GH_ACCOUNT=	skunkwerks
+
+PLIST_FILES=	bin/gurl
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gurl
+	# find ${WRKDIR}/target -name "bat.1" -exec cp {} ${WRKSRC}/doc/bat.1 \;
+	# ${INSTALL_MAN} ${WRKSRC}/doc/bat.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/www/gurl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/gurl/distinfo	Fri Feb 19 11:13:02 2021	(r566045)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1613731022
+SHA256 (skunkwerks-gurl-0.2.1_GH0.tar.gz) = 7ae447cd8302a260c06521066437d2619edf97c5bff51c30910ec73fd8aaa5f7
+SIZE (skunkwerks-gurl-0.2.1_GH0.tar.gz) = 115018

Added: head/www/gurl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/gurl/pkg-descr	Fri Feb 19 11:13:02 2021	(r566045)
@@ -0,0 +1,14 @@
+command-line cURL-like tool for humans, written in go. gURL can be used
+for testing, debugging, and generally interacting with HTTP servers. It
+makes using headers and JSON a delight.
+
+A simple GET with custom header:
+$ gurl httpbin.org/get x-header:custom
+
+An automatic choice of POST, with content-type and JSON body:
+$ gurl httpbin.org/post bool=true key=value
+
+A PUT to HTTPS site from stdin:
+$ gurl PUT https://httpbin.org/put < /etc/os-release
+
+WWW: https://github.com/skunkwerks/gurl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102191113.11JBD2Rt038259>