void-packages/srcpkgs/chronograf/template

38 lines
1.1 KiB
Bash
Raw Normal View History

2017-08-30 22:55:39 +02:00
# Template file for 'chronograf'
pkgname=chronograf
2017-11-05 09:15:41 +01:00
version=1.3.10.0
2018-02-23 04:56:00 +01:00
revision=4
2017-11-27 02:31:20 +01:00
build_style=go
2017-08-30 22:55:39 +02:00
go_import_path="github.com/influxdata/${pkgname}"
2017-11-27 02:31:20 +01:00
go_package="${go_import_path}/cmd/chronograf"
go_ldflags="-X main.version=${version}"
hostmakedepends="dep go-bindata nodejs-lts yarn python"
2017-08-30 22:55:39 +02:00
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>"
2017-11-27 02:31:20 +01:00
license="AGPL-3.0"
2017-08-30 22:55:39 +02:00
homepage="https://www.influxdata.com/time-series-platform/chronograf/"
distfiles="https://github.com/influxdata/${pkgname}/archive/${version}.tar.gz"
2017-11-05 09:15:41 +01:00
checksum=73a82a1a9ae4c3f734f0469f2ccab1066fef526c5574c0d38d67c2afa7889811
2017-08-30 22:55:39 +02:00
2017-11-27 02:31:20 +01:00
pre_build() {
cd $GOSRCPATH
dep ensure
2017-11-21 09:25:09 +01:00
2017-11-27 02:31:20 +01:00
cd $wrksrc/ui
yarn install
export PATH=$PATH:${wrksrc}/ui/node_modules/.bin
2017-08-30 22:55:39 +02:00
2017-11-27 02:31:20 +01:00
cd $wrksrc
make assets
2017-08-30 22:55:39 +02:00
}
post_install() {
vlicense LICENSE
vsv chronograf
2017-11-27 02:31:20 +01:00
vmkdir usr/share/chronograf/
vcopy ${wrksrc}/${build_wrksrc}/canned usr/share/chronograf/canned
2017-08-30 22:55:39 +02:00
}