public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/btrbk] f43: Add logrotate file (RHBZ#2385266)
@ 2026-07-20 10:02 Juan Orti Alcaine
0 siblings, 0 replies; only message in thread
From: Juan Orti Alcaine @ 2026-07-20 10:02 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-20 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 10:02 [rpms/btrbk] f43: Add logrotate file (RHBZ#2385266) Juan Orti Alcaine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox