From 909f71303dec99e1551812b6cef4d6d8b879c5d3 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 18 Mar 2014 22:57:27 -0600 Subject: [PATCH] Use Fedora paths Start after firewalld (bug #1067147) --- fail2ban.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fail2ban.spec b/fail2ban.spec index 8257e89..16317b3 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -1,7 +1,7 @@ Summary: Ban IPs that make too many password failures Name: fail2ban Version: 0.9 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: http://fail2ban.sourceforge.net/ Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -37,6 +37,10 @@ and shorewall respectively. %prep %setup -q +# Use Fedora paths +sed -i -e 's/^before = paths-.*/before = paths-fedora.conf/' config/jail.conf +# Start after firewalld (https://bugzilla.redhat.com/show_bug.cgi?id=1067147) +sed -i -e '/^After=/s/$/ firewalld.service/' files/fail2ban.service %build python setup.py build @@ -111,6 +115,10 @@ fi %changelog +* Tue Mar 18 2014 Orion Poplawski - 0.9-2 +- Use Fedora paths +- Start after firewalld (bug #1067147) + * Mon Mar 17 2014 Orion Poplawski - 0.9-1 - Update to 0.9