git: f7ae4c5c4794 - main - devel/grpc-gateway: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 May 2025 18:45:23 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=f7ae4c5c4794439408424c6d006c820dc94a71d7 commit f7ae4c5c4794439408424c6d006c820dc94a71d7 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2025-05-04 10:13:05 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2025-05-04 18:44:52 +0000 devel/grpc-gateway: New port gRPC to JSON proxy generator following the gRPC HTTP spec The gRPC-Gateway is a plugin of the Google protocol buffers compiler protoc. It reads protobuf service definitions and generates a reverse-proxy server which translates a RESTful HTTP API into gRPC. This server is generated according to the google.api.http annotations in your service definitions. WWW: https://github.com/grpc-ecosystem/grpc-gateway/ --- devel/Makefile | 1 + devel/grpc-gateway/Makefile | 22 ++++++++++++++++++++++ devel/grpc-gateway/distinfo | 5 +++++ devel/grpc-gateway/pkg-descr | 5 +++++ 4 files changed, 33 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 17aa23a3b81d..ebcaa54eccb2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -953,6 +953,7 @@ SUBDIR += grcov SUBDIR += grex SUBDIR += grpc + SUBDIR += grpc-gateway SUBDIR += gsettings-desktop-schemas SUBDIR += gsl-lite SUBDIR += gsoap diff --git a/devel/grpc-gateway/Makefile b/devel/grpc-gateway/Makefile new file mode 100644 index 000000000000..28cf5ecee147 --- /dev/null +++ b/devel/grpc-gateway/Makefile @@ -0,0 +1,22 @@ +PORTNAME= grpc-gateway +DISTVERSIONPREFIX= v +DISTVERSION= 2.26.3 +CATEGORIES= devel + +MAINTAINER= bofh@FreeBSD.org +COMMENT= gRPC to JSON proxy generator following the gRPC HTTP spec +WWW= https://github.com/grpc-ecosystem/grpc-gateway/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:1.23,modules + +GO_MODULE= github.com/grpc-ecosystem/grpc-gateway/v2 +GO_TARGET= ./protoc-gen-grpc-gateway \ + ./protoc-gen-openapiv2 + +PLIST_FILES= bin/protoc-gen-grpc-gateway \ + bin/protoc-gen-openapiv2 + +.include <bsd.port.mk> diff --git a/devel/grpc-gateway/distinfo b/devel/grpc-gateway/distinfo new file mode 100644 index 000000000000..099646d3dcdc --- /dev/null +++ b/devel/grpc-gateway/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1746353122 +SHA256 (go/devel_grpc-gateway/grpc-gateway-v2.26.3/v2.26.3.mod) = 2cddbad8d2382213d6072bc12793873dba8d6612bcc56da1c1582b601f3a87b6 +SIZE (go/devel_grpc-gateway/grpc-gateway-v2.26.3/v2.26.3.mod) = 680 +SHA256 (go/devel_grpc-gateway/grpc-gateway-v2.26.3/v2.26.3.zip) = c330a95ca20bf6c52af5474ebb58eb5c034925731e111a32c25e260f69075fb0 +SIZE (go/devel_grpc-gateway/grpc-gateway-v2.26.3/v2.26.3.zip) = 1142715 diff --git a/devel/grpc-gateway/pkg-descr b/devel/grpc-gateway/pkg-descr new file mode 100644 index 000000000000..1aa2c860f558 --- /dev/null +++ b/devel/grpc-gateway/pkg-descr @@ -0,0 +1,5 @@ +The gRPC-Gateway is a plugin of the Google protocol buffers compiler +protoc. It reads protobuf service definitions and generates a +reverse-proxy server which translates a RESTful HTTP API into gRPC. This +server is generated according to the google.api.http annotations in your +service definitions.