[arch-commits] Commit in prometheus-memcached-exporter/trunk (2 files)

Jelle van der Waa jelle at archlinux.org
Sat Sep 12 22:17:27 UTC 2020


    Date: Saturday, September 12, 2020 @ 22:17:27
  Author: jelle
Revision: 395969

Add backup files and SupplementaryGroups=memcached

Add the memcached group so the systemd service can read a memcached group owned
socket.

Modified:
  prometheus-memcached-exporter/trunk/PKGBUILD
  prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.service

---------------------------------------+
 PKGBUILD                              |    7 ++++---
 prometheus-memcached-exporter.service |    1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-12 21:14:27 UTC (rev 395968)
+++ PKGBUILD	2020-09-12 22:17:27 UTC (rev 395969)
@@ -2,7 +2,7 @@
 
 pkgname=prometheus-memcached-exporter
 pkgver=0.7.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Exports metrics from memcached servers for consumption by Prometheus"
 arch=('x86_64')
 url="https://github.com/prometheus/memcached_exporter"
@@ -9,10 +9,11 @@
 license=('Apache')
 depends=(glibc memcached)
 makedepends=(go)
+backup=('etc/conf.d/prometheus-memcached-exporter')
 source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/memcached_exporter/archive/v${pkgver}.tar.gz prometheus-memcached-exporter.service
         prometheus-memcached-exporter.conf)
 sha512sums=('5df59a73142e12c86bdc2da49627128c49a22a8bd380d3e44c091cb54c6d0f78d51fd3f95b884bd0260537f87b68989bfd24838abac21805c1b56506ef1bea82'
-            '7af6ef9df784e97ecc08e77ee473b4b7860eb8a82c5af2a8cf1eec1850e71750e6d71bed1fa24744dc57c6b1dd6da31da1ec233056f29f9e58e64d5541af7280'
+            '13ae8e9cc8445cffab1e51f000fbe5ca0dd2a30532f8303957dc376c8891552e719681e49ffd8a83c4cd01aca897031770c9d96ed92276ff85c2e32c4fa999ee'
             'bc92af08207bee78a48cc764f038d6f5175b0051873f1238d90531f81d9b403085ec7ac62dfe934ee804794426c6bed4c309b374a418c9f7a4dbdbb157d58c23')
 
 check() {
@@ -35,7 +36,7 @@
     -buildmode=pie \
     -mod=readonly \
     -modcacherw \
-    -ldflags "-extldflags ${LDFLAGS} \
+    -ldflags "-linkmode external -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 \

Modified: prometheus-memcached-exporter.service
===================================================================
--- prometheus-memcached-exporter.service	2020-09-12 21:14:27 UTC (rev 395968)
+++ prometheus-memcached-exporter.service	2020-09-12 22:17:27 UTC (rev 395969)
@@ -7,6 +7,7 @@
 ExecStart=/usr/bin/prometheus-memcached-exporter $MEMCACHED_EXPORTER_ARGS
 ExecReload=/bin/kill -HUP $MAINPID
 DynamicUser=true
+SupplementaryGroups=memcached
 
 NoNewPrivileges=true
 ProtectSystem=full


More information about the arch-commits mailing list