summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-15 01:19:14 +0000
committerSam James <sam@gentoo.org>2021-03-15 01:19:14 +0000
commit6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d (patch)
tree2a2d61bb4591c937548a0ea66dc81ca1cc4d57ab /app-admin/sagan
parentx11-themes/papirus-icon-theme: Stabilize 20200901 ALLARCHES, #775959 (diff)
downloadgentoo-6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d.tar.gz
gentoo-6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d.tar.bz2
gentoo-6e7e6c33f5a2f02cf74a4851b858b63ab91e6e5d.zip
app-admin/sagan: fix log and runtime directory permissions
Closes: https://bugs.gentoo.org/775902 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/sagan')
-rw-r--r--app-admin/sagan/sagan-2.0.1-r4.ebuild (renamed from app-admin/sagan/sagan-2.0.1-r3.ebuild)10
1 files changed, 7 insertions, 3 deletions
diff --git a/app-admin/sagan/sagan-2.0.1-r3.ebuild b/app-admin/sagan/sagan-2.0.1-r4.ebuild
index 6632f1f5d4e4..50e4eef44849 100644
--- a/app-admin/sagan/sagan-2.0.1-r3.ebuild
+++ b/app-admin/sagan/sagan-2.0.1-r4.ebuild
@@ -79,11 +79,15 @@ src_install() {
-e "s:/var/run/sagan:${EPREFIX}/run/sagan:" \
"${ED}"/etc/sagan.yaml || die
- diropts -g sagan -o sagan -m 775
- keepdir /var/log/sagan
+ diropts -g sagan -o sagan -m 750
+ # bug #775902
+ keepdir /var/sagan/{,fifo}
+ keepdir /var/log/sagan/{,stats}
+
+ fowners sagan:sagan /var/log/sagan/{,stats}
touch "${ED}"/var/log/sagan/sagan.log || die
- chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die
+ fowners sagan:sagan /var/log/sagan/sagan.log || die
newinitd "${FILESDIR}"/sagan.init-r1 sagan
newconfd "${FILESDIR}"/sagan.confd sagan