commit:     bc8427ffe1279b73d2b86427cf2e820ee4cd62dc
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 12 18:33:59 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Mon Oct 12 18:39:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc8427ff

net-p2p/syncthing: do not use fowners

/var/log/syncthing is used by the OpenRC init script to store stdout and
stderr of the daemon, and the script takes care of adjusting permissions
accordingly.

/var/lib/syncthing on the other hand is now owned by
acct-user/syncthing.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 net-p2p/syncthing/syncthing-1.10.0.ebuild | 3 +--
 net-p2p/syncthing/syncthing-1.7.1.ebuild  | 3 +--
 net-p2p/syncthing/syncthing-1.9.0.ebuild  | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/net-p2p/syncthing/syncthing-1.10.0.ebuild 
b/net-p2p/syncthing/syncthing-1.10.0.ebuild
index 4a502ea0754..c7768ce3ea7 100644
--- a/net-p2p/syncthing/syncthing-1.10.0.ebuild
+++ b/net-p2p/syncthing/syncthing-1.10.0.ebuild
@@ -602,8 +602,7 @@ src_install() {
        newconfd "${FILESDIR}/${PN}.confd" ${PN}
        newinitd "${FILESDIR}/${PN}.initd" ${PN}
 
-       keepdir /var/{lib,log}/${PN}
-       fowners ${PN}:${PN} /var/{lib,log}/${PN}
+       keepdir /var/log/${PN}
        insinto /etc/logrotate.d
        newins "${FILESDIR}/${PN}.logrotate" ${PN}
 

diff --git a/net-p2p/syncthing/syncthing-1.7.1.ebuild 
b/net-p2p/syncthing/syncthing-1.7.1.ebuild
index 625e4bd84cf..9fa34665d9b 100644
--- a/net-p2p/syncthing/syncthing-1.7.1.ebuild
+++ b/net-p2p/syncthing/syncthing-1.7.1.ebuild
@@ -554,8 +554,7 @@ src_install() {
        newconfd "${FILESDIR}/${PN}.confd" ${PN}
        newinitd "${FILESDIR}/${PN}.initd" ${PN}
 
-       keepdir /var/{lib,log}/${PN}
-       fowners ${PN}:${PN} /var/{lib,log}/${PN}
+       keepdir /var/log/${PN}
        insinto /etc/logrotate.d
        newins "${FILESDIR}/${PN}.logrotate" ${PN}
 

diff --git a/net-p2p/syncthing/syncthing-1.9.0.ebuild 
b/net-p2p/syncthing/syncthing-1.9.0.ebuild
index f3010346a5a..0eccebf086d 100644
--- a/net-p2p/syncthing/syncthing-1.9.0.ebuild
+++ b/net-p2p/syncthing/syncthing-1.9.0.ebuild
@@ -595,8 +595,7 @@ src_install() {
        newconfd "${FILESDIR}/${PN}.confd" ${PN}
        newinitd "${FILESDIR}/${PN}.initd" ${PN}
 
-       keepdir /var/{lib,log}/${PN}
-       fowners ${PN}:${PN} /var/{lib,log}/${PN}
+       keepdir /var/log/${PN}
        insinto /etc/logrotate.d
        newins "${FILESDIR}/${PN}.logrotate" ${PN}
 

Reply via email to