diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2005-02-14 17:14:50 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2005-02-14 17:14:50 +0000 |
commit | 0cdeaaea30c6e078cdb623f18346d72f6bde49ce (patch) | |
tree | 2618c32fe23c2f0e3db9d45b6583fd49011d37f8 /net-www/mod_bw | |
parent | ~amd64 (diff) | |
download | historical-0cdeaaea30c6e078cdb623f18346d72f6bde49ce.tar.gz historical-0cdeaaea30c6e078cdb623f18346d72f6bde49ce.tar.bz2 historical-0cdeaaea30c6e078cdb623f18346d72f6bde49ce.zip |
initial ebuild for mod_bw
Package-Manager: portage-2.0.51.16
Diffstat (limited to 'net-www/mod_bw')
-rw-r--r-- | net-www/mod_bw/ChangeLog | 10 | ||||
-rw-r--r-- | net-www/mod_bw/Manifest | 15 | ||||
-rw-r--r-- | net-www/mod_bw/files/11_mod_bw.conf | 21 | ||||
-rw-r--r-- | net-www/mod_bw/files/digest-mod_bw-0.5_rc1 | 1 | ||||
-rw-r--r-- | net-www/mod_bw/metadata.xml | 9 | ||||
-rw-r--r-- | net-www/mod_bw/mod_bw-0.5_rc1.ebuild | 30 |
6 files changed, 86 insertions, 0 deletions
diff --git a/net-www/mod_bw/ChangeLog b/net-www/mod_bw/ChangeLog new file mode 100644 index 000000000000..646843e1314b --- /dev/null +++ b/net-www/mod_bw/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-www/mod_bw +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bw/ChangeLog,v 1.1 2005/02/14 17:14:50 hollow Exp $ + +*mod_bw-0.5_rc1 (14 Feb 2005) + + 14 Feb 2005; Benedikt Boehm <hollow@gentoo.org> +metadata.xml, + +files/11_mod_bw.conf, +mod_bw-0.5_rc1.ebuild: + initial ebuild for mod_bw + diff --git a/net-www/mod_bw/Manifest b/net-www/mod_bw/Manifest new file mode 100644 index 000000000000..3ae28ed39deb --- /dev/null +++ b/net-www/mod_bw/Manifest @@ -0,0 +1,15 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 41d6c0ba999d7b4af929e07368693a3f metadata.xml 261 +MD5 eb095528668f38d1814a450a718c1924 mod_bw-0.5_rc1.ebuild 720 +MD5 543d1b7f5a1d8bec846c74f1aea3550c ChangeLog 375 +MD5 3df4aa027274bb447f076aef3d2ba92f files/11_mod_bw.conf 518 +MD5 e115388638f885e2b23d665bae2bed12 files/digest-mod_bw-0.5_rc1 61 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.0 (GNU/Linux) + +iD8DBQFCENzumPFBzbX68WERAhS/AJ9fMfpYdmuvrUOkbiq6UoS8ANjuNwCfZ3dJ +3yK0sPcOJ0xx9ZB8D49tMbg= +=Uj5F +-----END PGP SIGNATURE----- diff --git a/net-www/mod_bw/files/11_mod_bw.conf b/net-www/mod_bw/files/11_mod_bw.conf new file mode 100644 index 000000000000..279e7b2d260b --- /dev/null +++ b/net-www/mod_bw/files/11_mod_bw.conf @@ -0,0 +1,21 @@ +<IfDefine BW> + <IfModule !mod_bw.c> + LoadModule bw_module modules/mod_bw.so + </IfModule> +</IfDefine> + +<IfModule mod_bandwidth.c> + # 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_bw/files/digest-mod_bw-0.5_rc1 b/net-www/mod_bw/files/digest-mod_bw-0.5_rc1 new file mode 100644 index 000000000000..76bcb471a979 --- /dev/null +++ b/net-www/mod_bw/files/digest-mod_bw-0.5_rc1 @@ -0,0 +1 @@ +MD5 ba35ef9676e29c7fbf200bce1b112c1e bw_mod-0.5rc1.tgz 12088 diff --git a/net-www/mod_bw/metadata.xml b/net-www/mod_bw/metadata.xml new file mode 100644 index 000000000000..22bb50eb3661 --- /dev/null +++ b/net-www/mod_bw/metadata.xml @@ -0,0 +1,9 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>apache</herd> + <maintainer> + <email>hollow@gentoo.org</email> + <name>Benedikt Boehm</name> + </maintainer> +</pkgmetadata> diff --git a/net-www/mod_bw/mod_bw-0.5_rc1.ebuild b/net-www/mod_bw/mod_bw-0.5_rc1.ebuild new file mode 100644 index 000000000000..78ab8b5973f7 --- /dev/null +++ b/net-www/mod_bw/mod_bw-0.5_rc1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/mod_bw/mod_bw-0.5_rc1.ebuild,v 1.1 2005/02/14 17:14:50 hollow Exp $ + +inherit eutils apache-module + +MYP="bw_mod-${PV}" + +DESCRIPTION="Bandwidth Management Module for Apache 2.0" +HOMEPAGE="http://www.ivn.cl/apache/" +SRC_URI="http://www.ivn.cl/apache/${MYP/_rc/rc}.tgz" + +KEYWORDS="~x86" +DEPEND="" +LICENSE="Apache-1.1" +SLOT="1" +IUSE="" + +APXS2_ARGS="-c ${PN}.c" +APACHE2_MOD_CONF="11_${PN}" +APACHE2_MOD_DEFINE="BW" + +need_apache2 + +S=${WORKDIR}/${MYP/_rc*} + +src_unpack() { + unpack ${A} || die "unpack failed" + mv ${S}/{${MYP/_rc/rc}.c,${PN}.c} || die "cannot move source file" +} |