[arch-commits] Commit in prometheus-memcached-exporter/repos/extra-x86_64 (6 files)

Jelle van der Waa jelle at archlinux.org
Sun Feb 21 20:37:52 UTC 2021


    Date: Sunday, February 21, 2021 @ 20:37:51
  Author: jelle
Revision: 408580

archrelease: copy trunk to extra-x86_64

Added:
  prometheus-memcached-exporter/repos/extra-x86_64/PKGBUILD
    (from rev 408579, prometheus-memcached-exporter/trunk/PKGBUILD)
  prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.conf
    (from rev 408579, prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.conf)
  prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.service
    (from rev 408579, prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.service)
Deleted:
  prometheus-memcached-exporter/repos/extra-x86_64/PKGBUILD
  prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.conf
  prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.service

---------------------------------------+
 PKGBUILD                              |  108 ++++++++++++++++----------------
 prometheus-memcached-exporter.conf    |    4 -
 prometheus-memcached-exporter.service |   56 ++++++++--------
 3 files changed, 84 insertions(+), 84 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-21 20:37:45 UTC (rev 408579)
+++ PKGBUILD	2021-02-21 20:37:51 UTC (rev 408580)
@@ -1,54 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
-
-pkgname=prometheus-memcached-exporter
-pkgver=0.8.0
-pkgrel=1
-pkgdesc="Exports metrics from memcached servers for consumption by Prometheus"
-arch=('x86_64')
-url="https://github.com/prometheus/memcached_exporter"
-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=('dac99c425f51ea939ec2e96ed7e51fe4b657f3e5b3ce0cb650d2614994ac6565b9bd31e4ededaac8394b35ac4a7977d11e2d9155a04df1f78a8e97c86ae26bdc'
-            '13ae8e9cc8445cffab1e51f000fbe5ca0dd2a30532f8303957dc376c8891552e719681e49ffd8a83c4cd01aca897031770c9d96ed92276ff85c2e32c4fa999ee'
-            'bc92af08207bee78a48cc764f038d6f5175b0051873f1238d90531f81d9b403085ec7ac62dfe934ee804794426c6bed4c309b374a418c9f7a4dbdbb157d58c23')
-
-check() {
-  cd memcached_exporter-$pkgver
-  memcached_pids=()
-  memcached -p 11211 -U 11211 >/dev/null        & memcached_pids+=($!)
-
-  local ret=0
-  go test ./... || ret=1
-
-  kill ${memcached_pids[@]}
-
-  return $ret
-}
-
-build() {
-  cd memcached_exporter-$pkgver
-  go build \
-    -trimpath \
-    -buildmode=pie \
-    -mod=readonly \
-    -modcacherw \
-    -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 \
-      -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)" \
-    -o memcached_exporter cmd/memcached_exporter/main.go
-}
-
-package() {
-  install -Dm644 prometheus-memcached-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-memcached-exporter.service
-  install -Dm644 prometheus-memcached-exporter.conf "${pkgdir}"/etc/conf.d/prometheus-memcached-exporter
-
-  cd memcached_exporter-$pkgver
-  install -Dm755 memcached_exporter "$pkgdir"/usr/bin/prometheus-memcached-exporter
-}

Copied: prometheus-memcached-exporter/repos/extra-x86_64/PKGBUILD (from rev 408579, prometheus-memcached-exporter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-21 20:37:51 UTC (rev 408580)
@@ -0,0 +1,54 @@
+# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
+
+pkgname=prometheus-memcached-exporter
+pkgver=0.8.0
+pkgrel=2
+pkgdesc="Exports metrics from memcached servers for consumption by Prometheus"
+arch=('x86_64')
+url="https://github.com/prometheus/memcached_exporter"
+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=('dac99c425f51ea939ec2e96ed7e51fe4b657f3e5b3ce0cb650d2614994ac6565b9bd31e4ededaac8394b35ac4a7977d11e2d9155a04df1f78a8e97c86ae26bdc'
+            '13ae8e9cc8445cffab1e51f000fbe5ca0dd2a30532f8303957dc376c8891552e719681e49ffd8a83c4cd01aca897031770c9d96ed92276ff85c2e32c4fa999ee'
+            'bc92af08207bee78a48cc764f038d6f5175b0051873f1238d90531f81d9b403085ec7ac62dfe934ee804794426c6bed4c309b374a418c9f7a4dbdbb157d58c23')
+
+check() {
+  cd memcached_exporter-$pkgver
+  memcached_pids=()
+  memcached -p 11211 -U 11211 >/dev/null        & memcached_pids+=($!)
+
+  local ret=0
+  go test ./... || ret=1
+
+  kill ${memcached_pids[@]}
+
+  return $ret
+}
+
+build() {
+  cd memcached_exporter-$pkgver
+  go build \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -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 \
+      -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)" \
+    -o memcached_exporter cmd/memcached_exporter/main.go
+}
+
+package() {
+  install -Dm644 prometheus-memcached-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-memcached-exporter.service
+  install -Dm644 prometheus-memcached-exporter.conf "${pkgdir}"/etc/conf.d/prometheus-memcached-exporter
+
+  cd memcached_exporter-$pkgver
+  install -Dm755 memcached_exporter "$pkgdir"/usr/bin/prometheus-memcached-exporter
+}

Deleted: prometheus-memcached-exporter.conf
===================================================================
--- prometheus-memcached-exporter.conf	2021-02-21 20:37:45 UTC (rev 408579)
+++ prometheus-memcached-exporter.conf	2021-02-21 20:37:51 UTC (rev 408580)
@@ -1,2 +0,0 @@
-MEMCACHED_EXPORTER_ARGS=""
-

Copied: prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.conf (from rev 408579, prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.conf)
===================================================================
--- prometheus-memcached-exporter.conf	                        (rev 0)
+++ prometheus-memcached-exporter.conf	2021-02-21 20:37:51 UTC (rev 408580)
@@ -0,0 +1,2 @@
+MEMCACHED_EXPORTER_ARGS=""
+

Deleted: prometheus-memcached-exporter.service
===================================================================
--- prometheus-memcached-exporter.service	2021-02-21 20:37:45 UTC (rev 408579)
+++ prometheus-memcached-exporter.service	2021-02-21 20:37:51 UTC (rev 408580)
@@ -1,28 +0,0 @@
-[Unit]
-Description=Prometheus memcached Exporter
-After=network.target memcached.service
-
-[Service]
-EnvironmentFile=-/etc/conf.d/prometheus-memcached-exporter
-ExecStart=/usr/bin/prometheus-memcached-exporter $MEMCACHED_EXPORTER_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-DynamicUser=true
-SupplementaryGroups=memcached
-
-NoNewPrivileges=true
-ProtectSystem=full
-ProtectKernelModules=true
-ProtectKernelTunables=true
-PrivateTmp=true
-LockPersonality=true
-ProtectHostname=true
-ProtectHome=true
-ProtectControlGroups=true
-PrivateDevices=true
-PrivateUsers=true
-RestrictRealtime=true
-CapabilityBoundingSet=
-MemoryDenyWriteExecute=true
-
-[Install]
-WantedBy=multi-user.target

Copied: prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.service (from rev 408579, prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.service)
===================================================================
--- prometheus-memcached-exporter.service	                        (rev 0)
+++ prometheus-memcached-exporter.service	2021-02-21 20:37:51 UTC (rev 408580)
@@ -0,0 +1,28 @@
+[Unit]
+Description=Prometheus memcached Exporter
+After=network.target memcached.service
+
+[Service]
+EnvironmentFile=-/etc/conf.d/prometheus-memcached-exporter
+ExecStart=/usr/bin/prometheus-memcached-exporter $MEMCACHED_EXPORTER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+DynamicUser=true
+SupplementaryGroups=memcached
+
+NoNewPrivileges=true
+ProtectSystem=full
+ProtectKernelModules=true
+ProtectKernelTunables=true
+PrivateTmp=true
+LockPersonality=true
+ProtectHostname=true
+ProtectHome=true
+ProtectControlGroups=true
+PrivateDevices=true
+PrivateUsers=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target


More information about the arch-commits mailing list