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
36
37
38
39
40
41
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=pushgateway
pkgver=1.2.0
pkgrel=0
pkgdesc="Prometheus push acceptor for ephemeral and batch jobs"
url="https://github.com/prometheus/pushgateway"
arch="all"
license="Apache-2.0"
install="pushgateway.pre-install"
makedepends="go yarn bash"
source="
$pkgname-$pkgver.tar.gz::https://github.com/prometheus/pushgateway/archive/v$pkgver.tar.gz
pushgateway.confd
pushgateway.initd
"
subpackages="$pkgname-openrc"
options="!check" # Broken by integrations we don't care about
build() {
go build \
-trimpath \
-mod=vendor \
-ldflags "-extldflags $LDFLAGS"
}
check() {
go test ./...
}
package() {
install -Dm755 pushgateway "$pkgdir"/usr/bin/pushgateway
install -Dm644 "$srcdir"/pushgateway.confd \
"$pkgdir"/etc/conf.d/pushgateway
install -Dm755 "$srcdir"/pushgateway.initd \
"$pkgdir"/etc/init.d/pushgateway
}
sha512sums="c971a98ba781e0feb376b1af5c637ddcea4ad1296d72ddb0aa219bd5e5a018843d162db6440ad8f6461799ae248ef0ed6d3614f6fd43db50ea31a0a9ced161d6 pushgateway-1.2.0.tar.gz
39b797f6a38b02f84f94cfdbc5c860af060b044eaf98d7ec99909c4abcb9bf6112755bbd21460bfda9825b31715e403fedb6c88158072cd79d985429bcb5cf01 pushgateway.confd
903fd13fda99fd3095e362efa91deed3c88461384a4ed1d3edfaab8bb7a2f070f5004cefa7a1598ebfa0d20df074d0c70938680b94d672751b9326d35960d6b1 pushgateway.initd"