blob: 1e6b84add5a3e9a76a10436e598ac8623d91e4ab (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils
DESCRIPTION="a QoS script"
HOMEPAGE="http://lartc.org/wondershaper"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="sys-apps/iproute2"
IUSE="+htb"
src_prepare() {
epatch "${FILESDIR}/${P}.patch"
for FILE in rc.skel Makefile append-return-1.awk
do
cp "${FILESDIR}"/${FILE} "${S}"/ || die "copy ${FILE} failed"
done
use htb && { cp -f wshaper.htb wshaper || die "copy wshaper.htb failed" ; }
}
src_install() {
doinitd ${PN}
newconfd ${PN}.config ${PN}
dodoc ChangeLog README TODO VERSION
}
|