influxdb: template cleanup
This commit is contained in:
parent
4c89702578
commit
990079654b
|
@ -1,17 +1,18 @@
|
||||||
# Template file for 'influxdb'
|
# Template file for 'influxdb'
|
||||||
pkgname=influxdb
|
pkgname=influxdb
|
||||||
version=1.3.7
|
version=1.3.7
|
||||||
revision=1
|
revision=2
|
||||||
_branch=1.3
|
|
||||||
_commit=2d474a3
|
|
||||||
build_style=go
|
build_style=go
|
||||||
nocross=https://travis-ci.org/kulinacs/void-packages/jobs/258683433
|
|
||||||
go_import_path="github.com/influxdata/influxdb"
|
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"
|
hostmakedepends="git go-gdm"
|
||||||
makedepends="git"
|
|
||||||
system_accounts="_influxdb"
|
system_accounts="_influxdb"
|
||||||
_influxdb_homedir="/var/lib/${pkgname}"
|
_influxdb_homedir="/var/lib/influxdb"
|
||||||
make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb"
|
make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb"
|
||||||
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
||||||
short_desc="Scalable datastore for metrics, events, and real-time analytics"
|
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"
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
||||||
checksum=a07d3431e385569e7bc0d74261bb087d2fed97c2733cd2218aed5b9ed2050413
|
checksum=a07d3431e385569e7bc0d74261bb087d2fed97c2733cd2218aed5b9ed2050413
|
||||||
|
|
||||||
post_extract() {
|
|
||||||
local path="${GOPATH}/src/${go_import_path}"
|
|
||||||
mkdir -p "$(dirname ${path})"
|
|
||||||
ln -fs $PWD "${path}"
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
|
cd $GOSRCPATH
|
||||||
gdm restore
|
gdm restore
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
|
||||||
go install -ldflags="-X main.version=${version} -X main.branch=${_branch} -X main.commit=${_commit}" ./...
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vsv ${pkgname}
|
vsv ${pkgname}
|
||||||
|
|
Loading…
Reference in New Issue