From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- .../cbqinit/files/cbq-1280.My_first_shaper.sample | 5 ++ net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch | 53 ++++++++++++++++++++++ net-misc/cbqinit/files/rc_cbqinit | 17 +++++++ net-misc/cbqinit/files/rc_cbqinit-r1 | 30 ++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 net-misc/cbqinit/files/cbq-1280.My_first_shaper.sample create mode 100644 net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch create mode 100644 net-misc/cbqinit/files/rc_cbqinit create mode 100644 net-misc/cbqinit/files/rc_cbqinit-r1 (limited to 'net-misc/cbqinit/files') diff --git a/net-misc/cbqinit/files/cbq-1280.My_first_shaper.sample b/net-misc/cbqinit/files/cbq-1280.My_first_shaper.sample new file mode 100644 index 000000000000..3b3c1a01804b --- /dev/null +++ b/net-misc/cbqinit/files/cbq-1280.My_first_shaper.sample @@ -0,0 +1,5 @@ +DEVICE=eth0,10Mbit,1Mbit +RATE=128Kbit +WEIGHT=10Kbit +PRIO=5 +RULE=192.128.1.0/24 diff --git a/net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch b/net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch new file mode 100644 index 000000000000..edd78da2451e --- /dev/null +++ b/net-misc/cbqinit/files/cbqinit-0.7.3-gentoo.patch @@ -0,0 +1,53 @@ +Use Gentoo friendly config paths and incorporate +cbq-0.7.1-avpkt-enhancement.patch from Fedora + +--- cbqinit ++++ cbqinit +@@ -484,8 +484,8 @@ + PRIO_REALM_DEFAULT=${PRIO_REALM:-300} + + ### Default CBQ_PATH & CBQ_CACHE settings +-CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq} +-CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init} ++CBQ_PATH=${CBQ_PATH:-/etc/cbqinit} ++CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbqinit} + + ### Uncomment to enable logfile for debugging + #CBQ_DEBUG="/var/run/cbq-$1" +@@ -501,6 +501,9 @@ + CBQ_WORDS="$CBQ_WORDS|PRIO_MARK|PRIO_RULE|PRIO_REALM|BUFFER" + CBQ_WORDS="$CBQ_WORDS|LIMIT|PEAK|MTU|QUANTUM|PERTURB" + ++### Source AVPKT if it exists ++[ -r "${CBQ_PATH}/avpkt" ] && . "${CBQ_PATH}/avpkt" ++AVPKT=${AVPKT:-1000} + + ############################################################################# + ############################# SUPPORT FUNCTIONS ############################# +@@ -749,7 +752,7 @@ + + ### Setup root qdisc + class for device + tc qdisc add dev $dev root handle 1 cbq \ +- bandwidth $DEVBWDT avpkt 1000 cell 8 ++ bandwidth $DEVBWDT avpkt $AVPKT cell 8 + + ### Set weight of the root class if set + [ -n "$DEVWGHT" ] && +@@ -766,7 +769,7 @@ + ### Create the class + tc class add dev $DEVICE parent 1:$PARENT classid 1:$CLASS cbq \ + bandwidth $BANDWIDTH rate $RATE weight $WEIGHT prio $PRIO \ +- allot 1514 cell 8 maxburst 20 avpkt 1000 $BOUNDED $ISOLATED || ++ allot 1514 cell 8 maxburst 20 avpkt $AVPKT $BOUNDED $ISOLATED || + cbq_fail_off "failed to add class $CLASS with parent $PARENT on $DEVICE!" + + ### Create leaf qdisc if set +@@ -940,7 +943,7 @@ + ### Replace CBQ class + tc class replace dev $DEVICE classid 1:$CLASS cbq \ + bandwidth $BANDWIDTH rate $NEW_RATE weight $NEW_WGHT prio $PRIO \ +- allot 1514 cell 8 maxburst 20 avpkt 1000 $BOUNDED $ISOLATED ++ allot 1514 cell 8 maxburst 20 avpkt $AVPKT $BOUNDED $ISOLATED + + ### Replace leaf qdisc (if any) + if [ "$LEAF" = "tbf" ]; then diff --git a/net-misc/cbqinit/files/rc_cbqinit b/net-misc/cbqinit/files/rc_cbqinit new file mode 100644 index 000000000000..e4e7351d2fba --- /dev/null +++ b/net-misc/cbqinit/files/rc_cbqinit @@ -0,0 +1,17 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting cbqinit" + /usr/sbin/cbqinit start + eend $? +} + +stop() { + ebegin "Stopping cbqinit" + /usr/sbin/cbqinit stop + eend $? +} diff --git a/net-misc/cbqinit/files/rc_cbqinit-r1 b/net-misc/cbqinit/files/rc_cbqinit-r1 new file mode 100644 index 000000000000..b6ffad898e87 --- /dev/null +++ b/net-misc/cbqinit/files/rc_cbqinit-r1 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +checkconfig() { + if [ ! -d /etc/cbqinit ] ; then + eerror "You need to create some config files in /etc/cbqinit first" + eerror "Please read the README file" + return 1 + fi + + return 0 +} + +start() { + checkconfig || return 1 + ebegin "Starting cbqinit" + /usr/sbin/cbqinit start + eend $? +} + +stop() { + ebegin "Stopping cbqinit" + /usr/sbin/cbqinit stop + eend +} -- cgit v1.2.3-65-gdbad