summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2017-10-04 09:19:52 -0400
committerCraig Andrews <candrews@gentoo.org>2017-10-04 09:20:22 -0400
commit5c4ecb46864837ce4c6025910db09de686c5c071 (patch)
treef77d342185f5fd8142d96e113ad0eda00419adb7 /net-analyzer/netdata/netdata-9999.ebuild
parentnet-fs/samba: Raise dev util cmocka =>1.1.1 dependency. (diff)
downloadgentoo-5c4ecb46864837ce4c6025910db09de686c5c071.tar.gz
gentoo-5c4ecb46864837ce4c6025910db09de686c5c071.tar.bz2
gentoo-5c4ecb46864837ce4c6025910db09de686c5c071.zip
net-analyzer/netdata: openrc and systemd fixes
Create the var/cache/netdata directory if it doesn't already exist in the systemd script Fix the path to the netdata executable in the openrc script Eliminate bashisms in openrc script Gentoo-bug: 633380 Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'net-analyzer/netdata/netdata-9999.ebuild')
-rw-r--r--net-analyzer/netdata/netdata-9999.ebuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild
index e2948db1d764..7c343955b897 100644
--- a/net-analyzer/netdata/netdata-9999.ebuild
+++ b/net-analyzer/netdata/netdata-9999.ebuild
@@ -90,8 +90,12 @@ src_configure() {
src_install() {
default
+ rm -rf "${D}/var/cache/netdata" || die
+
+ # Remove unneeded .keep files
+ find "${ED}" -name ".keep" -delete || die
+
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata
- fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/cache/netdata
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata
fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN}