summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-07-20 23:41:31 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-07-20 23:41:31 +0200
commitee31310cd284078b182855ccb2c6f893ab673a62 (patch)
tree645d0d62328ad5010e5bf1bcea5b1a4b1f817125
parentbump package versions to newest release (diff)
add package for sachet
-rw-r--r--sachet/Makefile19
-rw-r--r--sachet/debian/changelog5
-rw-r--r--sachet/debian/compat1
-rw-r--r--sachet/debian/control11
-rw-r--r--sachet/debian/install1
-rwxr-xr-xsachet/debian/rules16
-rw-r--r--sachet/debian/source/format1
-rw-r--r--sachet/sha256sums.txt1
8 files changed, 55 insertions, 0 deletions
diff --git a/sachet/Makefile b/sachet/Makefile
new file mode 100644
index 0000000..a51c702
--- /dev/null
+++ b/sachet/Makefile
@@ -0,0 +1,19 @@
+VERSION := "invalid"
+#GITHUB_BASEURL := "https://github.com/messagebird/sachet/releases/download"
+GITHUB_BASEURL := "https://build.spreadspace.org/pub/sachet"
+
+.PHONY: clean
+
+all: amd64/sachet
+
+%/sachet: sachet-$(VERSION).linux-%.tar.gz
+ mkdir -p $(shell echo $@ | sed 's#/.*##')
+ tar -C $(shell echo $@ | sed 's#/.*##') -xzf "$<" --strip-components=1
+
+sachet-$(VERSION).linux-%.tar.gz:
+ wget -nc --progress=dot:mega "$(GITHUB_BASEURL)/$(VERSION)/$(shell echo $@ | sed s/i386/386/)" -O "$@"
+ sha256sum -c --ignore-missing sha256sums.txt
+
+clean:
+ rm -rf amd64
+ rm -f sachet-$(VERSION).linux-*.tar.gz
diff --git a/sachet/debian/changelog b/sachet/debian/changelog
new file mode 100644
index 0000000..46178eb
--- /dev/null
+++ b/sachet/debian/changelog
@@ -0,0 +1,5 @@
+sachet (0.3.1~smstools-1) unstable; urgency=medium
+
+ * Initial release.
+
+ -- Christian Pointner <equinox@spreadspace.org> Wed, 20 Jul 2022 23:35:58 +0200
diff --git a/sachet/debian/compat b/sachet/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/sachet/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/sachet/debian/control b/sachet/debian/control
new file mode 100644
index 0000000..d954013
--- /dev/null
+++ b/sachet/debian/control
@@ -0,0 +1,11 @@
+Source: sachet
+Maintainer: Christian Pointner <equinox@spreadspace.org>
+Section: utils
+Priority: optional
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9), wget, ca-certificates
+
+Package: sachet
+Architecture: amd64
+Depends: ${misc:Depends}
+Description: SMS alerting tool for the Prometheus Alertmanager (binary only)
diff --git a/sachet/debian/install b/sachet/debian/install
new file mode 100644
index 0000000..92a5ea5
--- /dev/null
+++ b/sachet/debian/install
@@ -0,0 +1 @@
+usr/bin/sachet
diff --git a/sachet/debian/rules b/sachet/debian/rules
new file mode 100755
index 0000000..8250f39
--- /dev/null
+++ b/sachet/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)/sachet
+
+override_dh_auto_install:
+ install -d $$(pwd)/debian/tmp/usr/bin/
+ install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/sachet $$(pwd)/debian/tmp/usr/bin/sachet
+
+override_dh_auto_clean:
+ make VERSION=$(DEB_VERSION_UPSTREAM) clean
diff --git a/sachet/debian/source/format b/sachet/debian/source/format
new file mode 100644
index 0000000..d3827e7
--- /dev/null
+++ b/sachet/debian/source/format
@@ -0,0 +1 @@
+1.0
diff --git a/sachet/sha256sums.txt b/sachet/sha256sums.txt
new file mode 100644
index 0000000..6881392
--- /dev/null
+++ b/sachet/sha256sums.txt
@@ -0,0 +1 @@
+fe56d9c6ff16d214d668a69381b99ffe6a51fd16e429b285f3cb323adf45aba2 sachet-0.3.1~smstools.linux-amd64.tar.gz