blob: 9fde8c9bf43a28cb73b754ba3438b44283b4b573 (
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
|
DESCRIPTION = "HTB.init is a shell script that allows for easy setup of HTB-based traffic control on Linux."
HOMEPAGE = "http://sourceforge.net/projects/htbinit"
LICENSE = "GPL"
PR = "r3"
SRC_URI = "${SOURCEFORGE_MIRROR}/htbinit/htb.init-v${PV} \
file://htb.init+ingress+predef+verbose.diff;striplevel=0 \
file://htb-basic-verbose.diff;striplevel=0"
RRECOMMENDS_${PN} = "kernel-module-sch-ingress kernel-module-cls-route kernel-module-cls-u32 kernel-module-cls-fw kernel-module-sch-sfq kernel-module-sch-htb"
RDEPENDS_${PN} = "iproute2"
S="${WORKDIR}"
inherit update-rc.d
INITSCRIPT_NAME = "htb"
do_install() {
install -d ${D}${sysconfdir}/init.d
install -d ${D}${sysconfdir}/htb
install -m 755 ${S}/htb.init-v${PV} ${D}${sysconfdir}/init.d/htb
sed -r -i "s,IP=/sbin/ip,IP=${base_bindir}/ip," ${D}${sysconfdir}/init.d/htb
}
PACKAGE_ARCH = "all"
SRC_URI[md5sum] = "1713d9a4941120235cb0721ceba6493b"
SRC_URI[sha256sum] = "acfda369dff72b9073a8b70f2b05b1397a61a1cdb23970e5ed216d632ff33586"
|