void-packages/srcpkgs/chronograf/template
2018-08-12 01:16:51 -07:00

37 lines
1.1 KiB
Bash

# Template file for 'chronograf'
pkgname=chronograf
version=1.6.1
revision=1
build_style=go
go_import_path="github.com/influxdata/${pkgname}"
go_package="${go_import_path}/cmd/chronograf"
go_ldflags="-X main.version=${version}"
hostmakedepends="dep go-bindata nodejs-lts yarn python"
system_accounts="_chronograf"
_chronograf_homedir="/var/lib/${pkgname}"
make_dirs="${_chronograf_homedir} 0755 _chronograf _chronograf"
short_desc="Open source monitoring and visualization UI for the TICK stack"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="AGPL-3.0"
homepage="https://www.influxdata.com/time-series-platform/chronograf/"
distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
checksum=218249f40b27ddad728bdf3893c295b1465fb0866c623805fadff98165084057
pre_build() {
cd $GOSRCPATH
dep ensure
cd $wrksrc/ui
yarn install
export PATH=$PATH:${wrksrc}/ui/node_modules/.bin
cd $wrksrc
make assets
}
post_install() {
vlicense LICENSE
vsv chronograf
vmkdir usr/share/chronograf/
vcopy ${wrksrc}/${build_wrksrc}/canned usr/share/chronograf/canned
}