From eca65551b338e659f85cdcf9277b7969da351dfb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 1 Jun 2020 10:22:18 -0600 Subject: [PATCH] alertmanager: drop package This is now in upstream Alpine --- sr.ht/alertmanager/APKBUILD | 60 --------------------- sr.ht/alertmanager/alertmanager.confd | 6 --- sr.ht/alertmanager/alertmanager.initd | 18 ------- sr.ht/alertmanager/alertmanager.pre-install | 4 -- 4 files changed, 88 deletions(-) delete mode 100644 sr.ht/alertmanager/APKBUILD delete mode 100644 sr.ht/alertmanager/alertmanager.confd delete mode 100644 sr.ht/alertmanager/alertmanager.initd delete mode 100644 sr.ht/alertmanager/alertmanager.pre-install diff --git a/sr.ht/alertmanager/APKBUILD b/sr.ht/alertmanager/APKBUILD deleted file mode 100644 index cb58d90..0000000 --- a/sr.ht/alertmanager/APKBUILD +++ /dev/null @@ -1,60 +0,0 @@ -# Maintainer: Drew DeVault -pkgname=alertmanager -pkgver=0.20.0 -pkgrel=0 -pkgdesc="Prometheus Alertmanager" -url="https://github.com/prometheus/alertmanager" -arch="all" -license="Apache-2.0" -install="$pkgname.pre-install" -makedepends="go bzr" -source=" - $pkgname-$pkgver.tar.gz::https://github.com/prometheus/alertmanager/archive/v$pkgver.tar.gz - alertmanager.confd - alertmanager.initd -" -subpackages="$pkgname-openrc" -builddir="$srcdir/$pkgname-$pkgver" -options="!check" # Requires us to use their weird build system - -prepare() { - default_prepare - go mod vendor -} - -build() { - go build \ - -trimpath \ - -mod=vendor \ - -ldflags "-extldflags $LDFLAGS" \ - -tags netgo \ - ./cmd/alertmanager - go build \ - -trimpath \ - -mod=vendor \ - -ldflags "-extldflags $LDFLAGS" \ - -tags netgo \ - ./cmd/amtool -} - -check() { - go test ./... -} - -package() { - install -Dm755 alertmanager "$pkgdir"/usr/bin/alertmanager - install -Dm755 amtool "$pkgdir"/usr/bin/amtool - - install -Dm755 "$srcdir"/alertmanager.initd \ - "$pkgdir"/etc/init.d/alertmanager - install -Dm644 "$srcdir"/alertmanager.confd \ - "$pkgdir"/etc/conf.d/alertmanager - install -dm644 "$pkgdir"/var/lib/alertmanager/data - - install -Dm644 examples/ha/alertmanager.yml \ - "$pkgdir"/etc/alertmanager/alertmanager.yml -} - -sha512sums="4bb9353e6ce9b149c5f22a2c305829112dfdf87f9b74e6075a45be0e07fe0f17e869ef9be4bb5e9c53d215dd1f534b1b5a707dd981efce8c5bcae4c1d6ce18bb alertmanager-0.20.0.tar.gz -58420cf10ed51ec389d21ffdd5b4a0e588f0dc78b1069e32d0db1e0215f64c1c980d8f539ae902839f2f9342090b50ce1db756839f3676ee18b77548ce8f99c8 alertmanager.confd -def36c9933e91a38d863c06679efd840952ba003a839afe5b5c6423fa6ee8f229755f758c5363564b433756af34509fef282b81dea2532500f1287c47c426787 alertmanager.initd" diff --git a/sr.ht/alertmanager/alertmanager.confd b/sr.ht/alertmanager/alertmanager.confd deleted file mode 100644 index e2304e8..0000000 --- a/sr.ht/alertmanager/alertmanager.confd +++ /dev/null @@ -1,6 +0,0 @@ -alertmanager_args= -alertmanager_config_file=/etc/alertmanager/alertmanager.yml -alertmanager_storage_path=/var/lib/alertmanager/data - -output_log=/var/log/alertmanager.log -error_log=/var/log/alertmanager.log diff --git a/sr.ht/alertmanager/alertmanager.initd b/sr.ht/alertmanager/alertmanager.initd deleted file mode 100644 index 3359279..0000000 --- a/sr.ht/alertmanager/alertmanager.initd +++ /dev/null @@ -1,18 +0,0 @@ -#!/sbin/openrc-run -name="alertmanager" -description="alert manager for the prometheus monitoring system" -supervisor=supervise-daemon -command=/usr/bin/alertmanager -command_args="--config.file=$alertmanager_config_file \ - --storage.path=$alertmanager_storage_path \ - $alertmanager_args" -command_user="prometheus:prometheus" -pidfile="/run/${RC_SVCNAME}.pid" - -start_pre() { - [ -n "$output_log" ] && checkpath -f "$output_log" \ - -m 644 -o prometheus:prometheus - [ -n "$error_log" ] && checkpath -f "$error_log" \ - -m 644 -o prometheus:prometheus - checkpath -d "$alertmanager_storage_path" -m 755 -o prometheus:prometheus -} diff --git a/sr.ht/alertmanager/alertmanager.pre-install b/sr.ht/alertmanager/alertmanager.pre-install deleted file mode 100644 index 379f50a..0000000 --- a/sr.ht/alertmanager/alertmanager.pre-install +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -grep '^prometheus' /etc/group >/dev/null || addgroup -S prometheus 2>/dev/null -grep '^prometheus' /etc/passwd >/dev/null || adduser -SDh/var/lib/prometheus \ - -s/sbin/nologin -Gprometheus -gprometheus prometheus prometheus 2>/dev/null -- 2.45.2