blob: dcff4d967079286d895001546ebf1d0133591822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Slashbunny <demodevil5[at]yahoo>
pkgname=prometheus-haproxy-exporter-bin
pkgver=0.8.0
pkgrel=1
pkgdesc="Simple server that scrapes HAProxy stats and exports them via HTTP for Prometheus consumption (binary, not built from source)"
arch=('x86_64')
url="https://github.com/prometheus/haproxy_exporter"
license=('Apache')
depends=()
makedepends=()
backup=('etc/conf.d/prometheus-haproxy-exporter')
provides=('prometheus-haproxy-exporter')
conflicts=('prometheus-haproxy-exporter')
source=( 'prometheus-haproxy-exporter.service' 'prometheus-haproxy-exporter.confd'
"https://github.com/prometheus/haproxy_exporter/releases/download/v${pkgver}/haproxy_exporter-${pkgver}.linux-amd64.tar.gz")
sha256sums=('59d6753ca5cff752304a7391de336443cd7394bae6095c5986a07c4e431efe4f'
'7b363fa314f1ab2630ea5dbc4a888c5b7b2b0472a474a745bd8a55d385e5a568'
'2b1da4218fc5a1531ed17663ba5656c6bb5ce3db0ad6c2bdd6781d7f1b545816')
package() {
cd "${srcdir}/haproxy_exporter-${pkgver}.linux-amd64"
# Install Binary
install -D -m0755 haproxy_exporter \
"${pkgdir}/usr/bin/prometheus_haproxy_exporter"
# Install Daemon Configuration
install -D -m0644 "${srcdir}/prometheus-haproxy-exporter.confd" \
"${pkgdir}/etc/conf.d/prometheus-haproxy-exporter"
# Install SystemD Service File
install -D -m0755 "${srcdir}/prometheus-haproxy-exporter.service" \
"${pkgdir}/usr/lib/systemd/system/prometheus-haproxy-exporter.service"
}
|