e5b0fe
Name:           mod_evasive
e5b0fe
Version:        1.10.1
31d2d1
Release:        19%{?dist}
e5b0fe
Summary:        Denial of Service evasion module for Apache
e5b0fe
e5b0fe
Group:          System Environment/Daemons
4072b8
License:        GPLv2+
e5b0fe
URL:            http://www.zdziarski.com/projects/mod_evasive/
e5b0fe
Source0:        http://www.zdziarski.com/projects/mod_evasive/mod_evasive_%{version}.tar.gz
e5b0fe
Source1:        mod_evasive.conf
e5b0fe
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e5b0fe
e5b0fe
BuildRequires:  httpd-devel
e5b0fe
Requires:       httpd
e5b0fe
Requires:       httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)
e5b0fe
e5b0fe
%description
e5b0fe
mod_evasive is an evasive maneuvers module for Apache to provide evasive 
e5b0fe
action in the event of an HTTP DoS or DDoS attack or brute force attack. It 
e5b0fe
is also designed to be a detection and network management tool, and can be 
e5b0fe
easily configured to talk to firewalls, routers, etc. mod_evasive presently 
e5b0fe
reports abuses via email and syslog facilities. 
e5b0fe
e5b0fe
e5b0fe
%prep
e5b0fe
%setup -q -n %{name}
e5b0fe
e5b0fe
e5b0fe
%build
Jan ONDREJ (SAL) b78253
# create apache httpd-2.4 version and compile it
Jan ONDREJ (SAL) b78253
sed 's/connection->remote_ip/connection->client_ip/' \
Jan ONDREJ (SAL) b78253
  < mod_evasive20.c > mod_evasive24.c
Jan ONDREJ (SAL) b78253
apxs -Wc,"%{optflags}" -c mod_evasive24.c
e5b0fe
e5b0fe
e5b0fe
%install
e5b0fe
rm -rf $RPM_BUILD_ROOT
e5b0fe
mkdir -pm 755 \
e5b0fe
    $RPM_BUILD_ROOT%{_libdir}/httpd/modules \
e5b0fe
    $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
Jan ONDREJ (SAL) b78253
install -pm 755 .libs/mod_evasive24.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules/
e5b0fe
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/
e5b0fe
e5b0fe
e5b0fe
%clean
e5b0fe
rm -rf $RPM_BUILD_ROOT
e5b0fe
e5b0fe
e5b0fe
%files
e5b0fe
%defattr(-,root,root,-)
e5b0fe
%doc README LICENSE CHANGELOG test.pl
e5b0fe
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*
e5b0fe
%{_libdir}/httpd/modules/*
e5b0fe
e5b0fe
e5b0fe
%changelog
31d2d1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-19
31d2d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
31d2d1
Jan ONDREJ (SAL) 2d2c61
* Mon Mar 03 2014 Jรกn ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.10.1-18
Jan ONDREJ (SAL) 2d2c61
- Rebuild for yum release changes. BZ#1072025
Jan ONDREJ (SAL) 2d2c61
7ec488
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-17
7ec488
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7ec488
8ffa40
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-16
8ffa40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8ffa40
Jan ONDREJ (SAL) 562277
* Mon Nov 26 2012 Jรกn ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.10.1-15
Jan ONDREJ (SAL) 562277
- fix configuration file for new version (#879269)
Jan ONDREJ (SAL) 562277
363433
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-14
363433
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
363433
Jan ONDREJ (SAL) b78253
* Sat Mar 31 2012 Jรกn ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.10.1-13
Jan ONDREJ (SAL) b78253
- adapt to httpd-2.4: changed remote_ip to client_ip
Jan ONDREJ (SAL) b78253
Jan ONDREJ (SAL) c103c2
* Thu Mar 29 2012 Jรกn ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.10.1-12
Jan ONDREJ (SAL) c103c2
- apxs moved to bindir, do not use sbindir macro
Jan ONDREJ (SAL) c103c2
Jan ONDREJ (SAL) c03784
* Tue Mar 27 2012 Jรกn ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.10.1-11
Jan ONDREJ (SAL) c03784
- Rebuild for new httpd-mmn
Jan ONDREJ (SAL) c03784
c10180
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-10
c10180
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c10180
9e35d8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-9
9e35d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9e35d8
4a8cff
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-8
4a8cff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4a8cff
e1e1ea
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-7
e1e1ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e1e1ea
4072b8
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.10.1-6
4072b8
- fix license tag
4072b8
bd492f
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.10.1-5.1
bd492f
- Autorebuild for GCC 4.3
bd492f
633168
* Wed Sep 05 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-4.1
633168
- Rebuild for APR changes
633168
2f08ae
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at="" fedoraproject="" dot="" org=""> - 1.10.1-4
2f08ae
- Rebuild for selinux ppc32 issue.
2f08ae
e5b0fe
* Tue Apr 10 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-3
e5b0fe
- Modify the URL and finally import into extras.
e5b0fe
e5b0fe
* Mon Jan 29 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-2
e5b0fe
- The source moved to another domain since last year.
e5b0fe
- use _sbindir macro for apxs.
e5b0fe
e5b0fe
* Tue Dec 06 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-1
e5b0fe
- Cleaning up description
e5b0fe
- Cleaning up install
e5b0fe
- Slight modification to default config (add DOSWhitelist entries)
e5b0fe
- Disttagging
e5b0fe
- Adding test.pl to docs
e5b0fe
e5b0fe
* Wed Nov 16 2005 Kosntantin Ryabitsev <icon@fedoraproject.org> - 1.10.1-0.1
e5b0fe
- Initial packaging.