Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_qos
> apache2-mod_qos.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache2-mod_qos.spec of Package apache2-mod_qos
# # spec file for package apache2-mod_qos (Version 9.21) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org # # norootforbuild Name: apache2-mod_qos BuildRequires: apache2-devel pcre-devel openssl-devel %define modname mod_qos %define apxs /usr/sbin/apxs2 %define apache apache2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Version: 9.21 Release: 1 License: Apache License Group: Productivity/Networking/Web/Servers Requires: apache2 %{apache_mmn} Autoreqprov: on Summary: Protect apache against the slowloris attack Url: http://localhost/mod_qos/ Source0: %{modname}-%{version}.tar.bz2 Source1: mod_qos.conf.suse BuildRoot: %{_tmppath}/%{name}-%{version}-build %description With this module, apache is protected against the slowloris attack. The module limits the number of threads in READ state on a per IP basis. %debug_package %prep %setup -n %{modname}-%{version} %build cd apache2; %{apxs} -a -n %{modname}.so -c %{modname}.c cd ../tools ; make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/ mkdir -p $RPM_BUILD_ROOT/%{_sbindir} cd apache2; cp -p .libs/%{modname}.so $RPM_BUILD_ROOT/%{apache_libexecdir}/%{modname}.so || ls -al cd ../tools ; cp qslog $RPM_BUILD_ROOT/%{_sbindir}/qslog cp %{S:1} $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/%{modname}.conf %files %defattr(-,root,root) %doc README.TXT doc %{_sbindir}/qslog %{apache_libexecdir}/*.so %config(noreplace) %{apache_sysconfdir}/conf.d/%{modname}.conf %changelog * Thu Jul 08 2010 Carsten Schoene <cs@linux-administrator.com> - 9.21-1 - initial package (9.21)