From 04c18b4f10ff4d616e344a27bde8029cdfca4faa Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sun, 27 Mar 2016 11:28:56 -0600 Subject: [PATCH] Use %{_tmpfilesdir} for systemd tmpfile config --- fail2ban.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fail2ban.spec b/fail2ban.spec index 90e01a5..adbe7e6 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -1,7 +1,7 @@ Summary: Daemon to ban hosts that cause multiple authentication errors Name: fail2ban Version: 0.9.4 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2+ URL: http://fail2ban.sourceforge.net/ Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -169,8 +169,8 @@ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d install -p -m 644 files/fail2ban-logrotate %{buildroot}%{_sysconfdir}/logrotate.d/fail2ban install -d -m 0755 %{buildroot}%{_localstatedir}/run/fail2ban/ install -d -m 0755 %{buildroot}%{_localstatedir}/lib/fail2ban/ -mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d -install -p -m 0644 files/fail2ban-tmpfiles.conf %{buildroot}%{_sysconfdir}/tmpfiles.d/fail2ban.conf +mkdir -p %{buildroot}%{_tmpfilesdir} +install -p -m 0644 files/fail2ban-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/fail2ban.conf # Remove non-Linux actions rm %{buildroot}%{_sysconfdir}/%{name}/action.d/*ipfw.conf rm %{buildroot}%{_sysconfdir}/%{name}/action.d/{ipfilter,pf,ufw}.conf @@ -246,7 +246,7 @@ fi %exclude %{_sysconfdir}/fail2ban/action.d/shorewall.conf %exclude %{_sysconfdir}/fail2ban/jail.d/*.conf %config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban -%config(noreplace) %{_sysconfdir}/tmpfiles.d/fail2ban.conf +%{_tmpfilesdir}/fail2ban.conf %dir %{_localstatedir}/lib/fail2ban/ %dir %{_localstatedir}/run/fail2ban/ @@ -273,6 +273,9 @@ fi %changelog +* Sun Mar 27 2016 Orion Poplawski - 0.9.4-4 +- Use %%{_tmpfilesdir} for systemd tmpfile config + * Wed Mar 9 2016 Orion Poplawski - 0.9.4-3 - No longer need to add After=firewalld.service (bug #1301910)