27 lines
736 B
Bash
27 lines
736 B
Bash
# Template file for 'telegraf'
|
|
pkgname=telegraf
|
|
version=1.9.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="dep"
|
|
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=5a71c5fbe1b691bc64e56898d28238d2ad9ef0db7b9d816724b6b8c872cdecd2
|
|
|
|
pre_build() {
|
|
cd $GOSRCPATH
|
|
dep ensure
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv ${pkgname}
|
|
}
|