/[gentoo-x86]/net-misc/htbinit/htbinit-0.8.5-r2.ebuild
Gentoo

Contents of /net-misc/htbinit/htbinit-0.8.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 1 00:56:46 2012 UTC (7 years, 11 months ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revbump. Don't use the deprecated $opts variable, bug 386767.

(Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/htbinit/htbinit-0.8.5-r2.ebuild,v 1.2 2011/11/16 00:18:15 robbat2 Exp $
4
5 EAPI=2
6 inherit eutils linux-info
7
8 DESCRIPTION="Sets up Hierachical Token Bucket based traffic control (QoS) with iproute2"
9 HOMEPAGE="http://www.sourceforge.net/projects/htbinit"
10 SRC_URI="mirror://sourceforge/htbinit/htb.init-v${PV}"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
15 IUSE="ipv6 esfq"
16
17 DEPEND="sys-apps/iproute2"
18
19 S=${WORKDIR}
20
21 pkg_setup() {
22 for i in NET_SCH_HTB NET_SCH_SFQ NET_CLS_FW NET_CLS_U32 NET_CLS_ROUTE ; do
23 CONFIG_CHECK="${CONFIG_CHECK} ~${i}"
24 eval "export WARNING_${i}='module needed at runtime!'"
25 done
26 use esfq && CONFIG_CHECK="${CONFIG_CHECK} ~NET_SCH_ESFQ"
27 WARNING_NET_SCH_ESFQ='module needed at runtime! Available at http://fatooh.org/esfq-2.6/'
28 export CONFIG_CHECK
29 linux-info_pkg_setup
30 }
31
32 src_unpack() {
33 cp "${DISTDIR}"/htb.init-v${PV} "${S}"/htb.init
34 }
35
36 src_prepare() {
37 sed -i 's|/etc/sysconfig/htb|/etc/htb|g' "${S}"/htb.init
38 epatch "${FILESDIR}"/htb.init-v0.8.5_tos.patch
39 use ipv6 && epatch "${FILESDIR}"/htb_0.8.5_ipv6.diff
40 use esfq && epatch "${FILESDIR}"/htb_0.8.5_esfq.diff
41 epatch "${FILESDIR}"/prio_rule.patch
42 epatch "${FILESDIR}"/timecheck_fix.patch
43 epatch "${FILESDIR}"/htb.init_find_fix.patch
44 }
45
46 src_compile() {
47 :
48 }
49
50 src_install() {
51 dosbin htb.init
52
53 newinitd "${FILESDIR}"/htbinit.rc htbinit
54
55 keepdir /etc/htb
56 }
57
58 pkg_postinst() {
59 einfo 'Run "rc-update add htbinit default" to run htb.init at startup.'
60 einfo 'Please, read carefully the htb.init documentation.'
61 einfo 'new directory to store configuration /etc/htb'
62 }

  ViewVC Help
Powered by ViewVC 1.1.20