From ee31310cd284078b182855ccb2c6f893ab673a62 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 20 Jul 2022 23:41:31 +0200 Subject: add package for sachet --- sachet/Makefile | 19 +++++++++++++++++++ sachet/debian/changelog | 5 +++++ sachet/debian/compat | 1 + sachet/debian/control | 11 +++++++++++ sachet/debian/install | 1 + sachet/debian/rules | 16 ++++++++++++++++ sachet/debian/source/format | 1 + sachet/sha256sums.txt | 1 + 8 files changed, 55 insertions(+) create mode 100644 sachet/Makefile create mode 100644 sachet/debian/changelog create mode 100644 sachet/debian/compat create mode 100644 sachet/debian/control create mode 100644 sachet/debian/install create mode 100755 sachet/debian/rules create mode 100644 sachet/debian/source/format create mode 100644 sachet/sha256sums.txt 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 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 +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 -- cgit v1.2.3