git: 6c89c8b43634 - main - net-mgmt/p5-Prometheus-Tiny-Shared: Add new port

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Fri, 08 Mar 2024 13:31:32 UTC
The branch main has been updated by nork:

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

commit 6c89c8b436345ca3b4078c6bd9765112c5cd508d
Author:     Norikatsu Shigemura <nork@FreeBSD.org>
AuthorDate: 2024-03-08 13:30:26 +0000
Commit:     Norikatsu Shigemura <nork@FreeBSD.org>
CommitDate: 2024-03-08 13:30:26 +0000

    net-mgmt/p5-Prometheus-Tiny-Shared: Add new port
    
    Prometheus::Tiny::Shared is a wrapper around Prometheus::Tiny that instead
    of storing metrics data in a hashtable, stores them in a shared datastore.
    
    Approved by:    hrs (mentor)
---
 net-mgmt/Makefile                            |  1 +
 net-mgmt/p5-Prometheus-Tiny-Shared/Makefile  | 35 ++++++++++++++++++++++++++++
 net-mgmt/p5-Prometheus-Tiny-Shared/distinfo  |  3 +++
 net-mgmt/p5-Prometheus-Tiny-Shared/pkg-descr |  3 +++
 4 files changed, 42 insertions(+)

diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile
index c580de378c80..f9fb4db6ba4b 100644
--- a/net-mgmt/Makefile
+++ b/net-mgmt/Makefile
@@ -267,6 +267,7 @@
     SUBDIR += p5-NetApp
     SUBDIR += p5-POE-Component-SNMP
     SUBDIR += p5-Prometheus-Tiny
+    SUBDIR += p5-Prometheus-Tiny-Shared
     SUBDIR += p5-RDR-Collector
     SUBDIR += p5-SNMP-Info
     SUBDIR += p5-SNMP-MIB-Compiler
diff --git a/net-mgmt/p5-Prometheus-Tiny-Shared/Makefile b/net-mgmt/p5-Prometheus-Tiny-Shared/Makefile
new file mode 100644
index 000000000000..cbcad0e4ff25
--- /dev/null
+++ b/net-mgmt/p5-Prometheus-Tiny-Shared/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	Prometheus-Tiny-Shared
+PORTVERSION=	0.027
+CATEGORIES=	net-mgmt perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	nork@FreeBSD.org
+COMMENT=	Tiny Prometheus client with a shared database behind it
+WWW=		https://metacpan.org/release/Prometheus-Tiny-Shared
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+RUN_DEPENDS=	p5-Hash-SharedMem>0:devel/p5-Hash-SharedMem \
+		p5-JSON-XS>0:converters/p5-JSON-XS \
+		p5-Prometheus-Tiny>=0.011:net-mgmt/p5-Prometheus-Tiny
+TEST_DEPENDS=	p5-Data-Random>0:devel/p5-Data-Random \
+		p5-Test-Differences>0:devel/p5-Test-Differences \
+		p5-Test-Exception>0:devel/p5-Test-Exception \
+		p5-Test-Warn>0:devel/p5-Test-Warn
+#		p5-HTTP-Request-Common>0:p5-HTTP-Request-Common \
+#		p5-Plack-Test>0:p5-Plack-Test \
+
+USES=		perl5
+USE_PERL5=	configure
+
+TEST_ENV=	# RELEASE_TESTING=1 #: release test not work #
+
+NO_ARCH=	yes
+NO_TEST=	yes # almost work, but not by a lack of some ports #
+
+PLIST_FILES=	${SITE_MAN3_REL}/Prometheus::Tiny::Shared.3.gz \
+		${SITE_PERL_REL}/Prometheus/Tiny/Shared.pm
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/p5-Prometheus-Tiny-Shared/distinfo b/net-mgmt/p5-Prometheus-Tiny-Shared/distinfo
new file mode 100644
index 000000000000..5dc9fbaaa19e
--- /dev/null
+++ b/net-mgmt/p5-Prometheus-Tiny-Shared/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708673536
+SHA256 (Prometheus-Tiny-Shared-0.027.tar.gz) = 7a050baa18ca7c0d20b288a1d4bd2727713a94583f426b249f95dc8d40edcbd1
+SIZE (Prometheus-Tiny-Shared-0.027.tar.gz) = 18594
diff --git a/net-mgmt/p5-Prometheus-Tiny-Shared/pkg-descr b/net-mgmt/p5-Prometheus-Tiny-Shared/pkg-descr
new file mode 100644
index 000000000000..789eb25818f0
--- /dev/null
+++ b/net-mgmt/p5-Prometheus-Tiny-Shared/pkg-descr
@@ -0,0 +1,3 @@
+Prometheus::Tiny::Shared is a wrapper around Prometheus::Tiny that instead
+of storing metrics data in a hashtable, stores them in a shared datastore.
+This lets you keep a single set of metrics in a multithreaded app.