summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-06 16:50:48 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-06 16:50:48 +0100
commit3e4942f5d23a3329558f8c1b9dd501f89063d327 (patch)
treefbffcec58e99a15b527439cbed6b581aa8706491
parentadd package for snmp exporter (diff)
add package for prometheus smokeping prober
-rw-r--r--prom-exporter-smokeping/Makefile19
-rw-r--r--prom-exporter-smokeping/debian/changelog5
-rw-r--r--prom-exporter-smokeping/debian/compat1
-rw-r--r--prom-exporter-smokeping/debian/control12
-rw-r--r--prom-exporter-smokeping/debian/install1
-rwxr-xr-xprom-exporter-smokeping/debian/rules16
-rw-r--r--prom-exporter-smokeping/debian/source/format1
-rw-r--r--prom-exporter-smokeping/sha256sums.txt2
8 files changed, 57 insertions, 0 deletions
diff --git a/prom-exporter-smokeping/Makefile b/prom-exporter-smokeping/Makefile
new file mode 100644
index 0000000..84d8887
--- /dev/null
+++ b/prom-exporter-smokeping/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/SuperQ/smokeping_prober/releases/download"
+
+.PHONY: clean
+
+all: i386/smokeping_prober amd64/smokeping_prober
+
+%/smokeping_prober: smokeping_prober-$(VERSION).linux-%.tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
+
+smokeping_prober-$(VERSION).linux-%.tar.gz:
+ wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/v$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf i386
+ rm -rf amd64
+ rm -f smokeping_prober-$(VERSION).linux-*.tar.gz
diff --git a/prom-exporter-smokeping/debian/changelog b/prom-exporter-smokeping/debian/changelog
new file mode 100644
index 0000000..9f2c0d6
--- /dev/null
+++ b/prom-exporter-smokeping/debian/changelog
@@ -0,0 +1,5 @@
+prom-exporter-smokeping (0.6.1-1) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Christian Pointner <equinox@spreadspace.org> Sun, 06 Nov 2022 16:42:21 +0100
diff --git a/prom-exporter-smokeping/debian/compat b/prom-exporter-smokeping/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/prom-exporter-smokeping/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/prom-exporter-smokeping/debian/control b/prom-exporter-smokeping/debian/control
new file mode 100644
index 0000000..06b9c6f
--- /dev/null
+++ b/prom-exporter-smokeping/debian/control
@@ -0,0 +1,12 @@
+Source: prom-exporter-smokeping
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Section: utils
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9), wget, ca-certificates
+
+Package: prom-exporter-smokeping
+Architecture: amd64 i386
+Depends: ${misc:Depends}
+Conflicts: prometheus-smokeping-prober
+Description: prometheus smokeping-prober (binary only)
diff --git a/prom-exporter-smokeping/debian/install b/prom-exporter-smokeping/debian/install
new file mode 100644
index 0000000..26079ad
--- /dev/null
+++ b/prom-exporter-smokeping/debian/install
@@ -0,0 +1 @@
+usr/bin/prometheus-smokeping-prober
diff --git a/prom-exporter-smokeping/debian/rules b/prom-exporter-smokeping/debian/rules
new file mode 100755
index 0000000..0ba3d90
--- /dev/null
+++ b/prom-exporter-smokeping/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+include /usr/share/dpkg/pkg-info.mk
+%:
+ dh $@
+
+override_dh_auto_configure:
+
+override_dh_auto_build:
+ make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/smokeping_prober
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/bin/
+ install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/smokeping_prober $$(pwd)/debian/tmp/usr/bin/prometheus-smokeping-prober
+
+override_dh_auto_clean:
+ make VERSION=$(DEB_VERSION_UPSTREAM) clean
diff --git a/prom-exporter-smokeping/debian/source/format b/prom-exporter-smokeping/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/prom-exporter-smokeping/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/prom-exporter-smokeping/sha256sums.txt b/prom-exporter-smokeping/sha256sums.txt
new file mode 100644
index 0000000..254fbf6
--- /dev/null
+++ b/prom-exporter-smokeping/sha256sums.txt
@@ -0,0 +1,2 @@
+c2b7b195c4884f4a638942287929435979d77b964b3ceb0806540f2522d3578d smokeping_prober-0.6.1.linux-i386.tar.gz
+589fe27b3484730205c489f294816a067381a14a8c3d025720d4bda6a9066387 smokeping_prober-0.6.1.linux-amd64.tar.gz