summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/flower')
-rw-r--r--dev-python/flower/files/flower.logrotated7
-rw-r--r--dev-python/flower/flower-0.8.4.ebuild2
2 files changed, 9 insertions, 0 deletions
diff --git a/dev-python/flower/files/flower.logrotated b/dev-python/flower/files/flower.logrotated
new file mode 100644
index 000000000000..7a0ce640a908
--- /dev/null
+++ b/dev-python/flower/files/flower.logrotated
@@ -0,0 +1,7 @@
+/var/log/flower/flower.log {
+ su flower flower
+ missingok
+ size 5M
+ rotate 3
+ compress
+}
diff --git a/dev-python/flower/flower-0.8.4.ebuild b/dev-python/flower/flower-0.8.4.ebuild
index 2feb9ea58f00..4a2a0e77cd3c 100644
--- a/dev-python/flower/flower-0.8.4.ebuild
+++ b/dev-python/flower/flower-0.8.4.ebuild
@@ -44,6 +44,8 @@ src_install() {
systemd_dounit "${FILESDIR}/${PN}.service"
keepdir /var/log/${PN}
fowners ${PN}:${PN} /var/log/${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
}
python_install() {