summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/cbqinit/cbqinit-0.7.ebuild')
-rw-r--r--net-misc/cbqinit/cbqinit-0.7.ebuild29
1 files changed, 14 insertions, 15 deletions
diff --git a/net-misc/cbqinit/cbqinit-0.7.ebuild b/net-misc/cbqinit/cbqinit-0.7.ebuild
index fae313fb6ce4..1c48e6ddff80 100644
--- a/net-misc/cbqinit/cbqinit-0.7.ebuild
+++ b/net-misc/cbqinit/cbqinit-0.7.ebuild
@@ -1,36 +1,35 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Foundation
# 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 $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/cbqinit/cbqinit-0.7.ebuild,v 1.1.1.1 2005/11/30 09:55:10 chriswhite Exp $
+S=${WORKDIR}
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}"
+SRC_URI="mirror://sourceforge/cbqinit/cbq.init-v${PV}"
+
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="*"
+KEYWORDS="x86 ppc sparc alpha mips hppa "
+IUSE=""
-RDEPEND="sys-apps/iproute2"
-DEPEND=""
+DEPEND=">=sys-apps/sed-4.0.5"
-S="${WORKDIR}"
+RDEPEND="sys-apps/iproute2"
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|'
+ sed -i \
+ -e 's|^CBQ_PATH=.*|CBQ_PATH=/etc/cbqinit|' \
+ -e 's|CBQ_CACHE=.*|CBQ_CACHE=/var/cache/cbqinit|' \
+ cbq.init-v${PV}
}
src_install() {
- mv cbq.init-v${PV} cbqinit
-
exeinto /usr/sbin
- doexe cbqinit
+ newexe cbq.init-v${PV} cbqinit
exeinto /etc/init.d
newexe ${FILESDIR}/rc_cbqinit cbqinit