Logoj0ke.net Open Build Service > Projects > Apache:Modules > apache2-mod_qos > apache2-mod_qos-RHEL_5.spec
Sign Up | Log In

File apache2-mod_qos-RHEL_5.spec of Package apache2-mod_qos (Revision 2)

Currently displaying revision 2, show latest

x
 
1
Summary:    Protect apache against the slowloris attack.
2
Name:       mod_qos
3
Version:    9.21
4
Release:    1%{dist}
5
Group:      System Environment/Daemons
6
URL:        http://localhost/mod_qos/
7
Source0:    http://localhost/mod_qos/mod_qos-%{version}.tar.bz2
8
Source1:    mod_qos.conf.rh
9
License:    Apache Licence 2.0
10
BuildRoot:  %{_tmppath}/%{name}-%{version}-root
11
BuildPrereq:    httpd-devel >= 2.9.210-6 pcre-devel
12
Requires:   httpd >= 2.9.210
13
14
%description
15
With this module, apache is protected against the slowloris attack. The module limits the
16
number of threads in READ state on a per IP basis. 
17
18
%prep
19
%setup -q
20
21
%build
22
cd apache2
23
%{_sbindir}/apxs -c %{name}.c
24
mv .libs/%{name}.so .
25
%{__strip} -g %{name}.so
26
cd ../tools
27
make
28
29
%install
30
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
31
mkdir -p $RPM_BUILD_ROOT%{_libdir}/httpd/modules
32
install -m755 %{name}.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
33
install -D -m755 tools/qslog $RPM_BUILD_ROOT%{_sbindir}/qslog
34
35
# Install the config file
36
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
37
install -m 644 $RPM_SOURCE_DIR/mod_qos.conf.rh \
38
    $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/mod_qos.conf
39
    
40
%clean
41
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
42
43
%files
44
%defattr(644,root,root,755)
45
%doc README.TXT
46
%doc doc
47
%attr(755,root,root)%{_libdir}/httpd/modules/*.so
48
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf
49
%{_sbindir}/qslog
50
51
%changelog
52
* Thu Jul 08 2010 Carstne Schoene <cs@linux-administrator.com> - 9.21-1
53
- initial build
54