public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Juan Orti Alcaine <jortialc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/btrbk] f43: Add logrotate file (RHBZ#2385266)
Date: Mon, 20 Jul 2026 10:02:32 GMT	[thread overview]
Message-ID: <178454175264.1.5210956221592709380.rpms-btrbk-f3140b989a76@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/btrbk
Branch : f43
Commit : f3140b989a76de54883f8feb05763462d4e0fa1d
Author : Juan Orti Alcaine <jortialc@redhat.com>
Date   : 2025-10-05T19:30:52+02:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/btrbk/c/f3140b989a76de54883f8feb05763462d4e0fa1d?branch=f43

Log:
Add logrotate file (RHBZ#2385266)

---
diff --git a/btrbk-logrotate b/btrbk-logrotate
new file mode 100644
index 0000000..faa08da
--- /dev/null
+++ b/btrbk-logrotate
@@ -0,0 +1,11 @@
+/var/log/btrbk.log {
+  compress
+  dateext
+  notifempty
+  missingok
+  nocreate
+
+  maxage 60
+  rotate 30
+  size 10M
+}

diff --git a/btrbk.spec b/btrbk.spec
index 05c822d..294de3f 100644
--- a/btrbk.spec
+++ b/btrbk.spec
@@ -5,12 +5,13 @@
 
 Name: btrbk
 Version: 0.32.6
-Release: 8%{?dist}
+Release: 9%{?dist}
 Summary: Tool for creating snapshots and remote backups of btrfs sub-volumes
 # Automatically converted from old format: GPLv3+ - review is highly recommended.
 License: GPL-3.0-or-later
 URL: https://digint.ch/btrbk/
 Source0: https://digint.ch/download/%{name}/releases/%{name}-%{version}.tar.xz
+Source1: btrbk-logrotate
 BuildArch: noarch
 BuildRequires: python3-devel
 %if 0%{?rhel} && 0%{?rhel} == 7
@@ -54,6 +55,7 @@ find %{buildroot}%{_datadir}/%{name} -type f -exec sed -i '1s=^#!/usr/bin/\(pyth
 %else
 %py3_shebang_fix %{buildroot}%{_datadir}/%{name}
 %endif
+install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
 
 
 %post
@@ -76,6 +78,7 @@ find %{buildroot}%{_datadir}/%{name} -type f -exec sed -i '1s=^#!/usr/bin/\(pyth
 %license COPYING
 %dir %{_sysconfdir}/%{name}
 %{_sysconfdir}/%{name}/btrbk.conf.example
+%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
 %{_unitdir}/%{name}.*
 %{_datadir}/%{name}
 %{_bindir}/btrbk
@@ -89,6 +92,9 @@ find %{buildroot}%{_datadir}/%{name} -type f -exec sed -i '1s=^#!/usr/bin/\(pyth
 
 
 %changelog
+* Sun Oct 05 2025 Juan Orti Alcaine <jortialc@redhat.com> - 0.32.6-9
+- Add logrotate file (RHBZ#2385266)
+
 * Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.6-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
 

                 reply	other threads:[~2026-07-20 10:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178454175264.1.5210956221592709380.rpms-btrbk-f3140b989a76@fedoraproject.org \
    --to=jortialc@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox