summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mod_bandwidth/files')
-rw-r--r--net-www/mod_bandwidth/files/10_mod_bandwidth.conf30
-rw-r--r--net-www/mod_bandwidth/files/11_mod_bandwidth.conf30
-rw-r--r--net-www/mod_bandwidth/files/digest-mod_bandwidth-0.11
-rw-r--r--net-www/mod_bandwidth/files/digest-mod_bandwidth-2.0.5-r11
-rw-r--r--net-www/mod_bandwidth/files/mod_bandwidth-0.1-register.patch19
-rw-r--r--net-www/mod_bandwidth/files/mod_bandwidth-2.0.5-register.patch20
6 files changed, 101 insertions, 0 deletions
diff --git a/net-www/mod_bandwidth/files/10_mod_bandwidth.conf b/net-www/mod_bandwidth/files/10_mod_bandwidth.conf
new file mode 100644
index 000000000000..70ced3dbcaf3
--- /dev/null
+++ b/net-www/mod_bandwidth/files/10_mod_bandwidth.conf
@@ -0,0 +1,30 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/files/10_mod_bandwidth.conf,v 1.1 2005/01/08 21:06:39 hollow Exp $
+
+<IfDefine BANDWIDTH>
+ <IfModule !mod_bandwidth.c>
+ LoadModule bandwidth_module modules/mod_bandwidth.so
+ </IfModule>
+</IfDefine>
+
+#
+# Syntax can be found at http://www.cohprog.com/v3/bandwidth/doc-en.html
+#
+<IfModule mod_bandwidth.c>
+ BandWidthDataDir /var/cache/mod_bandwidth
+
+ # This must be turned on for mod_bandwidth to actually do anything
+ # These directives can go inside a VirtualHost or Directory, etc...
+ #
+ # BandWidthModule On
+
+ # Limit 196.168.0.0/24 to 80KB/sec, with a minimum of 60KB/sec
+ #
+ # BandWidth 196.168.0 80000
+ # BandWidth 196.168.0 60000
+
+ # Everyone else shares 50KB/sec
+ #
+ # Bandwidth all 50000
+</IfModule>
diff --git a/net-www/mod_bandwidth/files/11_mod_bandwidth.conf b/net-www/mod_bandwidth/files/11_mod_bandwidth.conf
new file mode 100644
index 000000000000..62a8d55cef9a
--- /dev/null
+++ b/net-www/mod_bandwidth/files/11_mod_bandwidth.conf
@@ -0,0 +1,30 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bandwidth/files/11_mod_bandwidth.conf,v 1.1 2005/01/08 21:06:39 hollow Exp $
+
+<IfDefine BANDWIDTH>
+ <IfModule !mod_bandwidth.c>
+ LoadModule bw_module modules/mod_bandwidth.so
+ </IfModule>
+</IfDefine>
+
+#
+# Syntax can be found at http://www.cohprog.com/v3/bandwidth/doc-en.html
+#
+<IfModule mod_bandwidth.c>
+ BandWidthDataDir /var/cache/mod_bandwidth
+
+ # This must be turned on for mod_bandwidth to actually do anything
+ # These directives can go inside a VirtualHost or Directory, etc...
+ #
+ # BandWidthModule On
+
+ # Limit 196.168.0.0/24 to 80KB/sec, with a minimum of 60KB/sec
+ #
+ # BandWidth 196.168.0 80000
+ # BandWidth 196.168.0 60000
+
+ # Everyone else shares 50KB/sec
+ #
+ # Bandwidth all 50000
+</IfModule>
diff --git a/net-www/mod_bandwidth/files/digest-mod_bandwidth-0.1 b/net-www/mod_bandwidth/files/digest-mod_bandwidth-0.1
new file mode 100644
index 000000000000..b9e30608dd4f
--- /dev/null
+++ b/net-www/mod_bandwidth/files/digest-mod_bandwidth-0.1
@@ -0,0 +1 @@
+MD5 8a2efaee819f97e33aa352f630448b93 mod_bandwidth-0.1.tgz 11073
diff --git a/net-www/mod_bandwidth/files/digest-mod_bandwidth-2.0.5-r1 b/net-www/mod_bandwidth/files/digest-mod_bandwidth-2.0.5-r1
new file mode 100644
index 000000000000..318a048630c9
--- /dev/null
+++ b/net-www/mod_bandwidth/files/digest-mod_bandwidth-2.0.5-r1
@@ -0,0 +1 @@
+MD5 00f0905d777f79485beb428b53191ecf mod_bandwidth.c 43630
diff --git a/net-www/mod_bandwidth/files/mod_bandwidth-0.1-register.patch b/net-www/mod_bandwidth/files/mod_bandwidth-0.1-register.patch
new file mode 100644
index 000000000000..7da7391ec9d9
--- /dev/null
+++ b/net-www/mod_bandwidth/files/mod_bandwidth-0.1-register.patch
@@ -0,0 +1,19 @@
+diff -Nur mod_bandwidth-0.1/mod_bandwidth-0.1.c mod_bandwidth-0.1-register/mod_bandwidth-0.1.c
+--- mod_bandwidth-0.1/mod_bandwidth-0.1.c 2004-11-05 23:18:31.000000000 +0100
++++ mod_bandwidth-0.1-register/mod_bandwidth-0.1.c 2004-11-17 10:59:05.199819784 +0100
+@@ -340,6 +340,7 @@
+
+
+ #define VERSION 0.1
++#define VERSION_S "0.1"
+ #define CORE_PRIVATE
+
+ #include <time.h>
+@@ -1010,6 +1011,7 @@
+
+ ap_mpm_query(AP_MPMQ_HARD_LIMIT_THREADS, &thread_limit);
+ ap_mpm_query(AP_MPMQ_HARD_LIMIT_DAEMONS, &server_limit);
++ ap_add_version_component(p, "mod_bandwidth/"VERSION_S);
+ return OK;
+ }
+
diff --git a/net-www/mod_bandwidth/files/mod_bandwidth-2.0.5-register.patch b/net-www/mod_bandwidth/files/mod_bandwidth-2.0.5-register.patch
new file mode 100644
index 000000000000..9e5222d6ebb9
--- /dev/null
+++ b/net-www/mod_bandwidth/files/mod_bandwidth-2.0.5-register.patch
@@ -0,0 +1,20 @@
+--- mod_bandwidth.c.orig 2003-07-13 22:29:57.000000000 -0400
++++ mod_bandwidth.c 2003-07-13 22:30:49.000000000 -0400
+@@ -1236,9 +1236,16 @@
+ { NULL }
+ };
+
++#define MOD_BANDWIDTH_VERSION_S "2.0.4"
++
++void bandwidth_module_init(void)
++{
++ ap_add_version_component("mod_bandwidth/" MOD_BANDWIDTH_VERSION_S);
++}
++
+ module bandwidth_module = {
+ STANDARD_MODULE_STUFF,
+- NULL, /* initializer */
++ bandwidth_module_init, /* initializer */
+ create_bw_config, /* bw config creater */
+ NULL, /* bw merger --- default is to override */
+ create_bw_server_config, /* server config */