blob: ba9f0655c741791d1bf02c8a003e63e13453a7a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2"
HOMEPAGE="https://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() {
eapply -p0 "${FILESDIR}"/${P}-gentoo.patch
sed -i -e 's:/sbin/ip:/bin/ip:' cbqinit || die
default
}
src_install() {
dosbin cbqinit
newinitd "${FILESDIR}"/rc_cbqinit-r1 cbqinit
dodoc "${FILESDIR}"/cbq-1280.My_first_shaper.sample README
}
|