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

Jelle van der Waa jelle at archlinux.org
Wed Aug 28 14:11:24 UTC 2019


    Date: Wednesday, August 28, 2019 @ 14:11:23
  Author: jelle
Revision: 361323

archrelease: copy trunk to extra-x86_64

Added:
  prometheus-blackbox-exporter/repos/extra-x86_64/PKGBUILD
    (from rev 361322, prometheus-blackbox-exporter/trunk/PKGBUILD)
  prometheus-blackbox-exporter/repos/extra-x86_64/prometheus-blackbox-exporter.service
    (from rev 361322, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.service)
Deleted:
  prometheus-blackbox-exporter/repos/extra-x86_64/PKGBUILD
  prometheus-blackbox-exporter/repos/extra-x86_64/prometheus-blackbox-exporter.service

--------------------------------------+
 PKGBUILD                             |   78 ++++++++++++++++-----------------
 prometheus-blackbox-exporter.service |   31 ++++++++-----
 2 files changed, 59 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-28 14:11:12 UTC (rev 361322)
+++ PKGBUILD	2019-08-28 14:11:23 UTC (rev 361323)
@@ -1,39 +0,0 @@
-# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
-
-pkgname=prometheus-blackbox-exporter
-pkgver=0.14.0
-pkgrel=3
-pkgdesc="Allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP"
-arch=('x86_64')
-url="https://github.com/prometheus/blackbox_exporter"
-license=('Apache')
-depends=(glibc)
-makedepends=(go-pie git)
-source=(https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz prometheus-blackbox-exporter.service)
-sha512sums=('58f379cdeef671376105532450ffb3a6fef0ea071d493fbef40d761c6cbaec47bb49c9c2e5c070f3d0e598396d7ad9b2c5af100c9a69aee04877442c7bdaf120'
-            '1d874c5dac3c36cb9e74cf3aa7b91d92560156acfe314179608bc8534ee38bed1f7f01368a5e85fac4d954ff84039f7cc4548803a5a9167baca69163f1ba7514')
-
-check() {
-  cd blackbox_exporter-$pkgver
-  go test ./...
-}
-
-build() {
-  cd blackbox_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)" \
-    .
-}
-
-package() {
-  install -Dm644 prometheus-blackbox-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-blackbox-exporter.service
-  cd blackbox_exporter-$pkgver
-  install -Dm755 blackbox_exporter "$pkgdir"/usr/bin/prometheus-blackbox-exporter
-}

Copied: prometheus-blackbox-exporter/repos/extra-x86_64/PKGBUILD (from rev 361322, prometheus-blackbox-exporter/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-28 14:11:23 UTC (rev 361323)
@@ -0,0 +1,39 @@
+# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
+
+pkgname=prometheus-blackbox-exporter
+pkgver=0.14.0
+pkgrel=4
+pkgdesc="Allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP"
+arch=('x86_64')
+url="https://github.com/prometheus/blackbox_exporter"
+license=('Apache')
+depends=(glibc)
+makedepends=(go-pie git)
+source=(https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz prometheus-blackbox-exporter.service)
+sha512sums=('58f379cdeef671376105532450ffb3a6fef0ea071d493fbef40d761c6cbaec47bb49c9c2e5c070f3d0e598396d7ad9b2c5af100c9a69aee04877442c7bdaf120'
+            '3d8c060bda4baf6ae56f162fd6b3f8668bae8e80a7cd40a40cca007fe565c5872142dac8c1821944aa146d52b55720b9cc3e4b3e3ec77f76241f0cdbf01532b3')
+
+check() {
+  cd blackbox_exporter-$pkgver
+  go test ./...
+}
+
+build() {
+  cd blackbox_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)" \
+    .
+}
+
+package() {
+  install -Dm644 prometheus-blackbox-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-blackbox-exporter.service
+  cd blackbox_exporter-$pkgver
+  install -Dm755 blackbox_exporter "$pkgdir"/usr/bin/prometheus-blackbox-exporter
+}

Deleted: prometheus-blackbox-exporter.service
===================================================================
--- prometheus-blackbox-exporter.service	2019-08-28 14:11:12 UTC (rev 361322)
+++ prometheus-blackbox-exporter.service	2019-08-28 14:11:23 UTC (rev 361323)
@@ -1,11 +0,0 @@
-[Unit]
-Description=Prometheus blackbox Exporter
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/prometheus-blackbox-exporter --config.file="/etc/prometheus/blackbox.yml"
-ExecReload=/bin/kill -HUP $MAINPID
-DynamicUser=true
-
-[Install]
-WantedBy=multi-user.target

Copied: prometheus-blackbox-exporter/repos/extra-x86_64/prometheus-blackbox-exporter.service (from rev 361322, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.service)
===================================================================
--- prometheus-blackbox-exporter.service	                        (rev 0)
+++ prometheus-blackbox-exporter.service	2019-08-28 14:11:23 UTC (rev 361323)
@@ -0,0 +1,20 @@
+[Unit]
+Description=Prometheus blackbox Exporter
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/prometheus-blackbox-exporter --config.file="/etc/prometheus/blackbox.yml"
+ExecReload=/bin/kill -HUP $MAINPID
+DynamicUser=true
+
+NoNewPrivilieges=true
+ProtectSystem=full
+ProtectKernelModules=true
+ProtectKernelTunables=true
+PrivateTmp=true
+LockPersonality=true
+ProtectHostname=true
+ProtectControlGroups=true
+
+[Install]
+WantedBy=multi-user.target


More information about the arch-commits mailing list