netdata: make_dirs -> /var/cache/netdata /var/log/netdata

This commit is contained in:
maxice8 2019-01-17 10:18:56 -02:00 committed by maxice8
parent 1b4cbaeaae
commit c9f3319767
2 changed files with 11 additions and 12 deletions

6
srcpkgs/netdata/files/netdata/run Executable file → Normal file
View File

@ -1,8 +1,2 @@
#!/bin/sh
for f in cache log; do
mkdir -p /var/${f}/netdata
chown -R _netdata:_netdata /var/${f}/netdata
done
exec chpst -u _netdata:_netdata netdata -D

View File

@ -1,20 +1,25 @@
# Template file for 'netdata'
pkgname=netdata
version=1.11.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-user=_netdata"
hostmakedepends="pkg-config autoconf automake"
makedepends="libuuid-devel zlib-devel"
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
configure_args="--with-user=_netdata"
short_desc="Real-time performance monitoring, done right"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-3"
license="GPL-3.0-or-later"
homepage="http://my-netdata.io"
distfiles="https://github.com/netdata/netdata/archive/v$version.tar.gz"
distfiles="https://github.com/netdata/netdata/archive/v${version}.tar.gz"
checksum=909388511729d1e3b064d33fcf7ba65e27439787b449303ba8458c300ec46500
system_accounts="_netdata"
conf_files="/etc/${pkgname}/*.conf"
make_dirs="
/var/cache/netdata 0755 _netdata _netdata
/var/log/netdata 0755 _netdata _netdata"
pre_configure() {
autoreconf -ivf
}