1 |
slords |
1.4 |
# $Id: mod_bwshare.spec,v 1.3 2008/04/02 15:22:03 slords Exp $ |
2 |
slords |
1.3 |
# Authority: slords |
3 |
slords |
1.2 |
# Name: Shad L. Lords |
4 |
|
|
|
5 |
slords |
1.1 |
Name: mod_bwshare |
6 |
|
|
Version: 0.2.0 |
7 |
|
|
Release: 1%{?dist} |
8 |
|
|
Summary: Bandwidth limiting for apache |
9 |
|
|
Group: System Environment/Daemons |
10 |
|
|
License: GPL |
11 |
|
|
URL: http://www.topology.org/src/bwshare/README.html |
12 |
|
|
Source0: http://www.topology.org/src/bwshare/mod_bwshare-%{version}.zip |
13 |
|
|
Source1: mod_bwshare.conf |
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
15 |
|
|
BuildRequires: httpd-devel |
16 |
|
|
Requires: httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing) |
17 |
|
|
|
18 |
|
|
%description |
19 |
|
|
The Apache module mod_bwshare throttles HTTP requests to Apache 1 and 2 |
20 |
|
|
servers for each client IP address independently. The mod_bwshare module |
21 |
|
|
accepts or rejects HTTP requests from each client IP address based on |
22 |
|
|
past downloads by that client IP address. If the HTTP client's download |
23 |
|
|
rate exceeds specified levels, the reponse to the HTTP client is an HTML |
24 |
|
|
warning message. A human browser will see a warning message indicating |
25 |
|
|
how long to wait. |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
%setup -q -n mod_bwshare-%{version} |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
%build |
32 |
|
|
/usr/sbin/apxs -c mod_bwshare.c |
33 |
|
|
|
34 |
|
|
%install |
35 |
|
|
rm -rf %{buildroot} |
36 |
|
|
install -D -m755 .libs/mod_bwshare.so %{buildroot}/%{_libdir}/httpd/modules/mod_bwshare.so |
37 |
|
|
install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/mod_bwshare.conf |
38 |
|
|
|
39 |
|
|
%clean |
40 |
|
|
rm -rf %{buildroot} |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
%files |
44 |
|
|
%defattr(-,root,root,-) |
45 |
|
|
%doc LICENCE doc.html README.html changes.html |
46 |
|
|
%{_libdir}/httpd/modules/mod_bwshare.so |
47 |
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_bwshare.conf |
48 |
|
|
|
49 |
|
|
%changelog |
50 |
|
|
* Sat Sep 8 2007 Shad L. Lords <slords@mail.com> 0.2.0-1 |
51 |
|
|
- Initial release |