diff options
| author | Victor Seva <vseva@debian.org> | 2025-01-30 17:08:09 +0100 |
|---|---|---|
| committer | Victor Seva <linuxmaniac@torreviejawireless.org> | 2025-01-31 11:57:11 +0100 |
| commit | 03f4dafb7379ef175c0fa97d082f89f6be6e60ab (patch) | |
| tree | c8f76f98ac4b2887aadc3b7017bbe5575b1a74c7 | |
| parent | 52cfb47b94066322163997eeabb9dd2e918a7d73 (diff) | |
Initial work
| -rw-r--r-- | debian/changelog | 5 | ||||
| -rw-r--r-- | debian/control | 83 | ||||
| -rw-r--r-- | debian/copyright | 33 | ||||
| -rw-r--r-- | debian/gbp.conf | 8 | ||||
| -rw-r--r-- | debian/libprom-dev.install | 3 | ||||
| -rw-r--r-- | debian/libprom1.install | 1 | ||||
| -rw-r--r-- | debian/libprom1.symbols | 118 | ||||
| -rw-r--r-- | debian/libpromhttp-dev.install | 2 | ||||
| -rw-r--r-- | debian/libpromhttp1.install | 1 | ||||
| -rw-r--r-- | debian/libpromhttp1.symbols | 6 | ||||
| -rw-r--r-- | debian/patches/0001-prom-missing-include-for-sprintf.patch | 21 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rwxr-xr-x | debian/rules | 21 | ||||
| -rw-r--r-- | debian/source/format | 1 | ||||
| -rw-r--r-- | debian/watch | 4 |
15 files changed, 308 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..2bdd160 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libprom (0.1.2-1) UNSTABLE; urgency=medium + + * Initial release. (Closes: #1094794) + + -- Victor Seva <vseva@debian.org> Thu, 30 Jan 2025 17:08:09 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a543386 --- /dev/null +++ b/debian/control @@ -0,0 +1,83 @@ +Source: libprom +Section: libs +Priority: optional +Maintainer: Victor Seva <vseva@debian.org> +Rules-Requires-Root: no +Build-Depends: + cmake (>= 3.15), + debhelper-compat (= 13), + dh-cmake, + dh-cmake-compat (= 1), + dh-sequence-cmake, + libmicrohttpd-dev, +Standards-Version: 4.6.2 +Homepage: https://github.com/jelmd/libprom +Vcs-Browser: https://salsa.debian.org/debian/libprom +Vcs-Git: https://salsa.debian.org/debian/libprom.git + +Package: libprom-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libprom1 (= ${binary:Version}), + ${misc:Depends}, +Description: Prometheus client libraries for C (development files) + Provides shared libraries for instrumenting software and exposing + metrics in text format as defined by the Prometheus exposition + format (see https://prometheus.io/docs/instrumenting/exposition_formats/ + for more details). + . + libprom provides the core API implementation + . + This package contains the development files. + +Package: libprom1 +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: Prometheus client libraries for C (runtime files) + Provides shared libraries for instrumenting software and exposing + metrics in text format as defined by the Prometheus exposition + format (see https://prometheus.io/docs/instrumenting/exposition_formats/ + for more details). + . + libprom provides the core API implementation + . + This package contains the runtime library. + +Package: libpromhttp-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: + libprom1 (= ${binary:Version}), + libpromhttp1 (= ${binary:Version}), + ${misc:Depends}, +Description: Prometheus client libraries for C (development files) + Provides shared libraries for instrumenting software and exposing + metrics in text format as defined by the Prometheus exposition + format (see https://prometheus.io/docs/instrumenting/exposition_formats/ + for more details). + . + libpromhttp provides a simple web handler to expose Prometheus metrics for scraping + . + This package contains the development files. + +Package: libpromhttp1 +Architecture: any +Multi-Arch: same +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: Prometheus client libraries for C (runtime files) + Provides shared libraries for instrumenting software and exposing + metrics in text format as defined by the Prometheus exposition + format (see https://prometheus.io/docs/instrumenting/exposition_formats/ + for more details). + . + libpromhttp provides a simple web handler to expose Prometheus metrics for scraping + . + This package contains the runtime library. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..61a56a8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/jelmd/libprom +Upstream-Name: libprom +Upstream-Contact: Jens Elkner <jel+libprom@cs.uni-magdeburg.de> + +Files: + * +Copyright: + 2019-2021 DigitalOcean Inc + 2021-2025 Jens Elkner <jel+libprom@cs.uni-magdeburg.de> +License: Apache-2.0 + +Files: + debian/* +Copyright: + 2025 Victor Seva <vseva@debian.org> +License: Apache-2.0 + +License: Apache-2.0 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +Comment: + On Debian systems, the complete text of the Apache version 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..e8ab070 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +[DEFAULT] +pristine-tar = True +debian-branch = debian/latest +upstream-branch = upstream/latest + +[import-orig] +filter = [ '.git', 'vendor' ] +filter-pristine-tar = True diff --git a/debian/libprom-dev.install b/debian/libprom-dev.install new file mode 100644 index 0000000..add601d --- /dev/null +++ b/debian/libprom-dev.install @@ -0,0 +1,3 @@ +usr/include/libprom/prom.h +usr/include/libprom/prom_*.h +usr/lib/*/libprom.so diff --git a/debian/libprom1.install b/debian/libprom1.install new file mode 100644 index 0000000..8ebe11d --- /dev/null +++ b/debian/libprom1.install @@ -0,0 +1 @@ +usr/lib/*/libprom.so.* diff --git a/debian/libprom1.symbols b/debian/libprom1.symbols new file mode 100644 index 0000000..a5c7b22 --- /dev/null +++ b/debian/libprom1.symbols @@ -0,0 +1,118 @@ +libprom.so.1 libprom1 #MINVER# + PROM_COLLECTOR_REGISTRY@Base 0.1.2 + pcr_bridge@Base 0.1.2 + pcr_check_name@Base 0.1.2 + pcr_default_init@Base 0.1.2 + pcr_destroy@Base 0.1.2 + pcr_enable_custom_process_metrics@Base 0.1.2 + pcr_enable_process_metrics@Base 0.1.2 + pcr_enable_scrape_metrics@Base 0.1.2 + pcr_get@Base 0.1.2 + pcr_init@Base 0.1.2 + pcr_must_register_metric@Base 0.1.2 + pcr_new@Base 0.1.2 + pcr_register_collector@Base 0.1.2 + pcr_register_metric@Base 0.1.2 + pcr_validate_metric_name@Base 0.1.2 + phb_count@Base 0.1.2 + phb_destroy@Base 0.1.2 + phb_exponential@Base 0.1.2 + phb_linear@Base 0.1.2 + phb_new@Base 0.1.2 + pll_append@Base 0.1.2 + pll_compare@Base 0.1.2 + pll_destroy@Base 0.1.2 + pll_first@Base 0.1.2 + pll_last@Base 0.1.2 + pll_new@Base 0.1.2 + pll_no_op_free@Base 0.1.2 + pll_pop@Base 0.1.2 + pll_purge@Base 0.1.2 + pll_push@Base 0.1.2 + pll_remove@Base 0.1.2 + pll_set_compare_fn@Base 0.1.2 + pll_set_free_fn@Base 0.1.2 + pll_size@Base 0.1.2 + pmf_clear@Base 0.1.2 + pmf_destroy@Base 0.1.2 + pmf_dump@Base 0.1.2 + pmf_load_help@Base 0.1.2 + pmf_load_l_value@Base 0.1.2 + pmf_load_metric@Base 0.1.2 + pmf_load_metrics@Base 0.1.2 + pmf_load_sample@Base 0.1.2 + pmf_load_type@Base 0.1.2 + pmf_new@Base 0.1.2 + pms_add@Base 0.1.2 + pms_destroy@Base 0.1.2 + pms_destroy_generic@Base 0.1.2 + pms_free_generic@Base 0.1.2 + pms_from_labels@Base 0.1.2 + pms_histogram_destroy@Base 0.1.2 + pms_histogram_destroy_generic@Base 0.1.2 + pms_histogram_free_generic@Base 0.1.2 + pms_histogram_from_labels@Base 0.1.2 + pms_histogram_new@Base 0.1.2 + pms_histogram_observe@Base 0.1.2 + pms_new@Base 0.1.2 + pms_set@Base 0.1.2 + pms_sub@Base 0.1.2 + ppc_fds_new@Base 0.1.2 + ppc_fds_update@Base 0.1.2 + ppc_limits_new@Base 0.1.2 + ppc_limits_update@Base 0.1.2 + ppc_new@Base 0.1.2 + ppc_stats_new@Base 0.1.2 + ppc_stats_update@Base 0.1.2 + prom_collector_add_metric@Base 0.1.2 + prom_collector_data_get@Base 0.1.2 + prom_collector_data_set@Base 0.1.2 + prom_collector_destroy@Base 0.1.2 + prom_collector_destroy_generic@Base 0.1.2 + prom_collector_free_generic@Base 0.1.2 + prom_collector_metrics_get@Base 0.1.2 + prom_collector_new@Base 0.1.2 + prom_collector_set_collect_fn@Base 0.1.2 + prom_counter_add@Base 0.1.2 + prom_counter_destroy@Base 0.1.2 + prom_counter_inc@Base 0.1.2 + prom_counter_new@Base 0.1.2 + prom_counter_reset@Base 0.1.2 + prom_gauge_add@Base 0.1.2 + prom_gauge_dec@Base 0.1.2 + prom_gauge_destroy@Base 0.1.2 + prom_gauge_inc@Base 0.1.2 + prom_gauge_new@Base 0.1.2 + prom_gauge_set@Base 0.1.2 + prom_gauge_sub@Base 0.1.2 + prom_histogram_default_buckets@Base 0.1.2 + prom_histogram_destroy@Base 0.1.2 + prom_histogram_new@Base 0.1.2 + prom_histogram_observe@Base 0.1.2 + prom_map_delete@Base 0.1.2 + prom_map_destroy@Base 0.1.2 + prom_map_ensure_space@Base 0.1.2 + prom_map_get@Base 0.1.2 + prom_map_get_index@Base 0.1.2 + prom_map_new@Base 0.1.2 + prom_map_node_compare@Base 0.1.2 + prom_map_node_destroy@Base 0.1.2 + prom_map_node_free@Base 0.1.2 + prom_map_node_new@Base 0.1.2 + prom_map_set@Base 0.1.2 + prom_map_set_free_value_fn@Base 0.1.2 + prom_map_size@Base 0.1.2 + prom_metric_destroy@Base 0.1.2 + prom_metric_destroy_generic@Base 0.1.2 + prom_metric_free_generic@Base 0.1.2 + prom_metric_new@Base 0.1.2 + prom_metric_type_map@Base 0.1.2 + psb_add_char@Base 0.1.2 + psb_add_str@Base 0.1.2 + psb_clear@Base 0.1.2 + psb_destroy@Base 0.1.2 + psb_dump@Base 0.1.2 + psb_len@Base 0.1.2 + psb_new@Base 0.1.2 + psb_str@Base 0.1.2 + psb_truncate@Base 0.1.2 diff --git a/debian/libpromhttp-dev.install b/debian/libpromhttp-dev.install new file mode 100644 index 0000000..75254aa --- /dev/null +++ b/debian/libpromhttp-dev.install @@ -0,0 +1,2 @@ +usr/include/libprom/promhttp.h +usr/lib/*/libpromhttp.so diff --git a/debian/libpromhttp1.install b/debian/libpromhttp1.install new file mode 100644 index 0000000..5d53d2d --- /dev/null +++ b/debian/libpromhttp1.install @@ -0,0 +1 @@ +usr/lib/*/libpromhttp.so.* diff --git a/debian/libpromhttp1.symbols b/debian/libpromhttp1.symbols new file mode 100644 index 0000000..c6364e1 --- /dev/null +++ b/debian/libpromhttp1.symbols @@ -0,0 +1,6 @@ +libpromhttp.so.1 libpromhttp1 #MINVER# + PROM_ACTIVE_REGISTRY@Base 0.1.2 + promhttp_handler@Base 0.1.2 + promhttp_set_active_collector_registry@Base 0.1.2 + promhttp_start_daemon@Base 0.1.2 + promhttp_stop_daemon@Base 0.1.2 diff --git a/debian/patches/0001-prom-missing-include-for-sprintf.patch b/debian/patches/0001-prom-missing-include-for-sprintf.patch new file mode 100644 index 0000000..38b906a --- /dev/null +++ b/debian/patches/0001-prom-missing-include-for-sprintf.patch @@ -0,0 +1,21 @@ +From: Victor Seva <vseva@debian.org> +Date: Thu, 30 Jan 2025 20:00:19 +0100 +Subject: prom: missing include for 'sprintf' +Forwarded: https://github.com/jelmd/libprom/pull/2 + +--- + prom/src/prom_histogram_buckets.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/prom/src/prom_histogram_buckets.c b/prom/src/prom_histogram_buckets.c +index b44b04d..2616713 100644 +--- a/prom/src/prom_histogram_buckets.c ++++ b/prom/src/prom_histogram_buckets.c +@@ -17,6 +17,7 @@ + + #include <stdarg.h> + #include <stdlib.h> ++#include <stdio.h> + + // Public + #include "prom_alloc.h" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..55b3e13 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +0001-prom-missing-include-for-sprintf.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7802a9e --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ --buildsystem=cmake + +override_dh_auto_configure: + mkdir -p prom/build promhttp/build + dh_auto_configure -Bprom/build -Dprom + dh_auto_configure -Bpromhttp/build -Dpromhttp + +override_dh_auto_build: + dh_auto_build -Bprom/build -Dprom + dh_auto_build -Bpromhttp/build -Dpromhttp + +override_dh_auto_install: + dh_auto_install -Bprom/build -Dprom + dh_auto_install -Bpromhttp/build -Dpromhttp + +override_dh_auto_test: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..09963b4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +# check: uscan --report +# update: gbp import-orig --uscan +https://github.com/jelmd/libprom/tags (?:.*?/)?v(\d[\d.]*)\.tar\.gz |
