aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2023-12-25 04:30:39 +0300
committerAndreas Sturmlechner <asturm@gentoo.org>2024-02-22 11:28:14 +0100
commitca0238e2836bfc97cd7c4d3813189ff60519d2c8 (patch)
treebe87c98064c5bd71898c54e7e6297b1e30be1dfb /x11-misc
parentdev-qt/qtwayland: Re-add IUSE=vulkan to 5.15.12 (diff)
downloadqt-ca0238e2836bfc97cd7c4d3813189ff60519d2c8.tar.gz
qt-ca0238e2836bfc97cd7c4d3813189ff60519d2c8.tar.bz2
qt-ca0238e2836bfc97cd7c4d3813189ff60519d2c8.zip
x11-misc/sddm: add logrotate config
Bug: https://bugs.gentoo.org/565862 Signed-off-by: Alexander Golubev <fatzer2@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34466 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/sddm/files/sddm.logrotate5
-rw-r--r--x11-misc/sddm/sddm-9999.ebuild8
2 files changed, 12 insertions, 1 deletions
diff --git a/x11-misc/sddm/files/sddm.logrotate b/x11-misc/sddm/files/sddm.logrotate
new file mode 100644
index 00000000..ba6199c4
--- /dev/null
+++ b/x11-misc/sddm/files/sddm.logrotate
@@ -0,0 +1,5 @@
+/var/log/sddm.log {
+ missingok
+ notifempty
+ copytruncate
+}
diff --git a/x11-misc/sddm/sddm-9999.ebuild b/x11-misc/sddm/sddm-9999.ebuild
index bc905539..f210629a 100644
--- a/x11-misc/sddm/sddm-9999.ebuild
+++ b/x11-misc/sddm/sddm-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -101,6 +101,12 @@ src_install() {
insinto /etc/sddm.conf.d/
doins "${S}"/01gentoo.conf
+
+ # with systemd logs are sent to journald, so no point to bother in that case
+ if ! use systemd; then
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/sddm.logrotate" sddm
+ fi
}
pkg_postinst() {