1 |
slords |
1.1 |
Summary: Bandwidth administration module for the Apache Web server |
2 |
|
|
Name: mod_bw |
3 |
|
|
Version: 0.8 |
4 |
|
|
Release: 1%{?dist} |
5 |
|
|
License: Apache Software License |
6 |
|
|
Group: System Environment/Daemons |
7 |
|
|
URL: http://www.ivn.cl/apache/ |
8 |
|
|
Source0: http://www.ivn.cl/apache/files/source/%{name}-%{version}.tgz |
9 |
|
|
Source1: %{name}-0.8.conf |
10 |
|
|
Requires: httpd >= 2.0.0 |
11 |
|
|
BuildRequires: httpd-devel |
12 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
13 |
|
|
|
14 |
|
|
%description |
15 |
|
|
%{name} is a bandwidth administration module for the Apache Web server. |
16 |
|
|
The module has the following features: |
17 |
|
|
|
18 |
|
|
- Restrict the number of simultaneous connections per vhost/dir |
19 |
|
|
- Limit the bandwidth for files on vhost/dir |
20 |
|
|
|
21 |
|
|
%prep |
22 |
|
|
%setup -q -n %{name} |
23 |
|
|
|
24 |
|
|
%build |
25 |
|
|
%{_sbindir}/apxs -c %{name}.c |
26 |
|
|
|
27 |
|
|
%install |
28 |
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} |
29 |
|
|
|
30 |
|
|
%{__install} -d %{buildroot}%{_libdir}/httpd/modules |
31 |
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/httpd/conf.d |
32 |
|
|
%{__install} -m 0755 -p .libs/%{name}.so %{buildroot}%{_libdir}/httpd/modules/ |
33 |
|
|
%{__install} -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf |
34 |
|
|
|
35 |
|
|
%clean |
36 |
|
|
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} |
37 |
|
|
|
38 |
|
|
%files |
39 |
|
|
%defattr(-,root,root) |
40 |
|
|
%doc ChangeLog LICENSE TODO mod_bw.txt |
41 |
|
|
%{_libdir}/httpd/modules/%{name}.so |
42 |
|
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
43 |
|
|
|
44 |
|
|
%changelog |
45 |
|
|
* Sun Jul 29 2007 Shad L. Lords <slords@mail.com> 0.8-1 |
46 |
|
|
- Initial release |
47 |
|
|
|