# HG changeset patch # User Franz Glasner # Date 1742316563 -3600 # Node ID 393d97a267b621e7922ec8e898fc7c759b5a6f4c Build of libprom for version 0.1.3 succeeds diff -r 000000000000 -r 393d97a267b6 Makefile --- /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 diff -r 000000000000 -r 393d97a267b6 distinfo --- /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 diff -r 000000000000 -r 393d97a267b6 pkg-descr --- /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. diff -r 000000000000 -r 393d97a267b6 pkg-plist --- /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