1 |
commit: bc8427ffe1279b73d2b86427cf2e820ee4cd62dc |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 12 18:33:59 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 12 18:39:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8427ff |
7 |
|
8 |
net-p2p/syncthing: do not use fowners |
9 |
|
10 |
/var/log/syncthing is used by the OpenRC init script to store stdout and |
11 |
stderr of the daemon, and the script takes care of adjusting permissions |
12 |
accordingly. |
13 |
|
14 |
/var/lib/syncthing on the other hand is now owned by |
15 |
acct-user/syncthing. |
16 |
|
17 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
18 |
|
19 |
net-p2p/syncthing/syncthing-1.10.0.ebuild | 3 +-- |
20 |
net-p2p/syncthing/syncthing-1.7.1.ebuild | 3 +-- |
21 |
net-p2p/syncthing/syncthing-1.9.0.ebuild | 3 +-- |
22 |
3 files changed, 3 insertions(+), 6 deletions(-) |
23 |
|
24 |
diff --git a/net-p2p/syncthing/syncthing-1.10.0.ebuild b/net-p2p/syncthing/syncthing-1.10.0.ebuild |
25 |
index 4a502ea0754..c7768ce3ea7 100644 |
26 |
--- a/net-p2p/syncthing/syncthing-1.10.0.ebuild |
27 |
+++ b/net-p2p/syncthing/syncthing-1.10.0.ebuild |
28 |
@@ -602,8 +602,7 @@ src_install() { |
29 |
newconfd "${FILESDIR}/${PN}.confd" ${PN} |
30 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
31 |
|
32 |
- keepdir /var/{lib,log}/${PN} |
33 |
- fowners ${PN}:${PN} /var/{lib,log}/${PN} |
34 |
+ keepdir /var/log/${PN} |
35 |
insinto /etc/logrotate.d |
36 |
newins "${FILESDIR}/${PN}.logrotate" ${PN} |
37 |
|
38 |
|
39 |
diff --git a/net-p2p/syncthing/syncthing-1.7.1.ebuild b/net-p2p/syncthing/syncthing-1.7.1.ebuild |
40 |
index 625e4bd84cf..9fa34665d9b 100644 |
41 |
--- a/net-p2p/syncthing/syncthing-1.7.1.ebuild |
42 |
+++ b/net-p2p/syncthing/syncthing-1.7.1.ebuild |
43 |
@@ -554,8 +554,7 @@ src_install() { |
44 |
newconfd "${FILESDIR}/${PN}.confd" ${PN} |
45 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
46 |
|
47 |
- keepdir /var/{lib,log}/${PN} |
48 |
- fowners ${PN}:${PN} /var/{lib,log}/${PN} |
49 |
+ keepdir /var/log/${PN} |
50 |
insinto /etc/logrotate.d |
51 |
newins "${FILESDIR}/${PN}.logrotate" ${PN} |
52 |
|
53 |
|
54 |
diff --git a/net-p2p/syncthing/syncthing-1.9.0.ebuild b/net-p2p/syncthing/syncthing-1.9.0.ebuild |
55 |
index f3010346a5a..0eccebf086d 100644 |
56 |
--- a/net-p2p/syncthing/syncthing-1.9.0.ebuild |
57 |
+++ b/net-p2p/syncthing/syncthing-1.9.0.ebuild |
58 |
@@ -595,8 +595,7 @@ src_install() { |
59 |
newconfd "${FILESDIR}/${PN}.confd" ${PN} |
60 |
newinitd "${FILESDIR}/${PN}.initd" ${PN} |
61 |
|
62 |
- keepdir /var/{lib,log}/${PN} |
63 |
- fowners ${PN}:${PN} /var/{lib,log}/${PN} |
64 |
+ keepdir /var/log/${PN} |
65 |
insinto /etc/logrotate.d |
66 |
newins "${FILESDIR}/${PN}.logrotate" ${PN} |