~dricottone/huttese-apk

ref: 4e02f3cdb09d90eaf16aa12328e0d2fa193ff12f huttese-apk/sr.ht/metrics.sr.ht/APKBUILD -rw-r--r-- 875 bytes
4e02f3cd — Drew DeVault prometheus: add reload function 4 years ago
                                                                                
a5767fa7 Drew DeVault
16813ecd Drew DeVault
a5767fa7 Drew DeVault
4c477ad9 Drew DeVault
a5767fa7 Drew DeVault
d07f7dbd Drew DeVault
a5767fa7 Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
_pkgname=metrics.sr.ht
pkgname=metrics.sr.ht-rules
_commit=60e2d4b9808c4dc8baaefe41fc85674e5432dca5
pkgver=0_git20200105
pkgrel=0
pkgdesc="SourceHut Prometheus rules"
url="https://git.sr.ht/~sircmpwn/metrics.sr.ht"
arch="noarch"
license="MIT"
checkdepends="prometheus"
install="$pkgname.post-upgrade"
source="
	$_pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$_pkgname/archive/$_commit.tar.gz
"
builddir="$srcdir/$_pkgname-$_commit"

check() {
	for f in *.yml
	do
		promtool check rules $f
	done
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/etc/prometheus
	for f in *.yml
	do
		install -Dm644 -t "$pkgdir"/etc/prometheus/ "$f"
	done
}

sha512sums="34e365f22cbf787d6313776bb03997cfd74b46c94596743d6dda4b451b86cf2f11c20eef87b551cc7ac5a92c3879a84b80542e923cce765a4bef62f62b030e3d  metrics.sr.ht-rules-0_git20200105.tar.gz"