Author: oden
Date: Mon Feb 12 13:57:10 2007
New Revision: 118970
Added:
packages/cooker/apache-mod_bwshare/current/SOURCES/77_mod_bwshare.conf
packages/cooker/apache-mod_bwshare/current/SOURCES/mod_bwshare-0.2.0.zip
(contents, props changed)
packages/cooker/apache-mod_bwshare/current/SOURCES/mod_bwshare-0.2.0.zip.asc
Removed:
packages/cooker/apache-mod_bwshare/current/SOURCES/77_mod_bwshare.conf.bz2
packages/cooker/apache-mod_bwshare/current/SOURCES/bwshare-0.1.9.zip
packages/cooker/apache-mod_bwshare/current/SOURCES/bwshare-0.1.9.zip.asc
Modified:
packages/cooker/apache-mod_bwshare/current/SPECS/apache-mod_bwshare.spec
Log:
- 0.2.0
Added: packages/cooker/apache-mod_bwshare/current/SOURCES/77_mod_bwshare.conf
==============================================================================
--- (empty file)
+++ packages/cooker/apache-mod_bwshare/current/SOURCES/77_mod_bwshare.conf
Mon Feb 12 13:57:10 2007
@@ -0,0 +1,37 @@
+<IfDefine HAVE_BWSHARE>
+ <IfModule !mod_bwshare.c>
+ LoadModule bwshare_module extramodules/mod_bwshare.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_bwshare.c>
+
+ # Some bandwidth control parameters.
+ # 0.067 hits per second is *slow*.
+ # Use only if your server has a 33.6K modem
+ # BW_tx1cred_rate 0.067
+ # 2 hits per second makes more sense with broadband
+ BW_tx1cred_rate 2
+ # Max files served after user has used all his bandwidth.
+ BW_tx1debt_max 31
+ # Rate in bytes/sec
+ # (ie: 8K/sec)
+ BW_tx2cred_rate 8192
+ # Max bytes served after user has used all his bandwidth.
+ # (ie: 1 meg)
+ BW_tx2debt_max 1048580
+
+ <Location /bwshare-info>
+ SetHandler bwshare-info
+ </Location>
+
+ <Location /bwshare-trace>
+ SetHandler bwshare-trace
+ </Location>
+
+ # <Directory />
+ # AddHandler bwshare-info bws
+ # </Directory>
+
+</IfModule>
+
Added: packages/cooker/apache-mod_bwshare/current/SOURCES/mod_bwshare-0.2.0.zip
==============================================================================
Binary file. No diff available.
Added:
packages/cooker/apache-mod_bwshare/current/SOURCES/mod_bwshare-0.2.0.zip.asc
==============================================================================
--- (empty file)
+++
packages/cooker/apache-mod_bwshare/current/SOURCES/mod_bwshare-0.2.0.zip.asc
Mon Feb 12 13:57:10 2007
@@ -0,0 +1,8 @@
+-----BEGIN PGP SIGNATURE-----
+Version: PGPfreeware 5.0i for non-commercial use
+MessageID: KAClWKubk6dgGfvZDfGGLZRR/bVfIy3m
+
+iQA/AwUAROWwlX1WEhvTYzKeEQLKDACg/lSnVjNbOsCDv1mzHuU3Qm5JsiIAniay
+QGjc3ZuIAawuHaFVjWl41z3Z
+=SRPo
+-----END PGP SIGNATURE-----
Modified:
packages/cooker/apache-mod_bwshare/current/SPECS/apache-mod_bwshare.spec
==============================================================================
--- packages/cooker/apache-mod_bwshare/current/SPECS/apache-mod_bwshare.spec
(original)
+++ packages/cooker/apache-mod_bwshare/current/SPECS/apache-mod_bwshare.spec
Mon Feb 12 13:57:10 2007
@@ -5,14 +5,14 @@
Summary: Bandwidth throttling and balancing by client IP address
Name: apache-%{mod_name}
-Version: 0.1.9
-Release: %mkrel 2
+Version: 0.2.0
+Release: %mkrel 1
Group: System/Servers
License: Artistic
URL: http://www.topology.org/src/bwshare/README.html
-Source0: http://www.topology.org/src/bwshare/bwshare-%{version}.zip
-Source1: http://www.topology.org/src/bwshare/bwshare-%{version}.zip.asc
-Source2: %{mod_conf}.bz2
+Source0: http://www.topology.org/src/bwshare/%{mod_name}-%{version}.zip
+Source1:
http://www.topology.org/src/bwshare/%{mod_name}-%{version}.zip.asc
+Source2: %{mod_conf}
BuildRequires: unzip
Requires(pre): rpm-helper
Requires(postun): rpm-helper
@@ -28,26 +28,22 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
-The Apache shaping module "bwshare" uses a form of "statistical
-shaping". This means that the software measures the statistical
-behaviour of the subscriber in the past, and uses this as a basis
-for controlling the current access to resources by the user.
-
-The purpose of this module is to give the web site operator some
-control over bandwidth utilization by individual client hosts. The
-"bwshare" module temporarily blocks access by excessive users.
-This is aimed especially at users who download whole websites at
-great speed. Excessive speed is considered bad etiquette for
-search engine robots.
+The Apache shaping module "bwshare" uses a form of "statistical shaping". This
+means that the software measures the statistical behaviour of the subscriber in
+the past, and uses this as a basis for controlling the current access to
+resources by the user.
+
+The purpose of this module is to give the web site operator some control over
+bandwidth utilization by individual client hosts. The "bwshare" module
+temporarily blocks access by excessive users. This is aimed especially at users
+who download whole websites at great speed. Excessive speed is considered bad
+etiquette for search engine robots.
%prep
-%setup -q -n src
+%setup -q
-cp modules/bwshare/doc.html .
-cp modules/bwshare/LICENCE .
-cp modules/bwshare/README.html .
-cp modules/bwshare/%{mod_name}.c .
+cp %{SOURCE2} %{mod_conf}
# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
@@ -64,23 +60,11 @@
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
-bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
+install -m0644 %{mod_conf}
%{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version}
%{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}
-cat > README.%{name} <<EOF
-NOTE!
-
-It's crucial that forward and reverse DNS lookups works
-perfectly on the host running this module. If, not apache
-won't start unless for example ServerName is 127.0.0.1.
-
---
-Regards // Oden Eriksson
-
-EOF
-
%post
if [ -f %{_var}/lock/subsys/httpd ]; then
%{_initrddir}/httpd restart 1>&2;
@@ -98,7 +82,7 @@
%files
%defattr(-,root,root)
-%doc doc.html LICENCE README.*
+%doc LICENCE README.html changes.html doc.html
%attr(0644,root,root) %config(noreplace)
%{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*