summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/netdata')
-rw-r--r--net-analyzer/netdata/netdata-1.4.0-r1.ebuild (renamed from net-analyzer/netdata/netdata-1.4.0.ebuild)11
-rw-r--r--net-analyzer/netdata/netdata-9999.ebuild11
2 files changed, 14 insertions, 8 deletions
diff --git a/net-analyzer/netdata/netdata-1.4.0.ebuild b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild
index 27cf2dcf3356..e2a78bc9ed58 100644
--- a/net-analyzer/netdata/netdata-1.4.0.ebuild
+++ b/net-analyzer/netdata/netdata-1.4.0-r1.ebuild
@@ -79,18 +79,21 @@ src_configure() {
--localstatedir=/var \
--with-user=${NETDATA_USER} \
$(use_enable nfacct plugin-nfacct) \
- $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \
$(use_with compression zlib)
}
src_install() {
default
- fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata
- fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/cache/netdata
+ 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 ${NETDATA_USER}:${NETDATA_GROUP} /usr/share/${PN}
+ fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN}
newinitd system/netdata-openrc ${PN}
systemd_dounit system/netdata.service
+ insinto /etc/netdata
+ doins system/netdata.conf
}
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild
index 27cf2dcf3356..e2a78bc9ed58 100644
--- a/net-analyzer/netdata/netdata-9999.ebuild
+++ b/net-analyzer/netdata/netdata-9999.ebuild
@@ -79,18 +79,21 @@ src_configure() {
--localstatedir=/var \
--with-user=${NETDATA_USER} \
$(use_enable nfacct plugin-nfacct) \
- $(use_enable cpu_flags_x86_sse2 sse) \
+ $(use_enable cpu_flags_x86_sse2 x86-sse) \
$(use_with compression zlib)
}
src_install() {
default
- fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata
- fowners ${NETDATA_USER}:${NETDATA_GROUP} /var/cache/netdata
+ 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 ${NETDATA_USER}:${NETDATA_GROUP} /usr/share/${PN}
+ fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN}
newinitd system/netdata-openrc ${PN}
systemd_dounit system/netdata.service
+ insinto /etc/netdata
+ doins system/netdata.conf
}