[fail2ban] Use Fedora paths Start after firewalld (bug #1067147)

Orion Poplawski orion at fedoraproject.org
Wed Mar 19 04:57:33 UTC 2014


commit 909f71303dec99e1551812b6cef4d6d8b879c5d3
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Tue Mar 18 22:57:27 2014 -0600

    Use Fedora paths
    Start after firewalld (bug #1067147)

 fail2ban.spec |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
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 <orion at cora.nwra.com> - 0.9-2
+- Use Fedora paths
+- Start after firewalld (bug #1067147)
+
 * Mon Mar 17 2014 Orion Poplawski <orion at cora.nwra.com> - 0.9-1
 - Update to 0.9
 


More information about the scm-commits mailing list