1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
6 pkgdesc="Service which handles alerts sent by client applications such as the Prometheus server"
7 url="https://github.com/prometheus/alertmanager"
12 backup=('etc/alertmanager/alertmanager.yml' 'etc/conf.d/alertmanager')
13 source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/alertmanager/archive/v${pkgver}.tar.gz
17 sha512sums=('5cd8d2ba24781b37291e61f911d75830f8abaef2f110ee98ed2b979f895ab9b96e8e4232bda0759d4689c2f42bd4a47ab8ecc3396659d7784a4ffc23ed0b68f0'
18 'b16f14f0a1ff6462f263cfd10e62509adc2dbebdd10fa31d240892619fbef17dc593a33f0fbd0f32adb43d565f676fdc90bbd69a3a447d2a46deeef5f9916ae4'
19 '469f321f40b0dd6e1cc6d0791032c476449bb2ab2364d57b06d0e0309d09710be8751ded64d84e29dd6e28e96b71ef69e2bee6c71282500a9074a9d7ada8bdf0'
20 'dcb3d8a29e705c39b13cc8b876975ff1af88e86ba6d76c524aeba188acd2f97fea0278632bee7fd5f66cc0fe780aa9f4a6a98696025ca84c767eb5eae831de2f')
29 -ldflags "-extldflags ${LDFLAGS} \
30 -X github.com/prometheus/common/version.Version=$pkgver \
31 -X github.com/prometheus/common/version.Revision=$pkgver \
32 -X github.com/prometheus/common/version.Branch=tarball \
33 -X github.com/prometheus/common/version.BuildUser=someone@builder \
34 -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
42 -ldflags "-extldflags ${LDFLAGS} \
43 -X github.com/prometheus/common/version.Version=$pkgver \
44 -X github.com/prometheus/common/version.Revision=$pkgver \
45 -X github.com/prometheus/common/version.Branch=tarball \
46 -X github.com/prometheus/common/version.BuildUser=someone@builder \
47 -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
53 install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
54 install -Dm755 amtool "$pkgdir/usr/bin/amtool"
56 install -Dm644 examples/ha/${pkgname}.yml "${pkgdir}/etc/${pkgname}/${pkgname}.yml"
57 install -d -m755 "${pkgdir}/etc/${pkgname}/template/"
59 install -d -m750 -o 211 -g 211 "${pkgdir}/var/lib/${pkgname}"
61 install -Dm0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
62 install -Dm644 "$srcdir/alertmanager.sysusers" "$pkgdir/usr/lib/sysusers.d/alertmanager.conf"
63 install -Dm644 "$srcdir/alertmanager.conf" "$pkgdir/etc/conf.d/alertmanager"