git: fd4042a38f6d - main - devel/protovalidate: Add protovalidate 1.0.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Nov 2025 23:53:14 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fd4042a38f6de690818ee4e2ea794996f16e44ad
commit fd4042a38f6de690818ee4e2ea794996f16e44ad
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-11-29 23:20:20 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-11-29 23:20:20 +0000
devel/protovalidate: Add protovalidate 1.0.0
Protovalidate is the semantic validation library for Protobuf. It provides
standard annotations to validate common rules on messages and fields, as well as
the ability to use CEL to write custom rules. It's the next generation of
protoc-gen-validate.
With Protovalidate, you can annotate your Protobuf messages with both standard
and custom validation rules.
---
devel/Makefile | 1 +
devel/protovalidate/Makefile | 23 +++++++++++++++++++++++
devel/protovalidate/distinfo | 5 +++++
devel/protovalidate/pkg-descr | 7 +++++++
4 files changed, 36 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 7e17f3e7c079..6f6800a0bb8c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4353,6 +4353,7 @@
SUBDIR += protobuf3
SUBDIR += protoc-gen-go-grpc
SUBDIR += prototool
+ SUBDIR += protovalidate
SUBDIR += protozero
SUBDIR += pructl
SUBDIR += psimd
diff --git a/devel/protovalidate/Makefile b/devel/protovalidate/Makefile
new file mode 100644
index 000000000000..cb2203bdce04
--- /dev/null
+++ b/devel/protovalidate/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= protovalidate
+PORTVERSION= 1.0.0
+DISTVERSIONPREFIX= v
+CATEGORIES= devel
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Protocol Buffer Validation
+WWW= https://protovalidate.com/ \
+ https://github.com/bufbuild/protovalidate
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+
+GO_MODULE= github.com/bufbuild/protovalidate/tools
+GO_TARGET= ./protovalidate-conformance \
+ ./protovalidate-migrate
+
+PLIST_FILES= bin/protovalidate-conformance \
+ bin/protovalidate-migrate
+
+.include <bsd.port.mk>
diff --git a/devel/protovalidate/distinfo b/devel/protovalidate/distinfo
new file mode 100644
index 000000000000..7a2937cee089
--- /dev/null
+++ b/devel/protovalidate/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1763853128
+SHA256 (go/devel_protovalidate/protovalidate-v1.0.0/v1.0.0.mod) = de03fc4bc393a8cd74ea73d495ccc424cfec2c67d2be1936379a7f684ddc9bb7
+SIZE (go/devel_protovalidate/protovalidate-v1.0.0/v1.0.0.mod) = 380
+SHA256 (go/devel_protovalidate/protovalidate-v1.0.0/v1.0.0.zip) = 163a1fefebfb8912c8887ae8228a1b0272cfef3ae1dffa63025dce6bdbc4ae1e
+SIZE (go/devel_protovalidate/protovalidate-v1.0.0/v1.0.0.zip) = 333895
diff --git a/devel/protovalidate/pkg-descr b/devel/protovalidate/pkg-descr
new file mode 100644
index 000000000000..fb8c8f5de16d
--- /dev/null
+++ b/devel/protovalidate/pkg-descr
@@ -0,0 +1,7 @@
+Protovalidate is the semantic validation library for Protobuf. It provides
+standard annotations to validate common rules on messages and fields, as well as
+the ability to use CEL to write custom rules. It's the next generation of
+protoc-gen-validate.
+
+With Protovalidate, you can annotate your Protobuf messages with both standard
+and custom validation rules.