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

Jelle van der Waa jelle at archlinux.org
Fri Jul 24 11:23:55 UTC 2020


    Date: Friday, July 24, 2020 @ 11:23:55
  Author: jelle
Revision: 392489

archrelease: copy trunk to extra-x86_64

Added:
  prometheus-memcached-exporter/repos/extra-x86_64/PKGBUILD
    (from rev 392488, prometheus-memcached-exporter/trunk/PKGBUILD)
  prometheus-memcached-exporter/repos/extra-x86_64/prometheus-memcached-exporter.service
    (from rev 392488, 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.service

---------------------------------------+
 PKGBUILD                              |   96 ++++++++++++++++----------------
 prometheus-memcached-exporter.service |   52 ++++++++---------
 2 files changed, 75 insertions(+), 73 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-24 11:23:48 UTC (rev 392488)
+++ PKGBUILD	2020-07-24 11:23:55 UTC (rev 392489)
@@ -1,47 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
-
-pkgname=prometheus-memcached-exporter
-pkgver=0.6.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)
-makedepends=(go-pie memcached)
-source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/memcached_exporter/archive/v${pkgver}.tar.gz prometheus-memcached-exporter.service)
-sha512sums=('02238da4e901c3e3b57144501d64fa19502bdcf1aa65e775188ef18f9e524c4e2a44d87e8dcc926261b589715a8347628b87c2e418bcbcc63b5a18058ef771be'
-            'cf40ca9f2ea11e3d877314e54af963308fa256a981dd4bf03850367d44537b8d0f42f6934c61e6f38de35c88dcb9cec4433dc188cddb7f4d32964bf0cc837ede')
-
-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 \
-    -mod=vendor \
-    -trimpath \
-    -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)" \
-    .
-}
-
-package() {
-  install -Dm644 prometheus-memcached-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-memcached-exporter.service
-  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 392488, prometheus-memcached-exporter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-24 11:23:55 UTC (rev 392489)
@@ -0,0 +1,49 @@
+# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
+
+pkgname=prometheus-memcached-exporter
+pkgver=0.7.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)
+makedepends=(go memcached)
+source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/memcached_exporter/archive/v${pkgver}.tar.gz prometheus-memcached-exporter.service)
+sha512sums=('5df59a73142e12c86bdc2da49627128c49a22a8bd380d3e44c091cb54c6d0f78d51fd3f95b884bd0260537f87b68989bfd24838abac21805c1b56506ef1bea82'
+            'cf40ca9f2ea11e3d877314e54af963308fa256a981dd4bf03850367d44537b8d0f42f6934c61e6f38de35c88dcb9cec4433dc188cddb7f4d32964bf0cc837ede')
+
+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 "-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)" \
+    .
+}
+
+package() {
+  install -Dm644 prometheus-memcached-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-memcached-exporter.service
+  cd memcached_exporter-$pkgver
+  install -Dm755 memcached_exporter "$pkgdir"/usr/bin/prometheus-memcached-exporter
+}

Deleted: prometheus-memcached-exporter.service
===================================================================
--- prometheus-memcached-exporter.service	2020-07-24 11:23:48 UTC (rev 392488)
+++ prometheus-memcached-exporter.service	2020-07-24 11:23:55 UTC (rev 392489)
@@ -1,26 +0,0 @@
-[Unit]
-Description=Prometheus memcached Exporter
-After=network.target memcached.service
-
-[Service]
-ExecStart=/usr/bin/prometheus-memcached-exporter
-ExecReload=/bin/kill -HUP $MAINPID
-DynamicUser=true
-
-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 392488, prometheus-memcached-exporter/trunk/prometheus-memcached-exporter.service)
===================================================================
--- prometheus-memcached-exporter.service	                        (rev 0)
+++ prometheus-memcached-exporter.service	2020-07-24 11:23:55 UTC (rev 392489)
@@ -0,0 +1,26 @@
+[Unit]
+Description=Prometheus memcached Exporter
+After=network.target memcached.service
+
+[Service]
+ExecStart=/usr/bin/prometheus-memcached-exporter
+ExecReload=/bin/kill -HUP $MAINPID
+DynamicUser=true
+
+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