void-packages/srcpkgs/telegraf/template

25 lines
749 B
Bash

# Template file for 'telegraf'
pkgname=telegraf
version=1.28.2
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}"
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/v${version}.tar.gz"
checksum=48418c1b2b3ddb6e507609d4d146c8e2226d65da2cc5cacf43d74ae8e450aeb3
system_accounts="_telegraf"
case "$XBPS_TARGET_MACHINE" in
arm*) go_ldflags+=" -linkmode=external";;
esac
post_install() {
vlicense LICENSE
vsv ${pkgname}
}