summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaik Schreiber <blizzy@gentoo.org>2002-07-12 00:57:11 +0000
committerMaik Schreiber <blizzy@gentoo.org>2002-07-12 00:57:11 +0000
commite9fbf3faec9646623ad75778e6c69d2494cd8e43 (patch)
tree8be528f43438f900d5df0e94d4676a06c106a641 /net-misc/cbqinit
parentNew version & stale ebuilds removal... (diff)
downloadhistorical-e9fbf3faec9646623ad75778e6c69d2494cd8e43.tar.gz
historical-e9fbf3faec9646623ad75778e6c69d2494cd8e43.tar.bz2
historical-e9fbf3faec9646623ad75778e6c69d2494cd8e43.zip
initial import
Diffstat (limited to 'net-misc/cbqinit')
-rw-r--r--net-misc/cbqinit/ChangeLog10
-rw-r--r--net-misc/cbqinit/cbqinit-0.7.ebuild46
-rw-r--r--net-misc/cbqinit/files/cbq-1280.My_first_shaper.sample5
-rw-r--r--net-misc/cbqinit/files/digest-cbqinit-0.71
-rw-r--r--net-misc/cbqinit/files/rc_cbqinit17
5 files changed, 79 insertions, 0 deletions
diff --git a/net-misc/cbqinit/ChangeLog b/net-misc/cbqinit/ChangeLog
new file mode 100644
index 000000000000..dfdf07489307
--- /dev/null
+++ b/net-misc/cbqinit/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/cbqinit
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cbqinit/ChangeLog,v 1.1 2002/07/12 00:57:11 blizzy Exp $
+
+*cbqinit-0.7 (12 Jul 2002)
+
+ 12 Jul 2002; Maik Schreiber <blizzy@gentoo.org> :
+
+ Initial import.
+ ebuild submitted by Maik Schreiber <bZ@iq-computing.de>
diff --git a/net-misc/cbqinit/cbqinit-0.7.ebuild b/net-misc/cbqinit/cbqinit-0.7.ebuild
new file mode 100644
index 000000000000..fae313fb6ce4
--- /dev/null
+++ b/net-misc/cbqinit/cbqinit-0.7.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cbqinit/cbqinit-0.7.ebuild,v 1.1 2002/07/12 00:57:11 blizzy Exp $
+
+DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2"
+HOMEPAGE="http://www.sourceforge.net/projects/cbqinit"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/cbqinit/cbq.init-v${PV}"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+
+RDEPEND="sys-apps/iproute2"
+DEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp ${DISTDIR}/cbq.init-v${PV} ${S}
+}
+
+src_compile() {
+ mv cbq.init-v${PV} cbq.init-v${PV}.orig
+ sed <cbq.init-v${PV}.orig >cbq.init-v${PV} \
+ -e 's|CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq}|CBQ_PATH=/etc/cbqinit|' \
+ -e 's|CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}|CBQ_CACHE=/var/cache/cbqinit|' \
+ -e 's|-x /sbin/tc -a -x /sbin/ip|-x /usr/sbin/tc -a -x /usr/sbin/ip|'
+}
+
+src_install() {
+ mv cbq.init-v${PV} cbqinit
+
+ exeinto /usr/sbin
+ doexe cbqinit
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/rc_cbqinit cbqinit
+
+ insinto /etc/cbqinit/sample
+ newins ${FILESDIR}/cbq-1280.My_first_shaper.sample cbq-1280.My_first_shaper
+
+ dodoc cbqinit
+}
+
+pkg_postinst() {
+ einfo 'Run "rc-update add cbqinit default" to run cbqinit at startup.'
+}
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/digest-cbqinit-0.7 b/net-misc/cbqinit/files/digest-cbqinit-0.7
new file mode 100644
index 000000000000..f04bbd127e8e
--- /dev/null
+++ b/net-misc/cbqinit/files/digest-cbqinit-0.7
@@ -0,0 +1 @@
+MD5 6842de9bef1cb1e18f5d843e6f4aa569 cbq.init-v0.7 31552
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 $?
+}