aports/configs/telegraf/APKBUILD

25 lines
600 B
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
pkgname=redxen-config-telegraf
pkgver=2020.12.23
pkgrel=0
pkgdesc="Telegraf monitoring configuration"
url="https://git.redxen.eu/RedXen"
arch="noarch"
license="none"
depends="telegraf"
source="
main.conf
"
#options="!check"
package() {
install -Dm400 main.conf "$pkgdir"/etc/telegraf/main.conf
}
check() {
telegraf --config main.conf --test >/dev/null
}
sha512sums="80cb3839e08522ebe390919f7537f739e447adacd552684f329b63fc53d2f1ace654f5cd81b4b599641ddef31e2c7c2adf48946d87dc921a8083a8563f2ecbc6 main.conf"