[arch-commits] Commit in alertmanager/repos/extra-x86_64 (7 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Thu Dec 9 14:28:11 UTC 2021
Date: Thursday, December 9, 2021 @ 14:28:10
Author: jelle
Revision: 431313
archrelease: copy trunk to extra-x86_64
Added:
alertmanager/repos/extra-x86_64/PKGBUILD
(from rev 431312, alertmanager/trunk/PKGBUILD)
alertmanager/repos/extra-x86_64/alertmanager.conf
(from rev 431312, alertmanager/trunk/alertmanager.conf)
alertmanager/repos/extra-x86_64/alertmanager.service
(from rev 431312, alertmanager/trunk/alertmanager.service)
alertmanager/repos/extra-x86_64/alertmanager.sysusers
(from rev 431312, alertmanager/trunk/alertmanager.sysusers)
Deleted:
alertmanager/repos/extra-x86_64/PKGBUILD
alertmanager/repos/extra-x86_64/alertmanager.service
alertmanager/repos/extra-x86_64/alertmanager.sysusers
-----------------------+
PKGBUILD | 123 ++++++++++++++++++++++++------------------------
alertmanager.conf | 1
alertmanager.service | 57 +++++++++++-----------
alertmanager.sysusers | 2
4 files changed, 95 insertions(+), 88 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-09 14:28:03 UTC (rev 431312)
+++ PKGBUILD 2021-12-09 14:28:10 UTC (rev 431313)
@@ -1,59 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at archlinux.org>
-
-pkgname=alertmanager
-pkgver=0.23.0
-pkgrel=2
-pkgdesc="Service which handles alerts sent by client applications such as the Prometheus server"
-url="https://github.com/prometheus/alertmanager"
-arch=(x86_64)
-depends=(glibc)
-license=('Apache')
-makedepends=(go git)
-backup=('etc/alertmanager/alertmanager.yml')
-source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/alertmanager/archive/v${pkgver}.tar.gz alertmanager.service alertmanager.sysusers)
-sha512sums=('5cd8d2ba24781b37291e61f911d75830f8abaef2f110ee98ed2b979f895ab9b96e8e4232bda0759d4689c2f42bd4a47ab8ecc3396659d7784a4ffc23ed0b68f0'
- '89511da0ec28c0503ba56b52896da7dbdeccb8c06eddd9dd89fe7a82e086e76ebff3b03fdd29eb8a2cc9192cc23823b48a06b75d897d31becc3a980abda7e172'
- '469f321f40b0dd6e1cc6d0791032c476449bb2ab2364d57b06d0e0309d09710be8751ded64d84e29dd6e28e96b71ef69e2bee6c71282500a9074a9d7ada8bdf0')
-
-build() {
- cd $pkgname-$pkgver
- go build \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-extldflags ${LDFLAGS} \
- -X github.com/prometheus/common/version.Version=$pkgver \
- -X github.com/prometheus/common/version.Revision=$pkgver \
- -X github.com/prometheus/common/version.Branch=tarball \
- -X github.com/prometheus/common/version.BuildUser=someone at builder \
- -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
- ./cmd/alertmanager
-
- go build \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-extldflags ${LDFLAGS} \
- -X github.com/prometheus/common/version.Version=$pkgver \
- -X github.com/prometheus/common/version.Revision=$pkgver \
- -X github.com/prometheus/common/version.Branch=tarball \
- -X github.com/prometheus/common/version.BuildUser=someone at builder \
- -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
- ./cmd/amtool
-}
-
-package() {
- cd $pkgname-$pkgver
- install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
- install -Dm755 amtool "$pkgdir/usr/bin/amtool"
-
- install -Dm644 examples/ha/${pkgname}.yml "${pkgdir}/etc/${pkgname}/${pkgname}.yml"
- install -d -m755 "${pkgdir}/etc/${pkgname}/template/"
-
- install -d -m750 -o 211 -g 211 "${pkgdir}/var/lib/${pkgname}"
-
- install -Dm0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
- install -Dm644 "$srcdir/alertmanager.sysusers" "$pkgdir/usr/lib/sysusers.d/alertmanager.conf"
-}
Copied: alertmanager/repos/extra-x86_64/PKGBUILD (from rev 431312, alertmanager/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-09 14:28:10 UTC (rev 431313)
@@ -0,0 +1,64 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+pkgname=alertmanager
+pkgver=0.23.0
+pkgrel=3
+pkgdesc="Service which handles alerts sent by client applications such as the Prometheus server"
+url="https://github.com/prometheus/alertmanager"
+arch=(x86_64)
+depends=(glibc)
+license=('Apache')
+makedepends=(go git)
+backup=('etc/alertmanager/alertmanager.yml' 'etc/conf.d/alertmanager')
+source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/alertmanager/archive/v${pkgver}.tar.gz
+ alertmanager.service
+ alertmanager.sysusers
+ alertmanager.conf)
+sha512sums=('5cd8d2ba24781b37291e61f911d75830f8abaef2f110ee98ed2b979f895ab9b96e8e4232bda0759d4689c2f42bd4a47ab8ecc3396659d7784a4ffc23ed0b68f0'
+ 'b16f14f0a1ff6462f263cfd10e62509adc2dbebdd10fa31d240892619fbef17dc593a33f0fbd0f32adb43d565f676fdc90bbd69a3a447d2a46deeef5f9916ae4'
+ '469f321f40b0dd6e1cc6d0791032c476449bb2ab2364d57b06d0e0309d09710be8751ded64d84e29dd6e28e96b71ef69e2bee6c71282500a9074a9d7ada8bdf0'
+ 'dcb3d8a29e705c39b13cc8b876975ff1af88e86ba6d76c524aeba188acd2f97fea0278632bee7fd5f66cc0fe780aa9f4a6a98696025ca84c767eb5eae831de2f')
+
+build() {
+ cd $pkgname-$pkgver
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-extldflags ${LDFLAGS} \
+ -X github.com/prometheus/common/version.Version=$pkgver \
+ -X github.com/prometheus/common/version.Revision=$pkgver \
+ -X github.com/prometheus/common/version.Branch=tarball \
+ -X github.com/prometheus/common/version.BuildUser=someone at builder \
+ -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
+ ./cmd/alertmanager
+
+ go build \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-extldflags ${LDFLAGS} \
+ -X github.com/prometheus/common/version.Version=$pkgver \
+ -X github.com/prometheus/common/version.Revision=$pkgver \
+ -X github.com/prometheus/common/version.Branch=tarball \
+ -X github.com/prometheus/common/version.BuildUser=someone at builder \
+ -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
+ ./cmd/amtool
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
+ install -Dm755 amtool "$pkgdir/usr/bin/amtool"
+
+ install -Dm644 examples/ha/${pkgname}.yml "${pkgdir}/etc/${pkgname}/${pkgname}.yml"
+ install -d -m755 "${pkgdir}/etc/${pkgname}/template/"
+
+ install -d -m750 -o 211 -g 211 "${pkgdir}/var/lib/${pkgname}"
+
+ install -Dm0644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
+ install -Dm644 "$srcdir/alertmanager.sysusers" "$pkgdir/usr/lib/sysusers.d/alertmanager.conf"
+ install -Dm644 "$srcdir/alertmanager.conf" "$pkgdir/etc/conf.d/alertmanager"
+}
Copied: alertmanager/repos/extra-x86_64/alertmanager.conf (from rev 431312, alertmanager/trunk/alertmanager.conf)
===================================================================
--- alertmanager.conf (rev 0)
+++ alertmanager.conf 2021-12-09 14:28:10 UTC (rev 431313)
@@ -0,0 +1 @@
+ALERTMANAGER_ARGS=""
Deleted: alertmanager.service
===================================================================
--- alertmanager.service 2021-12-09 14:28:03 UTC (rev 431312)
+++ alertmanager.service 2021-12-09 14:28:10 UTC (rev 431313)
@@ -1,28 +0,0 @@
-[Unit]
-Description=Alertmanager for prometheus
-Documentation=https://prometheus.io/docs/alerting/alertmanager/
-Requires=network-online.target
-After=network-online.target
-
-[Service]
-User=alertmanager
-ExecStart=/usr/bin/alertmanager --cluster.listen-address= --config.file=/etc/alertmanager/alertmanager.yml --storage.path=/var/lib/alertmanager/
-ExecReload=/bin/kill -HUP $MAINPID
-
-NoNewPrivileges=true
-ProtectHome=true
-ProtectSystem=full
-ProtectHostname=true
-ProtectControlGroups=true
-ProtectKernelModules=true
-ProtectKernelTunables=true
-LockPersonality=true
-PrivateTmp=true
-PrivateDevices=True
-RestrictRealtime=true
-CapabilityBoundingSet=
-SystemCallArchitectures=native
-MemoryDenyWriteExecute=true
-
-[Install]
-WantedBy=multi-user.target
Copied: alertmanager/repos/extra-x86_64/alertmanager.service (from rev 431312, alertmanager/trunk/alertmanager.service)
===================================================================
--- alertmanager.service (rev 0)
+++ alertmanager.service 2021-12-09 14:28:10 UTC (rev 431313)
@@ -0,0 +1,29 @@
+[Unit]
+Description=Alertmanager for prometheus
+Documentation=https://prometheus.io/docs/alerting/alertmanager/
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=alertmanager
+EnvironmentFile=-/etc/conf.d/alertmanager
+ExecStart=/usr/bin/alertmanager --cluster.listen-address= --config.file=/etc/alertmanager/alertmanager.yml --storage.path=/var/lib/alertmanager/ $ALERTMANAGER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=full
+ProtectHostname=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+LockPersonality=true
+PrivateTmp=true
+PrivateDevices=True
+RestrictRealtime=true
+CapabilityBoundingSet=
+SystemCallArchitectures=native
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target
Deleted: alertmanager.sysusers
===================================================================
--- alertmanager.sysusers 2021-12-09 14:28:03 UTC (rev 431312)
+++ alertmanager.sysusers 2021-12-09 14:28:10 UTC (rev 431313)
@@ -1 +0,0 @@
-u alertmanager 211 "alertmanager user"
Copied: alertmanager/repos/extra-x86_64/alertmanager.sysusers (from rev 431312, alertmanager/trunk/alertmanager.sysusers)
===================================================================
--- alertmanager.sysusers (rev 0)
+++ alertmanager.sysusers 2021-12-09 14:28:10 UTC (rev 431313)
@@ -0,0 +1 @@
+u alertmanager 211 "alertmanager user"
More information about the arch-commits
mailing list