blob: a76d03a67850249c2c354836483ebcc6b3b3b2e7 [file] [log] [blame]
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils
DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2"
HOMEPAGE="http://www.sourceforge.net/projects/cbqinit"
SRC_URI="mirror://sourceforge/cbqinit/cbq.init-v${PV} -> ${P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~arm hppa ~mips ppc sparc x86"
IUSE=""
RDEPEND="sys-apps/iproute2"
DEPEND=""
S=${WORKDIR}
src_unpack() {
cp "${DISTDIR}"/${P} "${S}"/cbqinit || die
grep '^#' cbqinit > README
}
src_prepare() {
epatch "${FILESDIR}"/${P}-gentoo.patch
}
src_install() {
dosbin cbqinit
newinitd "${FILESDIR}"/rc_cbqinit-r1 cbqinit
dodoc "${FILESDIR}"/cbq-1280.My_first_shaper.sample README
}