# Maintainer: Mathieu Clabaut pkgname=prometheus-blackbox-exporter-bin pkgver=0.25.0 pkgrel=1 pkgdesc="Prometheus blackbox exporter allows blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP (binary, not built from source)." arch=('x86_64' 'armv5h' 'armv6h' 'armv7h') url="https://github.com/prometheus/blackbox_exporter" license=('Apache') depends=() makedepends=() install='prometheus-blackbox-exporter.install' backup=('etc/prometheus/blackbox.yml') provides=('prometheus-blackbox-exporter') conflicts=('prometheus-blackbox-exporter') source_x86_64=( 'prometheus-blackbox-exporter.service' 'config.yml' 'prometheus-blackbox-exporter.install' 'prometheus.sysusers' "https://github.com/prometheus/blackbox_exporter/releases/download/v${pkgver}/blackbox_exporter-${pkgver}.linux-amd64.tar.gz") source_armv5h=( 'prometheus-blackbox-exporter.service' 'config.yml' 'prometheus-blackbox-exporter.install' 'prometheus.sysusers' "https://github.com/prometheus/blackbox_exporter/releases/download/v${pkgver}/blackbox_exporter-${pkgver}.linux-armv5.tar.gz") source_armv6h=( 'prometheus-blackbox-exporter.service' 'config.yml' 'prometheus-blackbox-exporter.install' 'prometheus.sysusers' "https://github.com/prometheus/blackbox_exporter/releases/download/v${pkgver}/blackbox_exporter-${pkgver}.linux-armv6.tar.gz") source_armv7h=( 'prometheus-blackbox-exporter.service' 'config.yml' 'prometheus-blackbox-exporter.install' 'prometheus.sysusers' "https://github.com/prometheus/blackbox_exporter/releases/download/v${pkgver}/blackbox_exporter-${pkgver}.linux-armv7.tar.gz") package() { case "$CARCH" in 'x86_64') ARCH='amd64';; 'armv5h') ARCH='armv5';; 'armv6h') ARCH='armv6';; 'armv7h') ARCH='armv7';; esac cd "${srcdir}/blackbox_exporter-${pkgver}.linux-${ARCH}" # Install Binary install -D -m0755 blackbox_exporter \ "${pkgdir}/usr/bin/prometheus_blackbox_exporter" install -dm755 "$pkgdir"/usr/lib/systemd/system install -dm755 "$pkgdir"/usr/lib/sysusers.d install -m644 "$srcdir"/prometheus.sysusers "$pkgdir"/usr/lib/sysusers.d/prometheus-blackbox.conf # Install SystemD Service File install -D -m0644 "${srcdir}/prometheus-blackbox-exporter.service" \ "${pkgdir}/usr/lib/systemd/system/prometheus-blackbox-exporter.service" #Install example configuration install -D -m0644 "${srcdir}/config.yml" \ "${pkgdir}/etc/prometheus/blackbox.yml" } sha256sums_x86_64=('a849ded3bee31f676b13fd0bcc9264ff577a31ab4b3fb23c34e64767588ef857' '38d9cf33beabc7bcf2a2504c2657ecee66a96da94a4f829619e92980800da3ce' '17e5b3850058fd95e07b2d5d96d4869436ff475f190c731b11d6cf6914c7c9f3' '1ccc0cb5bcd94c5b6cafe795f7bdcc411c4bcc2ef8bd84a7683a604136c609e4' 'c651ced6405c5e0cd292a400f47ae9b34f431f16c7bb098afbcd38f710144640') sha256sums_armv5h=('a849ded3bee31f676b13fd0bcc9264ff577a31ab4b3fb23c34e64767588ef857' '38d9cf33beabc7bcf2a2504c2657ecee66a96da94a4f829619e92980800da3ce' '17e5b3850058fd95e07b2d5d96d4869436ff475f190c731b11d6cf6914c7c9f3' '1ccc0cb5bcd94c5b6cafe795f7bdcc411c4bcc2ef8bd84a7683a604136c609e4' '43111bc49fd9623606f3a4409cf5523b1888151be957c371c544c2dcd1cd7b97') sha256sums_armv6h=('a849ded3bee31f676b13fd0bcc9264ff577a31ab4b3fb23c34e64767588ef857' '38d9cf33beabc7bcf2a2504c2657ecee66a96da94a4f829619e92980800da3ce' '17e5b3850058fd95e07b2d5d96d4869436ff475f190c731b11d6cf6914c7c9f3' '1ccc0cb5bcd94c5b6cafe795f7bdcc411c4bcc2ef8bd84a7683a604136c609e4' 'dfa00330a4d1bce28bc04f26316f0636dfb628cef719fa0737e0b6cc51c53ab2') sha256sums_armv7h=('a849ded3bee31f676b13fd0bcc9264ff577a31ab4b3fb23c34e64767588ef857' '38d9cf33beabc7bcf2a2504c2657ecee66a96da94a4f829619e92980800da3ce' '17e5b3850058fd95e07b2d5d96d4869436ff475f190c731b11d6cf6914c7c9f3' '1ccc0cb5bcd94c5b6cafe795f7bdcc411c4bcc2ef8bd84a7683a604136c609e4' '4a275bf8c0b83fcac3db9afb7099b33fdc52ff267e2852a72b62f5611ab540f0')