/[smecontribs]/rpms/mod_bwshare/contribs8/mod_bwshare.spec
ViewVC logotype

Annotation of /rpms/mod_bwshare/contribs8/mod_bwshare.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Wed Feb 24 18:39:40 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Maintained upstream

1 slords 1.6 # $Id: mod_bwshare.spec,v 1.5 2008/11/25 16:20:14 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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed