1 |
commit: ed8d384791a44541c68ffde982d93d6f656d45c7 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 1 16:35:35 2018 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 1 16:37:56 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed8d3847 |
7 |
|
8 |
net-analyzer/netdata: keep /var/{log,lib}/netdata |
9 |
|
10 |
Closes: https://bugs.gentoo.org/655930 |
11 |
Package-Manager: Portage-2.3.44, Repoman-2.3.10 |
12 |
|
13 |
.../netdata/{netdata-9999.ebuild => netdata-1.10.0-r1.ebuild} | 7 +++++-- |
14 |
net-analyzer/netdata/netdata-9999.ebuild | 7 +++++-- |
15 |
2 files changed, 10 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-1.10.0-r1.ebuild |
18 |
similarity index 93% |
19 |
copy from net-analyzer/netdata/netdata-9999.ebuild |
20 |
copy to net-analyzer/netdata/netdata-1.10.0-r1.ebuild |
21 |
index 7c343955b89..d22fa18925f 100644 |
22 |
--- a/net-analyzer/netdata/netdata-9999.ebuild |
23 |
+++ b/net-analyzer/netdata/netdata-1.10.0-r1.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Copyright 1999-2018 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=6 |
30 |
@@ -90,13 +90,16 @@ src_configure() { |
31 |
src_install() { |
32 |
default |
33 |
|
34 |
- rm -rf "${D}/var/cache/netdata" || die |
35 |
+ rm -rf "${D}/var/cache" || die |
36 |
|
37 |
# Remove unneeded .keep files |
38 |
find "${ED}" -name ".keep" -delete || die |
39 |
|
40 |
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
41 |
+ keepdir /var/log/netdata |
42 |
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata |
43 |
+ keepdir /var/lib/netdata |
44 |
+ keepdir /var/lib/netdata/registry |
45 |
|
46 |
fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN} |
47 |
|
48 |
|
49 |
diff --git a/net-analyzer/netdata/netdata-9999.ebuild b/net-analyzer/netdata/netdata-9999.ebuild |
50 |
index 7c343955b89..d22fa18925f 100644 |
51 |
--- a/net-analyzer/netdata/netdata-9999.ebuild |
52 |
+++ b/net-analyzer/netdata/netdata-9999.ebuild |
53 |
@@ -1,4 +1,4 @@ |
54 |
-# Copyright 1999-2017 Gentoo Foundation |
55 |
+# Copyright 1999-2018 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
|
58 |
EAPI=6 |
59 |
@@ -90,13 +90,16 @@ src_configure() { |
60 |
src_install() { |
61 |
default |
62 |
|
63 |
- rm -rf "${D}/var/cache/netdata" || die |
64 |
+ rm -rf "${D}/var/cache" || die |
65 |
|
66 |
# Remove unneeded .keep files |
67 |
find "${ED}" -name ".keep" -delete || die |
68 |
|
69 |
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/log/netdata |
70 |
+ keepdir /var/log/netdata |
71 |
fowners -Rc ${NETDATA_USER}:${NETDATA_GROUP} /var/lib/netdata |
72 |
+ keepdir /var/lib/netdata |
73 |
+ keepdir /var/lib/netdata/registry |
74 |
|
75 |
fowners -Rc root:${NETDATA_GROUP} /usr/share/${PN} |