git: b0424fbc782b - main - devel/opentelemetry-proto: New port: OTLP spec and Protobuf definitions

From: Sergey A. Osokin <osa_at_FreeBSD.org>
Date: Fri, 08 Sep 2023 15:58:54 UTC
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b0424fbc782b0ab6cb82d6da2c8d38cab24ab9c1

commit b0424fbc782b0ab6cb82d6da2c8d38cab24ab9c1
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-09-08 15:57:07 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2023-09-08 15:57:07 +0000

    devel/opentelemetry-proto: New port: OTLP spec and Protobuf definitions
    
    OpenTelemetry protocol (OTLP) specification and Protobuf definitions
---
 devel/Makefile                      |  1 +
 devel/opentelemetry-proto/Makefile  | 27 +++++++++++++++++++++++++++
 devel/opentelemetry-proto/distinfo  |  3 +++
 devel/opentelemetry-proto/pkg-descr |  1 +
 devel/opentelemetry-proto/pkg-plist |  8 ++++++++
 5 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 321228a96651..7612c512b49d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1717,6 +1717,7 @@
     SUBDIR += opengrok
     SUBDIR += openocd
     SUBDIR += opentelemetry-cpp
+    SUBDIR += opentelemetry-proto
     SUBDIR += openwince-include
     SUBDIR += orc
     SUBDIR += orcania
diff --git a/devel/opentelemetry-proto/Makefile b/devel/opentelemetry-proto/Makefile
new file mode 100644
index 000000000000..14445d812fd5
--- /dev/null
+++ b/devel/opentelemetry-proto/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	opentelemetry
+PORTVERSION=	1.0.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+PKGNAMESUFFIX=	-proto
+
+MAINTAINER=	osa@FreeBSD.org
+COMMENT=	OpenTelemetry protocol (OTLP) specification and Protobuf definitions
+WWW=		https://github.com/open-telemetry/opentelemetry-proto
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	open-telemetry
+GH_PROJECT=	opentelemetry-proto
+
+NO_BUILD=	yes
+
+do-install:
+	${RM} ${WRKSRC}/opentelemetry/proto/collector/README.md
+	${RM} ${WRKSRC}/opentelemetry/proto/collector/*/v1/*.yaml
+	${MKDIR} ${STAGEDIR}${PREFIX}/include/opentelemetry/proto
+	(cd ${WRKSRC}/opentelemetry/proto && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/opentelemetry/proto)
+
+.include <bsd.port.mk>
diff --git a/devel/opentelemetry-proto/distinfo b/devel/opentelemetry-proto/distinfo
new file mode 100644
index 000000000000..910e7350ef66
--- /dev/null
+++ b/devel/opentelemetry-proto/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692838691
+SHA256 (open-telemetry-opentelemetry-proto-v1.0.0_GH0.tar.gz) = a13a1a7b76a1f22a0ca2e6c293e176ffef031413ab8ba653a82a1dbc286a3a33
+SIZE (open-telemetry-opentelemetry-proto-v1.0.0_GH0.tar.gz) = 111352
diff --git a/devel/opentelemetry-proto/pkg-descr b/devel/opentelemetry-proto/pkg-descr
new file mode 100644
index 000000000000..830b313f3391
--- /dev/null
+++ b/devel/opentelemetry-proto/pkg-descr
@@ -0,0 +1 @@
+The C++ OpenTelemetry client.
diff --git a/devel/opentelemetry-proto/pkg-plist b/devel/opentelemetry-proto/pkg-plist
new file mode 100644
index 000000000000..2fa646757410
--- /dev/null
+++ b/devel/opentelemetry-proto/pkg-plist
@@ -0,0 +1,8 @@
+include/opentelemetry/proto/collector/logs/v1/logs_service.proto
+include/opentelemetry/proto/collector/metrics/v1/metrics_service.proto
+include/opentelemetry/proto/collector/trace/v1/trace_service.proto
+include/opentelemetry/proto/common/v1/common.proto
+include/opentelemetry/proto/logs/v1/logs.proto
+include/opentelemetry/proto/metrics/v1/metrics.proto
+include/opentelemetry/proto/resource/v1/resource.proto
+include/opentelemetry/proto/trace/v1/trace.proto