[arch-commits] Commit in prometheus-node-exporter/repos (9 files)

Johannes Löthberg demize at archlinux.org
Wed May 22 17:09:10 UTC 2019


    Date: Wednesday, May 22, 2019 @ 17:09:10
  Author: demize
Revision: 353843

archrelease: copy trunk to extra-x86_64

Added:
  prometheus-node-exporter/repos/extra-x86_64/PKGBUILD
    (from rev 353842, prometheus-node-exporter/trunk/PKGBUILD)
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.conf
    (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.conf)
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.service
    (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.service)
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.sysusers
    (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.sysusers)
Deleted:
  prometheus-node-exporter/repos/community-x86_64/
  prometheus-node-exporter/repos/extra-x86_64/PKGBUILD
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.conf
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.service
  prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.sysusers

------------------------------------------------+
 /PKGBUILD                                      |   58 ++++++++++++++++++++
 /prometheus-node-exporter.conf                 |    1 
 /prometheus-node-exporter.service              |   18 ++++++
 /prometheus-node-exporter.sysusers             |    1 
 extra-x86_64/PKGBUILD                          |   66 -----------------------
 extra-x86_64/prometheus-node-exporter.conf     |    1 
 extra-x86_64/prometheus-node-exporter.service  |   18 ------
 extra-x86_64/prometheus-node-exporter.sysusers |    1 
 8 files changed, 78 insertions(+), 86 deletions(-)

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2019-05-22 17:04:37 UTC (rev 353842)
+++ extra-x86_64/PKGBUILD	2019-05-22 17:09:10 UTC (rev 353843)
@@ -1,66 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-
-pkgname=prometheus-node-exporter
-pkgver=0.17.0
-pkgrel=3
-
-pkgdesc='Exporter for machine metrics'
-url='https://github.com/prometheus/node_exporter'
-arch=('x86_64')
-license=('Apache')
-
-depends=('glibc')
-makedepends=('go-pie' 'git')
-
-backup=('etc/conf.d/prometheus-node-exporter')
-
-source=("https://github.com/prometheus/node_exporter/archive/v$pkgver.tar.gz"
-        prometheus-node-exporter.conf
-        prometheus-node-exporter.service
-        prometheus-node-exporter.sysusers
-        fix-go.sum.patch::https://github.com/prometheus/node_exporter/commit/97dab59e18c575d1384a9afd54e9f30473f34322.patch)
-
-sha256sums=('763b588b9282a8aa497286f8ab1aab61d085bdd2d258cf3457f23c60752c9a27'
-            'ce93e2b95bfc86a8a046e2f9175408e1cbffa784fd3b65dd141fde70b5bb2585'
-            '727ed5df3395fd77d8e2ae8c3ab7a6352213655e38c9b37badfea1aa90556394'
-            'c7fd0b1793dfe7a354a28e978d3c79e7195eaf43376b9eece37e996fe0772c5c'
-            '6e93306990e0ccdc03a4d776b18eb96881950e025f74c9f7a1bac3b8a43374e9')
-
-prepare() {
-  cd node_exporter-$pkgver
-
-  patch -p1 <"$srcdir"/fix-go.sum.patch
-}
-
-build() {
-  cd node_exporter-$pkgver
-
-  go build \
-    -gcflags "all=-trimpath=${PWD}" \
-    -asmflags "all=-trimpath=${PWD}" \
-    -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=$SOURCE_DATE_EPOCH" \
-    .
-}
-
-check() {
-  cd node_exporter-$pkgver
-
-  make collector/fixtures/sys/.unpacked
-  go test ./...
-  ./end-to-end-test.sh
-}
-
-package () {
-  install -Dm644 prometheus-node-exporter.conf "$pkgdir"/etc/conf.d/prometheus-node-exporter
-  install -Dm644 prometheus-node-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-node-exporter.service
-  install -Dm644 prometheus-node-exporter.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus-node-exporter.conf
-
-  cd node_exporter-$pkgver
-
-  install -Dm755 node_exporter "$pkgdir"/usr/bin/prometheus-node-exporter
-}

Copied: prometheus-node-exporter/repos/extra-x86_64/PKGBUILD (from rev 353842, prometheus-node-exporter/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2019-05-22 17:09:10 UTC (rev 353843)
@@ -0,0 +1,58 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=prometheus-node-exporter
+pkgver=0.18.0
+pkgrel=1
+
+pkgdesc='Exporter for machine metrics'
+url='https://github.com/prometheus/node_exporter'
+arch=('x86_64')
+license=('Apache')
+
+depends=('glibc')
+makedepends=('go-pie' 'git')
+
+backup=('etc/conf.d/prometheus-node-exporter')
+
+source=("https://github.com/prometheus/node_exporter/archive/v$pkgver.tar.gz"
+        prometheus-node-exporter.conf
+        prometheus-node-exporter.service
+        prometheus-node-exporter.sysusers)
+
+sha256sums=('2f71a4a11fa1388e4a459865520365396f8b6ebbad9d45df476fe60ee0de0415'
+            'ce93e2b95bfc86a8a046e2f9175408e1cbffa784fd3b65dd141fde70b5bb2585'
+            '727ed5df3395fd77d8e2ae8c3ab7a6352213655e38c9b37badfea1aa90556394'
+            'c7fd0b1793dfe7a354a28e978d3c79e7195eaf43376b9eece37e996fe0772c5c')
+
+build() {
+  cd node_exporter-$pkgver
+
+  go build \
+    -gcflags "all=-trimpath=${PWD}" \
+    -asmflags "all=-trimpath=${PWD}" \
+    -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)" \
+    .
+}
+
+check() {
+  cd node_exporter-$pkgver
+
+  make collector/fixtures/sys/.unpacked
+  go test ./...
+  ./end-to-end-test.sh
+}
+
+package () {
+  install -Dm644 prometheus-node-exporter.conf "$pkgdir"/etc/conf.d/prometheus-node-exporter
+  install -Dm644 prometheus-node-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-node-exporter.service
+  install -Dm644 prometheus-node-exporter.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus-node-exporter.conf
+
+  cd node_exporter-$pkgver
+
+  install -Dm755 node_exporter "$pkgdir"/usr/bin/prometheus-node-exporter
+}

Deleted: extra-x86_64/prometheus-node-exporter.conf
===================================================================
--- extra-x86_64/prometheus-node-exporter.conf	2019-05-22 17:04:37 UTC (rev 353842)
+++ extra-x86_64/prometheus-node-exporter.conf	2019-05-22 17:09:10 UTC (rev 353843)
@@ -1 +0,0 @@
-NODE_EXPORTER_ARGS=""

Copied: prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.conf (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.conf)
===================================================================
--- extra-x86_64/prometheus-node-exporter.conf	                        (rev 0)
+++ extra-x86_64/prometheus-node-exporter.conf	2019-05-22 17:09:10 UTC (rev 353843)
@@ -0,0 +1 @@
+NODE_EXPORTER_ARGS=""

Deleted: extra-x86_64/prometheus-node-exporter.service
===================================================================
--- extra-x86_64/prometheus-node-exporter.service	2019-05-22 17:04:37 UTC (rev 353842)
+++ extra-x86_64/prometheus-node-exporter.service	2019-05-22 17:09:10 UTC (rev 353843)
@@ -1,18 +0,0 @@
-[Unit]
-Description=Prometheus exporter for machine metrics
-Requires=network-online.target
-After=network-online.target
-
-[Service]
-User=node_exporter
-Group=node_exporter
-Restart=on-failure
-EnvironmentFile=-/etc/conf.d/prometheus-node-exporter
-ExecStart=/usr/bin/prometheus-node-exporter $NODE_EXPORTER_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-NoNewPrivileges=true
-ProtectHome=true
-ProtectSystem=strict
-
-[Install]
-WantedBy=multi-user.target

Copied: prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.service (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.service)
===================================================================
--- extra-x86_64/prometheus-node-exporter.service	                        (rev 0)
+++ extra-x86_64/prometheus-node-exporter.service	2019-05-22 17:09:10 UTC (rev 353843)
@@ -0,0 +1,18 @@
+[Unit]
+Description=Prometheus exporter for machine metrics
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=node_exporter
+Group=node_exporter
+Restart=on-failure
+EnvironmentFile=-/etc/conf.d/prometheus-node-exporter
+ExecStart=/usr/bin/prometheus-node-exporter $NODE_EXPORTER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=strict
+
+[Install]
+WantedBy=multi-user.target

Deleted: extra-x86_64/prometheus-node-exporter.sysusers
===================================================================
--- extra-x86_64/prometheus-node-exporter.sysusers	2019-05-22 17:04:37 UTC (rev 353842)
+++ extra-x86_64/prometheus-node-exporter.sysusers	2019-05-22 17:09:10 UTC (rev 353843)
@@ -1 +0,0 @@
-u node_exporter - "Prometheus node-exporter user"

Copied: prometheus-node-exporter/repos/extra-x86_64/prometheus-node-exporter.sysusers (from rev 353842, prometheus-node-exporter/trunk/prometheus-node-exporter.sysusers)
===================================================================
--- extra-x86_64/prometheus-node-exporter.sysusers	                        (rev 0)
+++ extra-x86_64/prometheus-node-exporter.sysusers	2019-05-22 17:09:10 UTC (rev 353843)
@@ -0,0 +1 @@
+u node_exporter - "Prometheus node-exporter user"



More information about the arch-commits mailing list