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
|
|
|
|
revision=1
|
|
|
|
_commit=2eca970
|
2017-08-30 22:55:39 +02:00
|
|
|
build_style="go"
|
|
|
|
nocross=1
|
|
|
|
go_import_path="github.com/influxdata/${pkgname}"
|
|
|
|
build_wrksrc="go/src/${go_import_path}"
|
|
|
|
hostmakedepends="git nodejs yarn"
|
|
|
|
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="Nicklaus McClendon <nicklaus@kulinacs.com>"
|
|
|
|
license="MIT"
|
|
|
|
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-21 09:25:09 +01:00
|
|
|
# missing python dep and errors linking v8
|
|
|
|
broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/6213/steps/shell_3/logs/stdio"
|
|
|
|
|
2017-08-30 22:55:39 +02:00
|
|
|
do_extract() {
|
|
|
|
mkdir -p ${wrksrc}/${build_wrksrc}
|
|
|
|
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.tar.gz --strip-components=1 -C ${wrksrc}/${build_wrksrc}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
export GOPATH="/builddir/${pkgname}-${version}/go/"
|
|
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
|
|
make VERSION=${version} COMMIT=${_commit}
|
|
|
|
go install github.com/influxdata/chronograf/cmd/chronograf
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin /builddir/${pkgname}-${version}/go/bin/chronograf
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vsv chronograf
|
|
|
|
vmkdir /usr/share/chronograf/
|
|
|
|
vcopy ${wrksrc}/${build_wrksrc}/canned /usr/share/chronograf/canned
|
|
|
|
}
|