summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2016-11-03 17:22:56 -0400
committerGöktürk Yüksek <gokturk@gentoo.org>2016-11-04 23:01:53 -0400
commit01aba5ed77096c427ce7bdf32fd9f895e54933cf (patch)
tree26c6ec982e53a7aece2a1b69c35ef8ba88d48820
parentdev-util/android-studio: also depend on other notify tools, bug 598722 (diff)
downloadgentoo-01aba5ed77096c427ce7bdf32fd9f895e54933cf.tar.gz
gentoo-01aba5ed77096c427ce7bdf32fd9f895e54933cf.tar.bz2
gentoo-01aba5ed77096c427ce7bdf32fd9f895e54933cf.zip
net-analyzer/netdata: fix sse flag, file permissons, install netdata.conf
See https://github.com/firehol/netdata/issues/1199 Gentoo-bug: 597382
-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
}