27 lines
733 B
Bash
27 lines
733 B
Bash
# Template file for 'telegraf'
|
|
pkgname=telegraf
|
|
version=1.9.5
|
|
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=20674e508a072f927fe6cad7a78d3b7ef5372ff5529c277ea0ab9290d29213ee
|
|
system_accounts="_telegraf"
|
|
|
|
pre_build() {
|
|
cd $GOSRCPATH
|
|
dep ensure
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv ${pkgname}
|
|
}
|