changeset 4:393d97a267b6

Build of libprom for version 0.1.3 succeeds
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 18 Mar 2025 17:49:23 +0100
parents
children 56e544de90da
files Makefile distinfo pkg-descr pkg-plist
diffstat 4 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Tue Mar 18 17:49:23 2025 +0100
@@ -0,0 +1,29 @@
+PORTNAME=	prometheus-client-c-libprom
+DISTVERSION=	0.1.3
+CATEGORIES=	net-mgmt
+
+MAINTAINER=	freebsd-dev@dom66.de
+COMMENT=	This is libprom -- the C-client library for Prometheus
+WWW=		https://github.com/digitalocean/prometheus-client-c
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake:noninja compiler:c11
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	digitalocean
+GH_PROJECT=	prometheus-client-c
+GH_TAGNAME=	v${DISTVERSION}
+
+# Currently compilation errors on incompatible types with clang
+USE_GCC=	yes
+USE_LDCONFIG=	yes
+
+CMAKE_SOURCE_PATH=	${WRKSRC}/prom
+
+do-install:
+	(cd ${CMAKE_SOURCE_PATH}/include && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include)
+	${INSTALL_LIB} ${BUILD_WRKSRC}/libprom.so ${STAGEDIR}${PREFIX}/lib/libprom.so
+
+.include <bsd.port.mk>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/distinfo	Tue Mar 18 17:49:23 2025 +0100
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742306323
+SHA256 (digitalocean-prometheus-client-c-0.1.3-v0.1.3_GH0.tar.gz) = 3a82e302a5bdbbd5f699cf21bee97217c0386b5076d878cab724d5f672ef5092
+SIZE (digitalocean-prometheus-client-c-0.1.3-v0.1.3_GH0.tar.gz) = 1038300
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pkg-descr	Tue Mar 18 17:49:23 2025 +0100
@@ -0,0 +1,11 @@
+This is libprom -- the C-client library for Prometheus from
+https://github.com/digitalocean/prometheus-client-c.
+
+This project provides this shared library for instrumenting software via
+Prometheus.
+
+  libprom: Provides the core API. Resources such as counters, gauges,
+           histograms, and collector registries can be found
+           here. This library has no dependencies on third-party
+           libraries; however, it does rely on pthreads native to
+           POSIX systems.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pkg-plist	Tue Mar 18 17:49:23 2025 +0100
@@ -0,0 +1,14 @@
+include/prom_collector.h
+include/prom_alloc.h
+include/prom_metric_sample_histogram.h
+include/prom_gauge.h
+include/prom_map.h
+include/prom_collector_registry.h
+include/prom_histogram_buckets.h
+include/prom_histogram.h
+include/prom_counter.h
+include/prom.h
+include/prom_linked_list.h
+include/prom_metric_sample.h
+include/prom_metric.h
+lib/libprom.so