diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-firewall/shapecfg |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-firewall/shapecfg')
-rw-r--r-- | net-firewall/shapecfg/Manifest | 7 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/README.shaper | 50 | ||||
-rw-r--r-- | net-firewall/shapecfg/files/shapercfg-2.0.36-glibc.patch | 15 | ||||
-rw-r--r-- | net-firewall/shapecfg/metadata.xml | 8 | ||||
-rw-r--r-- | net-firewall/shapecfg/shapecfg-36.ebuild | 34 |
5 files changed, 114 insertions, 0 deletions
diff --git a/net-firewall/shapecfg/Manifest b/net-firewall/shapecfg/Manifest new file mode 100644 index 000000000000..dcd266cc39bb --- /dev/null +++ b/net-firewall/shapecfg/Manifest @@ -0,0 +1,7 @@ +AUX README.shaper 1698 SHA256 d642f4db8392a4603fbe28c120ae0febad6e1ad1a62e680835227af35c787ab9 SHA512 1c71dec95441defe5353a481639788a024a4bdff413958362989c784eeeecc098f4edea7a94f5c643cd83fd0ec8a24c321985579596c766e468f34e9b1c74f47 WHIRLPOOL bad2ce469b90ea8335716003d48d83b20714ebb637a129cc04e5391e612d903981dcb66462e297fb9002f20af5fb6ada707d793710a153d75b835bd22db2ca78 +AUX shapercfg-2.0.36-glibc.patch 372 SHA256 d1eb3d35c96747a6d79ae1cebd3cbd47e068584c618b65d956683962b501081b SHA512 d9fae6594a0992fda9cc11c9c395be37f72ea8e2f3cfdf05a4657f98dfec8787f031c4b1a2725b970a1c6467c60e682beb5478e6bce1e987ddbde531d693ce42 WHIRLPOOL 0926277f936b508c90cfdc2f3bb5bce8b819ad71d9e7b5213c8b54b49067f7a4dfc473701f361c07195c19ec648b78be5a9dac49c10af77df17646e2a7bbd496 +DIST shaper.36.tar.gz 671 SHA256 33abccecf7628da63e668042b3f6d5ac94df6036f8194d86d233964f15400323 SHA512 5e2e7149b68e8256ec7d38c9bf5bd9de53867a9b5c859610ed21c3edbef458ba28e9bb3a3d95ee2f048483b5ca3020d474eeb15bac161eb14b3726212b9216fe WHIRLPOOL 7625cae34a0877b4eb550c182f3f93c8856f60d4a4ddcd3f9b808ace12b195d6ea7416ffef1fcbff95750207a4b529118b7e5f26ac06c26c34c138135c2a1b91 +EBUILD shapecfg-36.ebuild 721 SHA256 e561d07926b44d4bbe34bea1ed19f5a25deab4145ff7b47e68b989354b113900 SHA512 76fb88e64aba6aef8d3d7161ea1af9ad960981d5c64db2b2c4889080bfcce13ecbd646b5d492fb30ac4127b61649b501721e6f93c6f5188799ee1202fe7595ba WHIRLPOOL f9efe35508cffcc9e6c964231672e2fb15add01e9357f38017e2e10e8d899fda895e04d9e32c0b0e0972fb457157c24fc59a78cc6b5c60021ceaa59f1b5787ea +MISC ChangeLog 3238 SHA256 0025f4233c428d9fa75426dcf59b6a44d98b225166837cb2aca82495a589725c SHA512 8f752fee7816af4d007ad0811852627de20eac61595a8c29bcbd45be30bc1b101d6cd45f628231f4abb151b4caddbc43fe432b380cd6e1892061d1a0a6a12ab4 WHIRLPOOL c44133668de869fa714205c3dadcad9aa01ab96e4217252158763746ee4f07b2f1c10d231ef5786b11693547e33802c7c978c4386a0a8940d9e97108376f0853 +MISC ChangeLog-2015 626 SHA256 fea5ab9e2457fc7c399a9ba67fc9dd58709a8909060a1839d4cee411bcabea46 SHA512 dc82980b3a58896c6c699497fd82455c980882d163b1ac21f4ba2c319e2ec57100237931a89f4d96752e41705aaf311d618daf7662b05f736340ba1197286645 WHIRLPOOL 7f33597481753f796d141d6db54bdc1a68729c4a80f0c35abd92afef057393334d1d1b5fb1500af7bffef4b085f8045ff1ef5fd6cd0116222c95f7bfa65b56f5 +MISC metadata.xml 244 SHA256 ffdbeb4c645efad13e8aeb89f087143dae128eb717af78d46c47ffb81c11cb50 SHA512 d922092251c07becd0effd06de2ed063038394b7396c9a303e4e234ac514ec7a3c9f00e76503f4bb435ac5dce5401f3d05495def1ce94d63fa9d823dda1e3a54 WHIRLPOOL 90572f1bcc80e6f3ff795d929c267dd746b59b111f4f97342e700ee2f8f1f0ceb644f34a04a83f80d3cb6a5c9bba60f0c677a5cfbd1c910a68e855a7b6cfd578 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/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/metadata.xml b/net-firewall/shapecfg/metadata.xml new file mode 100644 index 000000000000..30d444a41f42 --- /dev/null +++ b/net-firewall/shapecfg/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">cbqinit</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-firewall/shapecfg/shapecfg-36.ebuild b/net-firewall/shapecfg/shapecfg-36.ebuild new file mode 100644 index 000000000000..862128700d3d --- /dev/null +++ b/net-firewall/shapecfg/shapecfg-36.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils flag-o-matic + +DESCRIPTION="configuration tool for setting traffic bandwidth parameters" +HOMEPAGE="ftp://archive.download.redhat.com/pub/redhat/linux/9/en/os/i386/SRPMS https://sourceforge.net/projects/cbqinit" +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 +} |