summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Chandler <sethbc@gentoo.org>2003-02-10 14:24:17 +0000
committerSeth Chandler <sethbc@gentoo.org>2003-02-10 14:24:17 +0000
commit4baf3095897aa03a6359cf6766b26e490c5ad078 (patch)
treebea814ef7c061eb2b22d317ceab36fb4d8fec977 /net-misc/cbqinit/cbqinit-0.7.2.ebuild
parentand the needed patch (diff)
downloadgentoo-2-4baf3095897aa03a6359cf6766b26e490c5ad078.tar.gz
gentoo-2-4baf3095897aa03a6359cf6766b26e490c5ad078.tar.bz2
gentoo-2-4baf3095897aa03a6359cf6766b26e490c5ad078.zip
version bumpage
Diffstat (limited to 'net-misc/cbqinit/cbqinit-0.7.2.ebuild')
-rw-r--r--net-misc/cbqinit/cbqinit-0.7.2.ebuild46
1 files changed, 46 insertions, 0 deletions
diff --git a/net-misc/cbqinit/cbqinit-0.7.2.ebuild b/net-misc/cbqinit/cbqinit-0.7.2.ebuild
new file mode 100644
index 000000000000..18111aef0848
--- /dev/null
+++ b/net-misc/cbqinit/cbqinit-0.7.2.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.2.ebuild,v 1.1 2003/02/10 14:24:17 sethbc 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="~x86 ~ppc ~sparc ~alpha"
+
+RDEPEND="sys-apps/iproute"
+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.'
+}