influxdb: template cleanup

This commit is contained in:
Michael Aldridge 2017-11-26 17:34:10 -08:00
parent 4c89702578
commit 990079654b
1 changed files with 9 additions and 17 deletions

View File

@ -1,17 +1,18 @@
# Template file for 'influxdb'
pkgname=influxdb
version=1.3.7
revision=1
_branch=1.3
_commit=2d474a3
revision=2
build_style=go
nocross=https://travis-ci.org/kulinacs/void-packages/jobs/258683433
go_import_path="github.com/influxdata/influxdb"
build_wrksrc="_build-${pkgname}-xbps/src/${go_import_path}"
go_package="${go_import_path}/cmd/influx
${go_import_path}/cmd/influxd
${go_import_path}/cmd/influx_tsm
${go_import_path}/cmd/influx_inspect
${go_import_path}/cmd/influx_stress"
go_ldflags="-X main.version=${version}"
hostmakedepends="git go-gdm"
makedepends="git"
system_accounts="_influxdb"
_influxdb_homedir="/var/lib/${pkgname}"
_influxdb_homedir="/var/lib/influxdb"
make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb"
conf_files="/etc/${pkgname}/${pkgname}.conf"
short_desc="Scalable datastore for metrics, events, and real-time analytics"
@ -21,20 +22,11 @@ homepage="https://influxdata.com/time-series-platform/influxdb/"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=a07d3431e385569e7bc0d74261bb087d2fed97c2733cd2218aed5b9ed2050413
post_extract() {
local path="${GOPATH}/src/${go_import_path}"
mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}"
}
pre_build() {
cd $GOSRCPATH
gdm restore
}
do_build() {
go install -ldflags="-X main.version=${version} -X main.branch=${_branch} -X main.commit=${_commit}" ./...
}
post_install() {
vlicense LICENSE
vsv ${pkgname}