netdata: make_dirs -> /var/cache/netdata /var/log/netdata
This commit is contained in:
parent
1b4cbaeaae
commit
c9f3319767
2 changed files with 11 additions and 12 deletions
6
srcpkgs/netdata/files/netdata/run
Executable file → Normal file
6
srcpkgs/netdata/files/netdata/run
Executable file → Normal file
|
@ -1,8 +1,2 @@
|
||||||
#!/bin/sh
|
#!/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
|
exec chpst -u _netdata:_netdata netdata -D
|
||||||
|
|
|
@ -1,20 +1,25 @@
|
||||||
# Template file for 'netdata'
|
# Template file for 'netdata'
|
||||||
pkgname=netdata
|
pkgname=netdata
|
||||||
version=1.11.1
|
version=1.11.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
configure_args="--with-user=_netdata"
|
||||||
hostmakedepends="pkg-config autoconf automake"
|
hostmakedepends="pkg-config autoconf automake"
|
||||||
makedepends="libuuid-devel zlib-devel"
|
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"
|
short_desc="Real-time performance monitoring, done right"
|
||||||
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
||||||
license="GPL-3"
|
license="GPL-3.0-or-later"
|
||||||
homepage="http://my-netdata.io"
|
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
|
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() {
|
pre_configure() {
|
||||||
autoreconf -ivf
|
autoreconf -ivf
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue