From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8BDCA158090 for ; Wed, 18 May 2022 07:13:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C993AE07AE; Wed, 18 May 2022 07:13:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2708E07AE for ; Wed, 18 May 2022 07:13:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E57143418E2 for ; Wed, 18 May 2022 07:13:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B609389 for ; Wed, 18 May 2022 07:13:49 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1652857559.bd1911fdc84b38dfd4136b8986b49940bc34c946.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/ejabberd/files/, net-im/ejabberd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/ejabberd/ejabberd-22.05-r1.ebuild net-im/ejabberd/ejabberd-22.05.ebuild net-im/ejabberd/files/ejabberd-22.05.logrotate X-VCS-Directories: net-im/ejabberd/ net-im/ejabberd/files/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: bd1911fdc84b38dfd4136b8986b49940bc34c946 X-VCS-Branch: master Date: Wed, 18 May 2022 07:13:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca01f34f-ca63-46ee-bc01-70302cc7a697 X-Archives-Hash: 376befc8ef3308d19ec32717526c6b55 commit: bd1911fdc84b38dfd4136b8986b49940bc34c946 Author: Florian Schmaus gentoo org> AuthorDate: Wed May 18 07:03:41 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed May 18 07:05:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd1911fd net-im/ejabberd: bring back logrotate Bug: https://bugs.gentoo.org/841976 Signed-off-by: Florian Schmaus gentoo.org> .../{ejabberd-22.05.ebuild => ejabberd-22.05-r1.ebuild} | 3 +++ net-im/ejabberd/files/ejabberd-22.05.logrotate | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/net-im/ejabberd/ejabberd-22.05.ebuild b/net-im/ejabberd/ejabberd-22.05-r1.ebuild similarity index 98% rename from net-im/ejabberd/ejabberd-22.05.ebuild rename to net-im/ejabberd/ejabberd-22.05-r1.ebuild index 029431d351cb..eae32ae4c02d 100644 --- a/net-im/ejabberd/ejabberd-22.05.ebuild +++ b/net-im/ejabberd/ejabberd-22.05-r1.ebuild @@ -168,6 +168,9 @@ src_install() { newinitd "${FILESDIR}/${PN}-22.05.initd" "${PN}" systemd_dounit "${PN}.service" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}-22.05.logrotate" "${PN}" + keepdir /var/{lib,log}/ejabberd } diff --git a/net-im/ejabberd/files/ejabberd-22.05.logrotate b/net-im/ejabberd/files/ejabberd-22.05.logrotate new file mode 100644 index 000000000000..fd51673fc428 --- /dev/null +++ b/net-im/ejabberd/files/ejabberd-22.05.logrotate @@ -0,0 +1,13 @@ +/var/log/ejabberd/*.log { + su ejabberd ejabberd + weekly + rotate 4 + missingok + nocreate + sharedscripts + notifempty + compress + postrotate + /usr/sbin/ejabberdctl reopen-log > /dev/null 2>&1 || true + endscript +}