Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Apr 2018 06:06:59 +0000 (UTC)
From:      Sean Chittenden <seanc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468073 - in head/net: . grpcurl
Message-ID:  <201804230606.w3N66xBp071352@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: seanc
Date: Mon Apr 23 06:06:59 2018
New Revision: 468073
URL: https://svnweb.freebsd.org/changeset/ports/468073

Log:
  Add new port: net/grpcurl
  
  grpcurl is a command-line tool that lets you interact with gRPC servers. It's
  basically curl for gRPC servers.
  
  Approved by:	swills (mentor)
  Differential Revision:	https://reviews.freebsd.org/D15158

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

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Apr 23 05:50:35 2018	(r468072)
+++ head/net/Makefile	Mon Apr 23 06:06:59 2018	(r468073)
@@ -214,6 +214,7 @@
     SUBDIR += grilo-plugins2
     SUBDIR += grilo2
     SUBDIR += grive2
+    SUBDIR += grpcurl
     SUBDIR += grsync
     SUBDIR += gsk
     SUBDIR += gspoof

Added: head/net/grpcurl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grpcurl/Makefile	Mon Apr 23 06:06:59 2018	(r468073)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	grpcurl
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.0
+CATEGORIES=	net
+
+MAINTAINER=	seanc@FreeBSD.org
+COMMENT=	Command-line tool that lets you interact with gRPC servers
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	go:lang/go
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	fullstorydev
+GH_SUBDIR=	src/github.com/fullstorydev/grpcurl
+GH_TAGNAME=	ca5693f
+GH_TUPLE=	golang:protobuf:c65a041:jsonpb/src/github.com/golang/protobuf \
+		jhump:protoreflect:5cc2142:protoreflect/src/github.com/jhump/protoreflect \
+		golang:net:5f9ae10:net/src/golang.org/x/net \
+		grpc:grpc-go:4172bfc:grpcgo/src/google.golang.org/grpc \
+		golang:text:7922cc4:text/src/golang.org/x/text \
+		google:go-genproto:7fd901a:gogenproto/src/google.golang.org/genproto
+
+PLIST_FILES=	bin/grpcurl
+
+do-build:
+	cd ${WRKSRC}/cmd/${PORTNAME} && ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \
+	${LOCALBASE}/bin/go build -ldflags "-X main.version=${DISTVERSIONPREFIX}${PORTVERSION} -s -w" \
+		-o ${PORTNAME}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/fullstorydev/grpcurl/cmd/${PORTNAME}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/net/grpcurl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grpcurl/distinfo	Mon Apr 23 06:06:59 2018	(r468073)
@@ -0,0 +1,15 @@
+TIMESTAMP = 1524426278
+SHA256 (fullstorydev-grpcurl-v0.1.0-ca5693f_GH0.tar.gz) = 452153e7d8614e2dd4b88ca8f1b15f08e56f4bf1671e886d4d8a00d7c6766dc5
+SIZE (fullstorydev-grpcurl-v0.1.0-ca5693f_GH0.tar.gz) = 52038
+SHA256 (golang-protobuf-c65a041_GH0.tar.gz) = 223d442662bf7e9bac76bd6daa029e3b6505d600cfebc30d8a780ce721f7fbda
+SIZE (golang-protobuf-c65a041_GH0.tar.gz) = 268297
+SHA256 (jhump-protoreflect-5cc2142_GH0.tar.gz) = a995d9af8c6d1e455a2191f2096b9a32ced282f00eaa5b8764881df68c19a3f6
+SIZE (jhump-protoreflect-5cc2142_GH0.tar.gz) = 374611
+SHA256 (golang-net-5f9ae10_GH0.tar.gz) = a591471891765ad5955b9650e0ce19a48317d88f950201e3c20168a2627efb8a
+SIZE (golang-net-5f9ae10_GH0.tar.gz) = 946787
+SHA256 (grpc-grpc-go-4172bfc_GH0.tar.gz) = fde1509495269a02f631b5d970375474e946288a50ebe55da4187d79065a52b5
+SIZE (grpc-grpc-go-4172bfc_GH0.tar.gz) = 430680
+SHA256 (golang-text-7922cc4_GH0.tar.gz) = 43e0ad74934bd8b295cf3fbd182fd2295114075be1ef598cedb3789ce284826f
+SIZE (golang-text-7922cc4_GH0.tar.gz) = 6566268
+SHA256 (google-go-genproto-7fd901a_GH0.tar.gz) = b5d5d485dfb4b7ba49900f63cb10d9f815791298bccf3395ccc8bfe99f96560b
+SIZE (google-go-genproto-7fd901a_GH0.tar.gz) = 1753095

Added: head/net/grpcurl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/grpcurl/pkg-descr	Mon Apr 23 06:06:59 2018	(r468073)
@@ -0,0 +1,10 @@
+grpcurl is a command-line tool that lets you interact with gRPC servers. It's
+basically curl for gRPC servers.
+
+The main purpose for this tool is to invoke RPC methods on a gRPC server from
+the command-line.  gRPC servers use a binary encoding on the wire (protobufs)
+and is effectively impossible to interact with using regular HTTP tools such as
+curl.  grpcurl accepts messages using JSON encoding, which is usable by both
+humans and scripts.
+
+WWW: https://github.com/fullstorydev/grpcurl



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