~dricottone/huttese-apk

ref: 8bd243fbcc63f282a809510e2d264335c1809698 huttese-apk/sr.ht/pushgateway/APKBUILD -rw-r--r-- 1.3 KiB
8bd243fb — Drew DeVault prom-aggregation-gateway: upgrade to 123c6bfc5e07fb8f118c19b3281855bcb2463c39 3 years ago
                                                                                
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.3.1
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="97ef8207c63233a5ccc515dd7a8108aaf7d95b9165b37d40cd2dcecfc1361433d6bad080783dd5d657fefadece7a73ffe42c6f57d57cc1a1127f6239cd445892  pushgateway-1.3.1.tar.gz
39b797f6a38b02f84f94cfdbc5c860af060b044eaf98d7ec99909c4abcb9bf6112755bbd21460bfda9825b31715e403fedb6c88158072cd79d985429bcb5cf01  pushgateway.confd
903fd13fda99fd3095e362efa91deed3c88461384a4ed1d3edfaab8bb7a2f070f5004cefa7a1598ebfa0d20df074d0c70938680b94d672751b9326d35960d6b1  pushgateway.initd"