From 2d07810e66bc3900b7c2bf7446e0df910a5d7de5 Mon Sep 17 00:00:00 2001 From: athimm Date: Wed, 23 May 2007 10:48:26 +0000 Subject: [PATCH] Fix #240863 and #240920 --- .cvsignore | 1 + fail2ban-0.8.0-sshd.patch | 2 ++ fail2ban.spec | 11 +++++++++-- sources | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.cvsignore b/.cvsignore index 38e7fab..f6cfc27 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ fail2ban-0.8.0.tar.bz2 +fail2ban-logrotate diff --git a/fail2ban-0.8.0-sshd.patch b/fail2ban-0.8.0-sshd.patch index 8faa36a..ddac9e5 100644 --- a/fail2ban-0.8.0-sshd.patch +++ b/fail2ban-0.8.0-sshd.patch @@ -9,7 +9,9 @@ filter = sshd action = iptables[name=SSH, port=ssh, protocol=tcp] mail-whois[name=SSH, dest=yourmail@mail.com] +- mail-whois[name=SSH, dest=yourmail@mail.com] -logpath = /var/log/sshd.log ++ mail-whois[name=SSH, dest=root] +logpath = /var/log/secure maxretry = 5 diff --git a/fail2ban.spec b/fail2ban.spec index d0c00b6..207e36a 100644 --- a/fail2ban.spec +++ b/fail2ban.spec @@ -3,11 +3,12 @@ Summary: Ban IPs that make too many password failures Name: fail2ban Version: 0.8.0 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL Group: System Environment/Daemons URL: http://fail2ban.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +Source1: fail2ban-logrotate Patch0: fail2ban-0.8.0-init.patch Patch1: fail2ban-0.8.0-sshd.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -38,7 +39,8 @@ mkdir -p %{buildroot}%{_initdir} install -p -m 755 files/redhat-initd %{buildroot}%{_initdir}/fail2ban mkdir -p %{buildroot}%{_mandir}/man1 install -p -m 644 man/fail2ban*.1 %{buildroot}%{_mandir}/man1 - +mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d +install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/fail2ban %clean rm -rf %{buildroot} @@ -68,8 +70,13 @@ fi %config(noreplace) %{_sysconfdir}/fail2ban/jail.conf %config(noreplace) %{_sysconfdir}/fail2ban/action.d/*.conf %config(noreplace) %{_sysconfdir}/fail2ban/filter.d/*.conf +%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban %changelog +* Wed May 23 2007 Axel Thimm - 0.8.0-5 +- send mail to root; logrotate (Jonathan Underwood + ) + * Sat May 19 2007 Axel Thimm - 0.8.0-4 - Update to 0.8.0. - enable ssh by default, fix log file for ssh scanning, adjust python diff --git a/sources b/sources index 99dbd72..92b87fc 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 7988a65a978bc5c44a92aaf1dbdebcba fail2ban-0.8.0.tar.bz2 +b5dd7b5c95dcdbf1089f5c7d2641add9 fail2ban-logrotate