Changes of Revision 11
[-] | Added | apache2-mod_antiloris-CentOS_6.spec |
x 1
2 +Summary: Protect apache against the slowloris attack. 3 +Name: mod_antiloris 4 +Version: 0.4 5 +Release: 1%{dist} 6 +Group: System Environment/Daemons 7 +URL: http://sourceforge.net/projects/mod-antiloris/ 8 +Source0: http://sourceforge.net/projects/mod-antiloris/mod_antiloris-%{version}.tar.bz2 9 +Source1: README 10 +Source2: antiloris.conf.rh 11 +License: Apache Licence 2.0 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-root 13 +BuildPrereq: httpd-devel >= 2.0.40-6 14 +Requires: httpd >= 2.0.40 15 + 16 +%description 17 +With this module, apache is protected against the slowloris attack. The module limits the 18 +number of threads in READ state on a per IP basis. 19 + 20 +%prep 21 +%setup -q 22 + 23 +%build 24 +%{_sbindir}/apxs -c %{name}.c 25 +mv .libs/%{name}.so . 26 +%{__strip} -g %{name}.so 27 + 28 +%install 29 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 30 +mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules 31 +install -m755 %{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules 32 + 33 +# Install the config file 34 +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d 35 +install -m 644 $RPM_SOURCE_DIR/antiloris.conf.rh \ 36 + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/antiloris.conf 37 + 38 +install %{SOURCE1} README 39 + 40 +%clean 41 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 42 + 43 +%files 44 +%defattr(644,root,root,755) 45 +%doc README 46 +%doc ChangeLog 47 +%attr(755,root,root)%{_libdir}/httpd/modules/*.so 48 +%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf 49 + 50 + 51 +%changelog 52 +* Tue Jul 28 2009 Kees Monshouwer <km|monshouwer_com> 0.4-1 53 +- Fixed ipv6 support. 54 + 55 +* Wed Jun 24 2009 Kees Monshouwer <km|monshouwer_com> 0.3-1 56 +- Changed loglevel from error to warn. 57 + 58 +* Wed Jun 24 2009 Kees Monshouwer <km|monshouwer_com> 0.2-1 59 +- Added module version to signature. 60 +- Code cleanup. 61 + 62 +* Sun Jun 21 2008 Kees Monshouwer <km|monshouwer_com> 0.1-1 63 +- Initial build. 64 |
||
[-] | Added | apache2-mod_antiloris-SL_6.spec ^ |
64 1
2 +Summary: Protect apache against the slowloris attack. 3 +Name: mod_antiloris 4 +Version: 0.4 5 +Release: 1%{dist} 6 +Group: System Environment/Daemons 7 +URL: http://sourceforge.net/projects/mod-antiloris/ 8 +Source0: http://sourceforge.net/projects/mod-antiloris/mod_antiloris-%{version}.tar.bz2 9 +Source1: README 10 +Source2: antiloris.conf.rh 11 +License: Apache Licence 2.0 12 +BuildRoot: %{_tmppath}/%{name}-%{version}-root 13 +BuildPrereq: httpd-devel >= 2.0.40-6 14 +Requires: httpd >= 2.0.40 15 + 16 +%description 17 +With this module, apache is protected against the slowloris attack. The module limits the 18 +number of threads in READ state on a per IP basis. 19 + 20 +%prep 21 +%setup -q 22 + 23 +%build 24 +%{_sbindir}/apxs -c %{name}.c 25 +mv .libs/%{name}.so . 26 +%{__strip} -g %{name}.so 27 + 28 +%install 29 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 30 +mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules 31 +install -m755 %{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules 32 + 33 +# Install the config file 34 +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d 35 +install -m 644 $RPM_SOURCE_DIR/antiloris.conf.rh \ 36 + $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/antiloris.conf 37 + 38 +install %{SOURCE1} README 39 + 40 +%clean 41 +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 42 + 43 +%files 44 +%defattr(644,root,root,755) 45 +%doc README 46 +%doc ChangeLog 47 +%attr(755,root,root)%{_libdir}/httpd/modules/*.so 48 +%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf 49 + 50 + 51 +%changelog 52 +* Tue Jul 28 2009 Kees Monshouwer <km|monshouwer_com> 0.4-1 53 +- Fixed ipv6 support. 54 + 55 +* Wed Jun 24 2009 Kees Monshouwer <km|monshouwer_com> 0.3-1 56 +- Changed loglevel from error to warn. 57 + 58 +* Wed Jun 24 2009 Kees Monshouwer <km|monshouwer_com> 0.2-1 59 +- Added module version to signature. 60 +- Code cleanup. 61 + 62 +* Sun Jun 21 2008 Kees Monshouwer <km|monshouwer_com> 0.1-1 63 +- Initial build. 64 |