35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
# Template file for 'kapacitor'
|
|
pkgname=kapacitor
|
|
version=1.5.3
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/influxdata/kapacitor
|
|
go_package="${go_import_path}/cmd/kapacitor
|
|
${go_import_path}/cmd/kapacitord"
|
|
go_ldflags="-X main.version=${version}"
|
|
system_accounts="_kapacitor"
|
|
_kapacitor_homedir="/var/lib/kapacitor"
|
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
|
short_desc="Open source framework for alerting on time series data"
|
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://www.influxdata.com/time-series-platform/kapacitor/"
|
|
distfiles="https://github.com/influxdata/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=b105de1a8ed9613157db807756cbcc6ebe4813de2730bbeddc3fcba002c52342
|
|
|
|
make_dirs="
|
|
/var/lib/kapacitor 0755 _kapacitor _kapacitor
|
|
/var/log/kapacitor 0755 _kapacitor _kapacitor"
|
|
|
|
# This package has a Gopkg.lock and a Gopkg.toml, but for build the
|
|
# required files are part of the dist tarball. Thus we don't run dep
|
|
# ensure for this build.
|
|
|
|
post_install() {
|
|
vsv kapacitor
|
|
vmkdir etc/kapacitor/
|
|
vmkdir usr/share/bash-completion/completions
|
|
vlicense LICENSE
|
|
vcopy etc/kapacitor/kapacitor.conf etc/kapacitor/kapacitor.conf
|
|
vcopy usr/share/bash-completion/completions/kapacitor usr/share/bash-completion/completions/kapacitor
|
|
}
|