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

Christian Hesse eworm at gemini.archlinux.org
Tue Mar 29 13:44:34 UTC 2022


    Date: Tuesday, March 29, 2022 @ 13:44:34
  Author: eworm
Revision: 440848

archrelease: copy trunk to testing-x86_64

Added:
  prometheus-blackbox-exporter/repos/testing-x86_64/
  prometheus-blackbox-exporter/repos/testing-x86_64/PKGBUILD
    (from rev 440847, prometheus-blackbox-exporter/trunk/PKGBUILD)
  prometheus-blackbox-exporter/repos/testing-x86_64/prometheus-blackbox-exporter.conf
    (from rev 440847, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.conf)
  prometheus-blackbox-exporter/repos/testing-x86_64/prometheus-blackbox-exporter.service
    (from rev 440847, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.service)

--------------------------------------+
 PKGBUILD                             |   47 +++++++++++++++++++++++++++++++++
 prometheus-blackbox-exporter.conf    |    1 
 prometheus-blackbox-exporter.service |   29 ++++++++++++++++++++
 3 files changed, 77 insertions(+)

Copied: prometheus-blackbox-exporter/repos/testing-x86_64/PKGBUILD (from rev 440847, prometheus-blackbox-exporter/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2022-03-29 13:44:34 UTC (rev 440848)
@@ -0,0 +1,47 @@
+# Maintainer: Jelle van der Waa <jelle at dwaa.nl>
+
+pkgname=prometheus-blackbox-exporter
+pkgver=0.20.0
+pkgrel=2
+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 git)
+options=(!lto)
+backup=('etc/conf.d/prometheus-blackbox-exporter')
+source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz
+        prometheus-blackbox-exporter.service
+        prometheus-blackbox-exporter.conf)
+sha512sums=('62aabcdc7a740521959e9187dcb24be4c8c09c55c60b510efbc9991d37d9a87adf1e11b4577b72c74d14a96c066e09d935a32e4b2ae82d7e2b2ea63b48f31358'
+            '72747736e4783e313acb4cb917c3311ed736d69e9b22799132b4aad46b50072f3664c6377c271e720c3e620ab2a6db48110f8d92cc62cf7674cafc32fd1fb2e4'
+            '4cf607e698801396cd7cbde9371b6bc504c7e2ad62e127bccca098222be052e2a312490d93c7ba63304defbb40bc156fc76c79097c6b71bde243d834c02ed2cd')
+
+check() {
+  cd blackbox_exporter-$pkgver
+  go test ./...
+}
+
+build() {
+  cd blackbox_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 --date=@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
+    .
+}
+
+package() {
+  install -Dm644 prometheus-blackbox-exporter.conf "$pkgdir"/etc/conf.d/prometheus-blackbox-exporter
+  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/testing-x86_64/prometheus-blackbox-exporter.conf (from rev 440847, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.conf)
===================================================================
--- testing-x86_64/prometheus-blackbox-exporter.conf	                        (rev 0)
+++ testing-x86_64/prometheus-blackbox-exporter.conf	2022-03-29 13:44:34 UTC (rev 440848)
@@ -0,0 +1 @@
+BLACKBOX_EXPORTER_ARGS="--config.file='/etc/prometheus/blackbox.yml'"

Copied: prometheus-blackbox-exporter/repos/testing-x86_64/prometheus-blackbox-exporter.service (from rev 440847, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.service)
===================================================================
--- testing-x86_64/prometheus-blackbox-exporter.service	                        (rev 0)
+++ testing-x86_64/prometheus-blackbox-exporter.service	2022-03-29 13:44:34 UTC (rev 440848)
@@ -0,0 +1,29 @@
+[Unit]
+Description=Prometheus blackbox Exporter
+After=network.target
+
+[Service]
+EnvironmentFile=-/etc/conf.d/prometheus-blackbox-exporter
+ExecStart=/usr/bin/prometheus-blackbox-exporter $BLACKBOX_EXPORTER_ARGS
+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
+ProtectKernelLogs=true
+PrivateDevices=true
+RestrictRealtime=true
+CapabilityBoundingSet=
+MemoryDenyWriteExecute=true
+CapabilityBoundingSet=CAP_NET_RAW
+AmbientCapabilities=CAP_NET_RAW
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list