aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2024-03-08 13:30:26 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2024-03-08 13:30:26 +0000
commit6c89c8b436345ca3b4078c6bd9765112c5cd508d (patch)
tree59eba2be089059c8cd8c98904caa0bd445dce109
parenta24e47c4b605b4965dc5b4385c6909dc6a9fb8e5 (diff)
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)
-rw-r--r--net-mgmt/Makefile1
-rw-r--r--net-mgmt/p5-Prometheus-Tiny-Shared/Makefile35
-rw-r--r--net-mgmt/p5-Prometheus-Tiny-Shared/distinfo3
-rw-r--r--net-mgmt/p5-Prometheus-Tiny-Shared/pkg-descr3
4 files changed, 42 insertions, 0 deletions
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.