diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-15 00:48:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-15 00:48:55 +0000 |
commit | bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19 (patch) | |
tree | f4833b49f98d2e1c6c6a4a6f180d0c919b6a5b84 /net-firewall/shapecfg | |
parent | Clean up ebuild, add a patch from Fedora, and add back in missing KEYWORDS al... (diff) | |
download | gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.tar.gz gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.tar.bz2 gentoo-2-bf37c6ed0f96d8a1f4aef5bbc7d7195d7c5a5d19.zip |
initial import
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'net-firewall/shapecfg')
-rw-r--r-- | net-firewall/shapecfg/ChangeLog | 8 | ||||
-rw-r--r-- | net-firewall/shapecfg/Manifest | 9 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/README.shaper | 50 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/digest-shapecfg-36 | 1 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch | 15 | ||||
-rw-r--r-- | net-firewall/shapecfg/shapecfg-36.ebuild | 35 |
6 files changed, 118 insertions, 0 deletions
diff --git a/net-firewall/shapecfg/ChangeLog b/net-firewall/shapecfg/ChangeLog new file mode 100644 index 000000000000..c62714a9ce93 --- /dev/null +++ b/net-firewall/shapecfg/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-firewall/shapecfg +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shapecfg/ChangeLog,v 1.1 2005/11/15 00:48:55 vapier Exp $ + +*shapecfg-36 (14 Nov 2005) + + 14 Nov 2005; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me. diff --git a/net-firewall/shapecfg/Manifest b/net-firewall/shapecfg/Manifest new file mode 100644 index 000000000000..57a2eddb06f2 --- /dev/null +++ b/net-firewall/shapecfg/Manifest @@ -0,0 +1,9 @@ +MD5 8736c01b98e3b29cc1c7c8dc4f4a5ad4 files/digest-shapecfg-36 58 +MD5 08be28303cba965376e110e0bb40ddc2 shapecfg-36.ebuild 350 +MD5 67ba4a8b44f135c870db3e0254972d7e shaper-2.2.12-0.7.3/README.shaper 1698 +MD5 c319f136059aadf7b3f0a38a12f3f3e0 shaper-2.2.12-0.7.3/cbq.init 33438 +MD5 ee95a14b9e626fce6e80795a19e42b02 shaper-2.2.12-0.7.3/shapecfg.spec 2323 +MD5 1e12f607a3b43e9fc9030d052c58054b shaper-2.2.12-0.7.3/shaper/Makefile 66 +MD5 0cb46229751f12c215a477044af2d6a2 shaper-2.2.12-0.7.3/shaper/shapecfg.c 1122 +MD5 d663363debcea6f0db4842a8e3c50b17 shaper-2.2.12-0.7.3/shapercfg-2.0.36-glibc.patch 372 +MD5 997119c6c98df70954e6e447c615b06f shaper-2.2.12-0.7.3/tcio7.ps.gz 73877 diff --git a/net-firewall/shapecfg/files/README.shaper b/net-firewall/shapecfg/files/README.shaper new file mode 100644 index 000000000000..60c2b4d6afb6 --- /dev/null +++ b/net-firewall/shapecfg/files/README.shaper @@ -0,0 +1,50 @@ + +Traffic Shaper For Linux + +This is the current ALPHA release of the traffic shaper for Linux. It works +within the following limits: + +o Minimum shaping speed is currently about 9600 baud (it can only + shape down to 1 byte per clock tick) + +o Maximum is about 256K, it will go above this but get a bit blocky. + +o If you ifconfig the master device that a shaper is attached to down + then your machine will follow. + +o The shaper must be a module. + + +Setup: + +A shaper device is configured using the shapeconfig program. +Typically you will do something like this + +shapecfg attach shaper0 eth1 +shapecfg speed shaper0 64000 +ifconfig shaper0 myhost netmask 255.255.255.240 broadcast 1.2.3.4.255 up +route add -net some.network netmask a.b.c.d dev shaper0 + +The shaper should have the same IP address as the device it is attached to +for normal use. + +Gotchas: + + The shaper shapes transmitted traffic. It's rather impossible to +shape received traffic except at the end (or a router) transmitting it. + + Gated/routed/rwhod/mrouted all see the shaper as an additional device +and will treat it as such unless patched. Note that for mrouted you can run +mrouted tunnels via a traffic shaper to control bandwidth usage. + + The shaper is device/route based. This makes it very easy to use +with any setup BUT less flexible. You may well want to combine this patch +with Mike McLagan 's patch to allow routes to be +specified by source/destination pairs. + + There is no "borrowing" or "sharing" scheme. This is a simple +traffic limiter. I'd like to implement Van Jacobson and Sally Floyd's CBQ +architecture into Linux one day (maybe in 2.1 sometime) and do this with +style. + + diff --git a/net-firewall/shapecfg/files/digest-shapecfg-36 b/net-firewall/shapecfg/files/digest-shapecfg-36 new file mode 100644 index 000000000000..9f114c3a6aab --- /dev/null +++ b/net-firewall/shapecfg/files/digest-shapecfg-36 @@ -0,0 +1 @@ +MD5 fc009b9dfc7b85722c73636c99be9a6b shaper.36.tar.gz 671 diff --git a/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch b/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch new file mode 100644 index 000000000000..3fb6a36ae50b --- /dev/null +++ b/net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch @@ -0,0 +1,15 @@ +--- shaper/shapecfg.c.glibc Tue Sep 29 20:24:02 1998 ++++ shaper/shapecfg.c Tue Sep 29 20:29:27 1998 +@@ -3,9 +3,9 @@ + #include <stdlib.h> + #include <linux/types.h> + #include <netinet/in.h> +-#include <linux/if.h> +-#include <linux/if_shaper.h> +-#include <linux/sockios.h> ++#include <net/if.h> ++#include <net/if_shaper.h> ++#include <sys/ioctl.h> + + void usage(char *name) + { diff --git a/net-firewall/shapecfg/shapecfg-36.ebuild b/net-firewall/shapecfg/shapecfg-36.ebuild new file mode 100644 index 000000000000..77769d75fcc3 --- /dev/null +++ b/net-firewall/shapecfg/shapecfg-36.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shapecfg/shapecfg-36.ebuild,v 1.1 2005/11/15 00:48:55 vapier Exp $ + +inherit eutils flag-o-matic + +DESCRIPTION="configuration tool for setting traffic bandwidth parameters" +HOMEPAGE="" +SRC_URI="mirror://gentoo/shaper.${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +DEPEND="" + +S=${WORKDIR}/shaper + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/shapercfg-2.0.36-glibc.patch + rm -f Makefile +} + +src_compile() { + append-flags -Wall + emake shapecfg || die +} + +src_install() { + dobin shapecfg || die + dodoc "${FILESDIR}"/README.shaper +} |