36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'chronograf'
|
|
pkgname=chronograf
|
|
version=1.10.1
|
|
revision=2
|
|
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 yarn python3"
|
|
short_desc="Open source monitoring and visualization UI for the TICK stack"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="AGPL-3.0-or-later"
|
|
homepage="https://www.influxdata.com/time-series-platform/chronograf/"
|
|
changelog="https://raw.githubusercontent.com/influxdata/chronograf/master/CHANGELOG.md"
|
|
distfiles="https://github.com/influxdata/chronograf/archive/${version}.tar.gz"
|
|
checksum=d2fb4759f4f94d81dcde5c50fece46febd7f610ee7d9373fd000d7a9986a52d8
|
|
system_accounts="_chronograf"
|
|
_chronograf_homedir="/var/lib/${pkgname}"
|
|
make_dirs="${_chronograf_homedir} 0755 _chronograf _chronograf"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) broken="yarn not available" ;;
|
|
ppc*) broken="ftbfs in some js module" ;;
|
|
esac
|
|
|
|
pre_build() {
|
|
CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" make .jsdep assets
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv chronograf
|
|
vmkdir usr/share/chronograf/
|
|
vcopy ${wrksrc}/${build_wrksrc}/canned usr/share/chronograf/canned
|
|
}
|