void-packages/srcpkgs/telegraf/template
2018-06-16 19:48:27 -07:00

26 lines
748 B
Bash

# Template file for 'telegraf'
pkgname=telegraf
version=1.7.0
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="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=27e1e2ffd74d80baa16ea99601c3895fa3643375de6049bad5c08d1f35b1f63d
pre_build() {
cd $GOSRCPATH
gdm restore
}
post_install() {
vlicense LICENSE
vsv ${pkgname}
}