void-packages/srcpkgs/telegraf/template

27 lines
748 B
Bash

# Template file for 'telegraf'
pkgname=telegraf
version=1.5.0
revision=4
build_style="go"
go_import_path="github.com/influxdata/telegraf"
go_package="${go_import_path}/cmd/telegraf"
go_ldflags="-X main.version=${version}"
hostmakedepends="go-gdm git"
system_accounts="_telegraf"
short_desc="The plugin-driven server agent for collecting & reporting metrics"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="MIT"
homepage="https://www.influxdata.com/time-series-platform/telegraf/"
distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
checksum=56fc495bf2d2e1d9ff55e05896b15617f5e552bb7626a7c95c4a8922ef723c34
pre_build() {
cd $GOSRCPATH
gdm restore
}
post_install() {
vlicense LICENSE
vsv ${pkgname}
}