1 # Maintainer: Jelle van der Waa <jelle@dwaa.nl>
3 pkgname=prometheus-blackbox-exporter
6 pkgdesc="Allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP"
8 url="https://github.com/prometheus/blackbox_exporter"
13 backup=('etc/conf.d/prometheus-blackbox-exporter')
14 source=($pkgname-$pkgver.tar.gz::https://github.com/prometheus/blackbox_exporter/archive/v${pkgver}.tar.gz
15 prometheus-blackbox-exporter.service
16 prometheus-blackbox-exporter.conf)
17 sha512sums=('0c2c19d5a44465838d17c46318804416d32ed229c9d882d064559c2fec41d82029d0f5b7e5c8e6fb6e3473c41b53ae2a4a6c6e65ffacac3afe4263a48c698c29'
18 '72747736e4783e313acb4cb917c3311ed736d69e9b22799132b4aad46b50072f3664c6377c271e720c3e620ab2a6db48110f8d92cc62cf7674cafc32fd1fb2e4'
19 '4cf607e698801396cd7cbde9371b6bc504c7e2ad62e127bccca098222be052e2a312490d93c7ba63304defbb40bc156fc76c79097c6b71bde243d834c02ed2cd')
22 cd blackbox_exporter-$pkgver
27 cd blackbox_exporter-$pkgver
33 -ldflags "-linkmode external -extldflags ${LDFLAGS} \
34 -X github.com/prometheus/common/version.Version=$pkgver \
35 -X github.com/prometheus/common/version.Revision=$pkgver \
36 -X github.com/prometheus/common/version.Branch=tarball \
37 -X github.com/prometheus/common/version.BuildUser=someone@builder \
38 -X github.com/prometheus/common/version.BuildDate=$(date --date=@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" \
43 install -Dm644 prometheus-blackbox-exporter.conf "$pkgdir"/etc/conf.d/prometheus-blackbox-exporter
44 install -Dm644 prometheus-blackbox-exporter.service "$pkgdir"/usr/lib/systemd/system/prometheus-blackbox-exporter.service
45 cd blackbox_exporter-$pkgver
46 install -Dm755 blackbox_exporter "$pkgdir"/usr/bin/prometheus-blackbox-exporter