Date: Monday, May 25, 2020 @ 14:58:39 Author: jelle Revision: 387524 archrelease: copy trunk to extra-x86_64
Added: prometheus-blackbox-exporter/repos/extra-x86_64/PKGBUILD (from rev 387523, prometheus-blackbox-exporter/trunk/PKGBUILD) prometheus-blackbox-exporter/repos/extra-x86_64/prometheus-blackbox-exporter.service (from rev 387523, 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 | 81 ++++++++++++++++----------------- prometheus-blackbox-exporter.service | 56 +++++++++++----------- 2 files changed, 69 insertions(+), 68 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-25 14:58:28 UTC (rev 387523) +++ PKGBUILD 2020-05-25 14:58:39 UTC (rev 387524) @@ -1,40 +0,0 @@ -# Maintainer: Jelle van der Waa <je...@dwaa.nl> - -pkgname=prometheus-blackbox-exporter -pkgver=0.16.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=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz prometheus-blackbox-exporter.service) -sha512sums=('85103b62e345ab5d59626e658047ac75649f9ef991c9bbaff32b95ea75ec2da2bf916573e664520766158805c6cf24163f2850c885a594d32b4f9c4c9dbed1a8' - 'b32d7772cbd8a2fc741d827a7f221d1302ab0c5833c095e5b6dc6befa46a1b12c22e91252fd0e4cf07c9c309d6315c6e1d020508a3baaaa891ab9f7f7d690eae') - -check() { - cd blackbox_exporter-$pkgver - go test ./... -} - -build() { - cd blackbox_exporter-$pkgver - go build \ - -mod=vendor \ - -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@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 387523, prometheus-blackbox-exporter/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-25 14:58:39 UTC (rev 387524) @@ -0,0 +1,41 @@ +# Maintainer: Jelle van der Waa <je...@dwaa.nl> + +pkgname=prometheus-blackbox-exporter +pkgver=0.16.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=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz prometheus-blackbox-exporter.service) +sha512sums=('85103b62e345ab5d59626e658047ac75649f9ef991c9bbaff32b95ea75ec2da2bf916573e664520766158805c6cf24163f2850c885a594d32b4f9c4c9dbed1a8' + 'b32d7772cbd8a2fc741d827a7f221d1302ab0c5833c095e5b6dc6befa46a1b12c22e91252fd0e4cf07c9c309d6315c6e1d020508a3baaaa891ab9f7f7d690eae') + +check() { + cd blackbox_exporter-$pkgver + go test ./... +} + +build() { + cd blackbox_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@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 2020-05-25 14:58:28 UTC (rev 387523) +++ prometheus-blackbox-exporter.service 2020-05-25 14:58:39 UTC (rev 387524) @@ -1,28 +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 - -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 Copied: prometheus-blackbox-exporter/repos/extra-x86_64/prometheus-blackbox-exporter.service (from rev 387523, prometheus-blackbox-exporter/trunk/prometheus-blackbox-exporter.service) =================================================================== --- prometheus-blackbox-exporter.service (rev 0) +++ prometheus-blackbox-exporter.service 2020-05-25 14:58:39 UTC (rev 387524) @@ -0,0 +1,28 @@ +[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 + +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