Changes of Revision 4
[-] | Added | apache2-mod_antiloris.spec |
x 1
2 +# 3 +# spec file for package apache2-mod_antiloris (Version 0.4) 4 +# 5 +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: apache2-mod_antiloris 15 +BuildRequires: apache2-devel 16 +%define modname mod_antiloris 17 +%define apxs /usr/sbin/apxs2 18 +%define apache apache2 19 +%define apache_libexecdir %(%{apxs} -q LIBEXECDIR) 20 +%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) 21 +%define apache_includedir %(%{apxs} -q INCLUDEDIR) 22 +%define apache_serverroot %(%{apxs} -q PREFIX) 23 +%define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) 24 +%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) 25 +Version: 0.4 26 +Release: 1 27 +License: Apache License 28 +Group: Productivity/Networking/Web/Servers 29 +Requires: apache2 %{apache_mmn} 30 +Autoreqprov: on 31 +Summary: Protect apache against the slowloris attack 32 +Url: http://localhost/mod_antiloris/ 33 +Source0: %{modname}-%{version}.tar.bz2 34 +Source1: mod_antiloris.conf.suse 35 +Source2: README 36 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 37 + 38 +%description 39 +With this module, apache is protected against the slowloris attack. The module limits the 40 +number of threads in READ state on a per IP basis. 41 + 42 +%debug_package 43 +%prep 44 +%setup -n %{modname}-%{version} 45 + 46 +%build 47 +%{apxs} -a -n %{modname}.so -c %{modname}.c 48 + 49 +%install 50 +rm -rf $RPM_BUILD_ROOT 51 +mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} 52 +mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/ 53 +cp -p .libs/%{modname}-2.0.so $RPM_BUILD_ROOT/%{apache_libexecdir}/%{modname}.so 54 +cp %{S:1} $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/%{modname}.conf 55 +install %{SOURCE1} README 56 + 57 +%files 58 +%defattr(-,root,root) 59 +%doc ChangeLog README 60 +%{apache_libexecdir}/*.so 61 +%config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf 62 + 63 +%changelog 64 +* Thu Jul 09 2010 Carsten Schoene <cs@linux-administrator.com> - 0.4-1 65 +- initial package (0.4) 66 |
||
[+] | Added | antiloris.conf.suse ^ |
@@ -0,0 +1,3 @@ +<IfModule mod_antiloris.c> + IPReadLimit 5 +</IfModule> |