kapacitor: create /var/log/kapacitor with make_dirs=

This commit is contained in:
maxice8 2019-01-16 11:23:43 -02:00 committed by maxice8
parent 24917dae41
commit 625eaa6b3d
2 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,2 @@
#!/bin/sh
mkdir -p /var/log/kapacitor
chown -R _kapacitor:_kapacitor /var/log/kapacitor
exec chpst -u _kapacitor:_kapacitor kapacitord --config /etc/kapacitor/kapacitor.conf 2>&1

View File

@ -1,15 +1,14 @@
# Template file for 'kapacitor'
pkgname=kapacitor
version=1.5.2
revision=1
build_style="go"
go_import_path="github.com/influxdata/kapacitor"
revision=2
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"
make_dirs="/var/lib/kapacitor 0755 _kapacitor _kapacitor"
conf_files="/etc/${pkgname}/${pkgname}.conf"
short_desc="Open source framework for alerting on time series data"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
@ -18,6 +17,10 @@ homepage="https://www.influxdata.com/time-series-platform/kapacitor/"
distfiles="https://github.com/influxdata/${pkgname}/archive/v${version}.tar.gz"
checksum=4805794672f07e364c9ab6e80147f340694d0c715975eb534056254fb5fe60a6
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.