rpms/mod_cband/devel mod_cband.conf, NONE, 1.1 mod_cband.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael G. Fleming (mfleming) fedora-extras-commits at redhat.com
Fri Mar 17 23:24:27 UTC 2006


Author: mfleming

Update of /cvs/extras/rpms/mod_cband/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9435/devel

Modified Files:
	.cvsignore sources 
Added Files:
	mod_cband.conf mod_cband.spec 
Log Message:
auto-import mod_cband-0.9.7.2-3 on branch devel from mod_cband-0.9.7.2-3.src.rpm


--- NEW FILE mod_cband.conf ---

# This is an example config for the mod_cband bandwidth limiting module

# Load the module
LoadModule cband_module         modules/mod_cband.so

# This can will give you the bandwidth status.  You can append "?xml" to
# the end of the URI if you have an XML fetish (weirdo!) and want to see
# it in that format.

<Location /cband-status>
SetHandler cband-status
Order allow,deny
Allow from 127.0.0.1/32
</Location>

# This space intentionally left commented. See the docs for more examples,
# including but not limited to per-user limits.

# Speed limiting.

#<VirtualHost *:80>
#    DocumentRoot /var/www/xyz.org/
#    ServerName xyz.org
#    CustomLog /var/log/apache2/xyz.org.access combined
#    ErrorLog /var/log/apache2/xyz.org.access.error
#    RewriteEngine On
#    RewriteOptions inherit
#
#    # Maximal 1024kbps speed for this virtualhost
#    # Maximal 10 requests per second for this virtualhost
#    # Maximal 30 open connections for this virtualhost
#    CBandSpeed 1024 10 30
#    
#    # Maximal 10kB/s speed, 3 requests/s and 2 open connections for any
#    remote client
#    CBandRemoteSpeed 10kb/s 3 2
#    
#    # Maximal 20kB/s speed, 2 requests/s and 3 open connections for
#    remote
#    # clients from class googlebot_class :P
#    CBandClassRemoteSpeed googlebot_class 20kb/s 2 3
#</VirtualHost>

# Bandwidth quota

# Specify default 'bandwidth exceeded' location
# CBandDefaultExceededURL	http://grumblesmurf.org/bandwidth_exceeded.html
#
#<VirtualHost *:80>
#    DocumentRoot /var/www/xyz.org/
#    ServerName xyz.org
#    CustomLog /var/log/apache2/xyz.org.access combined
#    ErrorLog /var/log/apache2/xyz.org.access.error
#    RewriteEngine On
#    RewriteOptions inherit
#
#    # 100MB virtualhost bandwidth limit
#    CBandLimit 100000
#
#    # redirect to http://abc.org/bandwidth_exceeded.html
#    # when the limit has been reached
#    CBandExceededURL http://abc.org/bandwidth_exceeded.html
#
#    # virtualhost's scoreboard file
#    CBandScoreboard /var/run/apache2/xyz.org.scoreboard
#    
#    # a period of time after which the scoreboard will be cleared (30
#    minutes) 
#    CBandPeriod 30M
#</VirtualHost>


--- NEW FILE mod_cband.spec ---
Name:           mod_cband
Version:        0.9.7.2
Release:        3%{?dist}
Summary:        Bandwidth limiting for virtual hosts
Group:          System Environment/Daemons
License:        GPL
URL:            http://cband.linux.pl/
Source0:        http://cband.linux.pl/download/mod-cband-%{version}.tgz
Source1:        mod_cband.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  httpd-devel
Requires:   	httpd httpd-mmn = %([ -a %{_includedir}/httpd/.mmn ] && cat %{_includedir}/httpd/.mmn || echo missing)    

%description
mod_cband is an Apache 2 module provided to solve the problem of limiting
virtualhosts bandwidth usage. When the configured virtualhost's transfer limit
is exceeded, mod_cband will redirect all further requests to a location
specified in the configuration file.


%prep
%setup -q -n mod-cband-%{version}


%build
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
install -D -m755 src/.libs/mod_cband.so %{buildroot}/%{_libdir}/httpd/modules/mod_cband.so
install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/mod_cband.conf

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc AUTHORS Changes INSTALL LICENSE conf *.copyright
%{_libdir}/httpd/modules/mod_cband.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_cband.conf

%changelog
* Thu Mar 17 2006 Michael Fleming <mfleming+rpm at enlartenment.com> 0.9.7.2-3
- Config file set not to be replaced on upgrade
- Status information URI limited to localhost by default.

* Tue Mar 7 2006 Michael Fleming <mfleming+rpm at enlartenment.com> 0.9.7.2-2
- Updated tarball from upstream (some very small changes in code,
  essentially in integer handling).
- Example config file added and installed in Apache's conf.d dir

* Sun Feb 5 2006 Michael Fleming <mfleming+rpm at enlartenment.com> 0.9.7.2-1
- Fedora Extras review release.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mod_cband/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	17 Mar 2006 23:23:14 -0000	1.1
+++ .cvsignore	17 Mar 2006 23:24:26 -0000	1.2
@@ -0,0 +1 @@
+mod-cband-0.9.7.2.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mod_cband/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	17 Mar 2006 23:23:14 -0000	1.1
+++ sources	17 Mar 2006 23:24:26 -0000	1.2
@@ -0,0 +1 @@
+d261161ac299437a1342b12ae586cab9  mod-cband-0.9.7.2.tgz




More information about the fedora-extras-commits mailing list