void-packages/srcpkgs/influxdb/template
Michael Aldridge 49fd46c89a influxdb: update to 1.7.8
Closes: #15049 [via git-merge-pr]
2019-10-03 22:06:07 -07:00

36 lines
1.1 KiB
Bash

# Template file for 'influxdb'
pkgname=influxdb
version=1.7.8
revision=1
build_style=go
go_import_path=github.com/influxdata/influxdb
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="dep"
short_desc="Scalable datastore for metrics, events, and real-time analytics"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MIT"
homepage="https://influxdata.com/time-series-platform/influxdb/"
changelog="https://raw.githubusercontent.com/influxdata/influxdb/master/CHANGELOG.md"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=ed52925bb71ca8912e4daecce66a4c32935f396cf3f021464aab99934b41db51
system_accounts="_influxdb"
_influxdb_homedir="/var/lib/influxdb"
make_dirs="${_influxdb_homedir} 0755 _influxdb _influxdb"
conf_files="/etc/${pkgname}/${pkgname}.conf"
pre_build() {
cd $GOSRCPATH
dep ensure
}
post_install() {
vlicense LICENSE
vsv ${pkgname}
vinstall etc/config.sample.toml 644 etc/${pkgname} ${pkgname}.conf
}