summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-01-05 21:23:07 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-01-05 21:23:07 +0100
commit7226ba4288b14d7d9ce1c165449d81ae0efa3f0d (patch)
tree9bece0d85aeed0ef799d4b3cfd4fc30b859c035d
parentupgrade prom-server package (diff)
add package for alertmanager-gotify-bridge
-rw-r--r--prom-alertmanager-gotify-bridge/Makefile19
-rw-r--r--prom-alertmanager-gotify-bridge/debian/changelog5
-rw-r--r--prom-alertmanager-gotify-bridge/debian/compat1
-rw-r--r--prom-alertmanager-gotify-bridge/debian/control11
-rw-r--r--prom-alertmanager-gotify-bridge/debian/install1
-rwxr-xr-xprom-alertmanager-gotify-bridge/debian/rules16
-rw-r--r--prom-alertmanager-gotify-bridge/debian/source/format1
-rw-r--r--prom-alertmanager-gotify-bridge/sha256sums.txt2
8 files changed, 56 insertions, 0 deletions
diff --git a/prom-alertmanager-gotify-bridge/Makefile b/prom-alertmanager-gotify-bridge/Makefile
new file mode 100644
index 0000000..c9fc68f
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+GITHUB_BASEURL := "https://github.com/DRuggeri/alertmanager_gotify_bridge/releases/download/"
+
+.PHONY: clean
+
+all: i386/alertmanager_gotify_bridge amd64/alertmanager_gotify_bridge
+
+%/alertmanager_gotify_bridge: alertmanager_gotify_bridge-v$(VERSION)-linux-%
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ install -m 0755 "$<" "$@"
+
+alertmanager_gotify_bridge-v$(VERSION)-linux-%:
+ 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 alertmanager_gotify_bridge-v$(VERSION)-linux-*
diff --git a/prom-alertmanager-gotify-bridge/debian/changelog b/prom-alertmanager-gotify-bridge/debian/changelog
new file mode 100644
index 0000000..813e0e1
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/debian/changelog
@@ -0,0 +1,5 @@
+prom-alertmanager-gotify-bridge (1.0.2-1) UNRELEASED; urgency=medium
+
+ * Initial release.
+
+ -- Christian Pointner <equinox@spreadspace.org> Wed, 22 Jun 2021 22:34:37 +0200
diff --git a/prom-alertmanager-gotify-bridge/debian/compat b/prom-alertmanager-gotify-bridge/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/prom-alertmanager-gotify-bridge/debian/control b/prom-alertmanager-gotify-bridge/debian/control
new file mode 100644
index 0000000..597739d
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/debian/control
@@ -0,0 +1,11 @@
+Source: prom-alertmanager-gotify-bridge
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Section: utils
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9), wget, ca-certificates
+
+Package: prom-alertmanager-gotify-bridge
+Architecture: amd64 i386
+Depends: ${misc:Depends}
+Description: prometheus alertmanager gotify bridge (binaries only)
diff --git a/prom-alertmanager-gotify-bridge/debian/install b/prom-alertmanager-gotify-bridge/debian/install
new file mode 100644
index 0000000..b2a41da
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/debian/install
@@ -0,0 +1 @@
+usr/bin/alertmanager-gotify-bridge
diff --git a/prom-alertmanager-gotify-bridge/debian/rules b/prom-alertmanager-gotify-bridge/debian/rules
new file mode 100755
index 0000000..18a404e
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/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)/alertmanager_gotify_bridge
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/bin/
+ install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/alertmanager_gotify_bridge $$(pwd)/debian/tmp/usr/bin/alertmanager-gotify-bridge
+
+override_dh_auto_clean:
+ make VERSION=$(DEB_VERSION_UPSTREAM) clean
diff --git a/prom-alertmanager-gotify-bridge/debian/source/format b/prom-alertmanager-gotify-bridge/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/prom-alertmanager-gotify-bridge/sha256sums.txt b/prom-alertmanager-gotify-bridge/sha256sums.txt
new file mode 100644
index 0000000..1b8e87d
--- /dev/null
+++ b/prom-alertmanager-gotify-bridge/sha256sums.txt
@@ -0,0 +1,2 @@
+06690492b47700364507ffc844e0ba68a9e5fdc77d95beb18038712be83b0c69 alertmanager_gotify_bridge-v1.0.2-linux-i386
+f1e1b9d0d022137335c31f61fbe0e7fe51146e6a3e385cf6fb6db023729dde76 alertmanager_gotify_bridge-v1.0.2-linux-amd64