[arch-commits] Commit in alertmanager/trunk (3 files)

Jelle van der Waa jelle at gemini.archlinux.org
Thu Dec 9 14:28:03 UTC 2021


    Date: Thursday, December 9, 2021 @ 14:28:03
  Author: jelle
Revision: 431312

Add .conf env file support

Added:
  alertmanager/trunk/alertmanager.conf
Modified:
  alertmanager/trunk/PKGBUILD
  alertmanager/trunk/alertmanager.service

----------------------+
 PKGBUILD             |   15 ++++++++++-----
 alertmanager.conf    |    1 +
 alertmanager.service |    3 ++-
 3 files changed, 13 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-09 13:20:14 UTC (rev 431311)
+++ PKGBUILD	2021-12-09 14:28:03 UTC (rev 431312)
@@ -2,7 +2,7 @@
 
 pkgname=alertmanager
 pkgver=0.23.0
-pkgrel=2
+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)
@@ -9,11 +9,15 @@
 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)
+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'
-            '89511da0ec28c0503ba56b52896da7dbdeccb8c06eddd9dd89fe7a82e086e76ebff3b03fdd29eb8a2cc9192cc23823b48a06b75d897d31becc3a980abda7e172'
-            '469f321f40b0dd6e1cc6d0791032c476449bb2ab2364d57b06d0e0309d09710be8751ded64d84e29dd6e28e96b71ef69e2bee6c71282500a9074a9d7ada8bdf0')
+            'b16f14f0a1ff6462f263cfd10e62509adc2dbebdd10fa31d240892619fbef17dc593a33f0fbd0f32adb43d565f676fdc90bbd69a3a447d2a46deeef5f9916ae4'
+            '469f321f40b0dd6e1cc6d0791032c476449bb2ab2364d57b06d0e0309d09710be8751ded64d84e29dd6e28e96b71ef69e2bee6c71282500a9074a9d7ada8bdf0'
+            'dcb3d8a29e705c39b13cc8b876975ff1af88e86ba6d76c524aeba188acd2f97fea0278632bee7fd5f66cc0fe780aa9f4a6a98696025ca84c767eb5eae831de2f')
 
 build() {
   cd $pkgname-$pkgver
@@ -56,4 +60,5 @@
 
   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"
 }

Added: alertmanager.conf
===================================================================
--- alertmanager.conf	                        (rev 0)
+++ alertmanager.conf	2021-12-09 14:28:03 UTC (rev 431312)
@@ -0,0 +1 @@
+ALERTMANAGER_ARGS=""

Modified: alertmanager.service
===================================================================
--- alertmanager.service	2021-12-09 13:20:14 UTC (rev 431311)
+++ alertmanager.service	2021-12-09 14:28:03 UTC (rev 431312)
@@ -6,7 +6,8 @@
 
 [Service]
 User=alertmanager
-ExecStart=/usr/bin/alertmanager --cluster.listen-address= --config.file=/etc/alertmanager/alertmanager.yml --storage.path=/var/lib/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



More information about the arch-commits mailing list