summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2023-09-26 16:26:23 -0500
committerWilliam Hubbs <williamh@gentoo.org>2023-09-26 16:27:14 -0500
commit1cb911a6280cc115c08303f8f977dcc5a02ec1cd (patch)
treee4bb6a018cf8bb99f33339ea5a49c04d6c83d5a7 /app-metrics
parentapp-metrics/prometheus: add 2.47.0 (diff)
downloadgentoo-1cb911a6280cc115c08303f8f977dcc5a02ec1cd.tar.gz
gentoo-1cb911a6280cc115c08303f8f977dcc5a02ec1cd.tar.bz2
gentoo-1cb911a6280cc115c08303f8f977dcc5a02ec1cd.zip
app-metrics/alertmanager: add 0.26.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics')
-rw-r--r--app-metrics/alertmanager/Manifest2
-rw-r--r--app-metrics/alertmanager/alertmanager-0.26.0.ebuild46
2 files changed, 48 insertions, 0 deletions
diff --git a/app-metrics/alertmanager/Manifest b/app-metrics/alertmanager/Manifest
index f0e7a8e44cc1..142195778feb 100644
--- a/app-metrics/alertmanager/Manifest
+++ b/app-metrics/alertmanager/Manifest
@@ -1,2 +1,4 @@
DIST alertmanager-0.24.0-deps.tar.xz 194175652 BLAKE2B 01095b5a4f6edee4c30f97f2ed3f949149885118532d421da8ac87fdee58cc65278ad9cebd07defb67006ff4acc1043505017e8fcbdf1d989d054584aeb21c14 SHA512 8170c3f27691b5a59f2e9a1d7f4cfb323cd0137eb4a604f224012e9a0065dca956e2d9ee9e138cc5061b561bcdc2d8329dbbb0beafa18274eaed81cbdd73fe97
DIST alertmanager-0.24.0.tar.gz 2135257 BLAKE2B 5726595a14da5e228cd5704dc2aa3518a86d1e07ff6ce886ddcf3b8621d3112d10899c6fa6df3004b2a46017d07f28587ac815e8f9ef03aff3e8bfcee793e96f SHA512 97147f15c8879eacc2744a11a1db0edd04f532650b3e8f397e8ab6f7f4868203f212d1c33f596aa52876e190db84247a60b39b25a72fbceabcc5b3efae0eb920
+DIST alertmanager-0.26.0-deps.tar.xz 93946412 BLAKE2B 65d0b53bdd011c12f5a78daa046e8d8e27a43f66027eaa764e6a758208ffad8c1cac890fc2a5fe8b972186d313f8f7fd1028ea0528d2e1719e0bdafaf5467dc7 SHA512 f85567c2d2c698dcf58a0669e5b501fecddc8eb4d2248d9ddc0dd3a947c0bcdeef230592f3700ee0c181823338bae2463dc064c8843f414609ba2952155b33f7
+DIST alertmanager-0.26.0.tar.gz 2176877 BLAKE2B bb22c57c39dcb00f08f4e24d09f07fce3f59e1ce31cde8b439bb44fd7c6349ab3ebf5371db9bec97574836ed941ba57f5c69d6f5857062a365fda01618d1c594 SHA512 b5568f0cebe487b5c81b56febad30bbe84918ed0e3e8be2ecd7820d13d7c5373b17e00238a9817072c59040a5618307811280ac00ef6efa3e3439f9f3378f464
diff --git a/app-metrics/alertmanager/alertmanager-0.26.0.ebuild b/app-metrics/alertmanager/alertmanager-0.26.0.ebuild
new file mode 100644
index 000000000000..c32be8c1886d
--- /dev/null
+++ b/app-metrics/alertmanager/alertmanager-0.26.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module systemd
+GIT_COMMIT=d7b4f0c7
+MY_PV="${PV/_rc/-rc.}"
+
+DESCRIPTION="Alertmanager for alerts sent by client applications such as Prometheus"
+HOMEPAGE="https://github.com/prometheus/alertmanager"
+SRC_URI="https://github.com/prometheus/alertmanager/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT+=" test"
+
+BDEPEND="dev-util/promu"
+
+DEPEND="
+ acct-group/alertmanager
+ acct-user/alertmanager"
+ RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" .promu.yml || die
+}
+
+src_compile() {
+ promu build -v --prefix bin || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc {README,CHANGELOG}.md
+ insinto /etc/alertmanager/
+ newins doc/examples/simple.yml config.yml
+ keepdir /var/lib/alertmanager /var/log/alertmanager
+ systemd_dounit "${FILESDIR}"/alertmanager.service
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ fowners ${PN}:${PN} /etc/alertmanager /var/lib/alertmanager /var/log/alertmanager
+}