void-packages/srcpkgs/telegraf/template
2019-04-17 07:26:05 -03:00

26 lines
734 B
Bash

# Template file for 'telegraf'
pkgname=telegraf
version=1.10.3
revision=1
build_style=go
go_import_path=github.com/influxdata/telegraf
go_package="${go_import_path}/cmd/telegraf"
go_ldflags="-X main.version=${version}"
hostmakedepends="dep"
short_desc="Plugin-driven server agent for collecting & reporting metrics"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="https://www.influxdata.com/time-series-platform/telegraf/"
distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
checksum=656ba709e7b66e6ed0d67f3f946efa35f32fc1ae3b94f1c5f84275b42f9bef1d
system_accounts="_telegraf"
pre_build() {
cd $GOSRCPATH
dep ensure
}
post_install() {
vlicense LICENSE
vsv ${pkgname}
}