void-packages/srcpkgs/telegraf/template
Michael Gehring 67d66ccd58 telegraf: rebuild with go-1.11
Closes: #2103 [via git-merge-pr]
2018-08-26 17:02:49 -07:00

26 lines
748 B
Bash

# Template file for 'telegraf'
pkgname=telegraf
version=1.7.3
revision=2
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=499e6e923a5cd46138cab08cc60f252aa5c3024f91c24ce33bbd9f3733790ec4
pre_build() {
cd $GOSRCPATH
gdm restore
}
post_install() {
vlicense LICENSE
vsv ${pkgname}
}