2023-06-13 16:58:53 +00:00
|
|
|
# Maintainer: Markus Pesch <markus.pesch plus apps at cryptic.systems>
|
|
|
|
|
|
|
|
pkgname=prometheus-x509-certificate-exporter
|
|
|
|
_pkgname=x509-certificate-exporter
|
2024-05-07 16:00:10 +00:00
|
|
|
pkgver=3.13.0 # renovate: datasource=github-releases depName=enix/x509-certificate-exporter
|
2024-04-10 10:51:53 +00:00
|
|
|
pkgrel=1
|
2023-06-13 16:58:53 +00:00
|
|
|
pkgdesc="metric exporter for x509 certificates"
|
|
|
|
arch=('armv7h' 'aarch64' 'x86_64')
|
|
|
|
url="https://github.com/enix/$_pkgname"
|
|
|
|
license=('MIT')
|
|
|
|
makedepends=('go')
|
2023-06-13 18:24:46 +00:00
|
|
|
backup=(
|
|
|
|
etc/conf.d/prometheus-x509-certificate-exporter
|
|
|
|
)
|
|
|
|
|
2023-06-13 16:58:53 +00:00
|
|
|
source=(
|
|
|
|
"$url/archive/refs/tags/v$pkgver.zip"
|
|
|
|
'prometheus-x509-certificate-exporter'
|
|
|
|
'systemd.service'
|
|
|
|
)
|
2024-04-10 10:51:53 +00:00
|
|
|
sha512sums=('d4cb0288bf72b478b990b3d703a29825a70be1ad0839407f103940f386c172cd07b80275760c6fbcca46194376d67734e76d837cd7e5aa3c9c325dd9e0e9c94f'
|
2023-06-13 17:18:32 +00:00
|
|
|
'2fd59748f9cb4018456befcc07bb1e4a68cbe5d5bf30faa74e4bc607c241623ee66d6ea7765a5bcd707dfa2a1eb674b7e2e766e27fc0c462c0db1b5ec6aa13ac'
|
2023-06-13 18:03:05 +00:00
|
|
|
'a95d01a84340bdcfbc833f5b78976432bdca1c567f55a3c56eb2ef3b95a64488d38482ddb965d535b6a8f66ea4b34f51a2bf0bd8098f7d3af81ff4fd63ec3b5a')
|
2024-04-10 10:51:53 +00:00
|
|
|
b2sums=('ab554b9a52dbdfcd21eeddb61c029dab1fb56d42db10dbf5e0f63b6b83453816e227853ff30cea1a59e22737bb02f521120b44e79571c5f1ac4ba1d0c1119581'
|
2023-06-13 17:18:32 +00:00
|
|
|
'41d9f7daeeedddc11056ac3b8e741afbab80c5779ce3823aa2d88f179e779c0715ccf8c471d645ef74df87f0f7c33cbec92a0ecdae148bd80f83670b6446038c'
|
2023-06-13 18:03:05 +00:00
|
|
|
'c7bfafa8f30cbde623909875c6bce8784261bb3bf38a4c3cb6b36745866558df4d1cf2e7d95c12ac47622863f1e91cce7febb01a5499c51a024019026c165033')
|
2023-06-13 16:58:53 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$_pkgname-$pkgver/cmd/$_pkgname"
|
|
|
|
go build -v \
|
|
|
|
-buildmode=pie \
|
|
|
|
-trimpath \
|
|
|
|
-o $pkgname .
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
# systemd integration
|
|
|
|
install -D --mode 0644 systemd.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
|
|
|
|
|
|
|
# binary
|
|
|
|
install -D --mode 0755 --target-directory "$pkgdir/usr/bin" "$_pkgname-$pkgver/cmd/$_pkgname/$pkgname"
|
|
|
|
|
|
|
|
# extra args
|
|
|
|
# NOTE: Set restrict file permissions by default to protect optional basic auth credentials
|
|
|
|
install -D --mode 0600 --target-directory "$pkgdir/etc/conf.d" prometheus-x509-certificate-exporter
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -D --mode 0755 --target-directory "$pkgdir/usr/share/licenses/$pkgname" "$_pkgname-$pkgver/LICENSE"
|
|
|
|
}
|