diff --git a/srcpkgs/influxdb/template b/srcpkgs/influxdb/template index cbcfd5ef98a..12f6ff02323 100644 --- a/srcpkgs/influxdb/template +++ b/srcpkgs/influxdb/template @@ -1,46 +1,42 @@ # Template file for 'influxdb' pkgname=influxdb -version=1.2.0 -revision=6 +version=1.3.5 +revision=1 +_branch=1.3 +_commit=9d90010 build_style=go -hostmakedepends="git-perl mercurial" +nocross=https://travis-ci.org/kulinacs/void-packages/jobs/258683433 go_import_path="github.com/influxdata/influxdb" -go_package="${go_import_path}/cmd/influx - ${go_import_path}/cmd/influxd - ${go_import_path}/cmd/influx_inspect - ${go_import_path}/cmd/influx_stress - ${go_import_path}/cmd/influx_tsm" +build_wrksrc="_build-${pkgname}-xbps/src/${go_import_path}" +hostmakedepends="git go-gdm" +makedepends="git" +system_accounts="_influxdb" +_influxdb_homedir="/var/lib/${pkgname}" +make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb" +conf_files="/etc/${pkgname}/${pkgname}.conf" short_desc="Scalable datastore for metrics, events, and real-time analytics" -maintainer="Farhad Shahbazi " +maintainer="Nicklaus McClendon " license="MIT" homepage="https://influxdata.com/time-series-platform/influxdb/" distfiles="https://${go_import_path}/archive/v${version}.tar.gz" -checksum=366bfd12ab943cf08e56d000ee72dada40cab9adf2da098cde4333a204e6879e - -system_accounts="_influxdb" -influxdb_homedir="/var/lib/$pkgname" -influxdb_shell="/bin/false" - -conf_files="/etc/influxdb/influxdb.conf" -make_dirs="$influxdb_homedir 0755 _influxdb _influxdb" - -broken="https://build.voidlinux.eu/builders/x86_64_builder/builds/974/steps/shell_3/logs/stdio" +checksum=2271c52932486731cb132cf0bf094cbecf4bd26bea01d8f986e4e50739778577 post_extract() { - mkdir -p $GOPATH/src/github.com/influxdata - ln -s $PWD $GOPATH/src/$go_import_path + local path="${GOPATH}/src/${go_import_path}" + mkdir -p "$(dirname ${path})" + ln -fs $PWD "${path}" } -pre_install() { - rm -f $GOPATH/bin/gdm - rm -f $GOPATH/bin/stress_test_server - rm -f $GOPATH/bin/test_client - rm -f $GOPATH/bin/urlgen +pre_build() { + gdm restore +} + +do_build() { + go install -ldflags="-X main.version=${version} -X main.branch=${_branch} -X main.commit=${_commit}" ./... } post_install() { - vsv $pkgname - - vinstall etc/config.sample.toml 644 etc/influxdb influxdb.conf vlicense LICENSE + vsv ${pkgname} + vinstall etc/config.sample.toml 644 etc/${pkgname} ${pkgname}.conf }