1 |
commit: f712af9a14a8970e58d21b225bf261d5569c9455 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 23:34:58 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 00:08:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f712af9a |
7 |
|
8 |
net-misc/htbinit: remove old version |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-misc/htbinit/htbinit-0.8.5-r6.ebuild | 61 -------------------------------- |
13 |
1 file changed, 61 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/htbinit/htbinit-0.8.5-r6.ebuild b/net-misc/htbinit/htbinit-0.8.5-r6.ebuild |
16 |
deleted file mode 100644 |
17 |
index 134522d..0000000 |
18 |
--- a/net-misc/htbinit/htbinit-0.8.5-r6.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,61 +0,0 @@ |
21 |
-# Copyright 1999-2014 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-inherit eutils linux-info |
27 |
- |
28 |
-DESCRIPTION="Sets up Hierachical Token Bucket based traffic control (QoS) with iproute2" |
29 |
-HOMEPAGE="http://www.sourceforge.net/projects/htbinit" |
30 |
-SRC_URI="mirror://sourceforge/htbinit/htb.init-v${PV}" |
31 |
- |
32 |
-LICENSE="GPL-2" |
33 |
-SLOT="0" |
34 |
-KEYWORDS="amd64 ~ppc x86" |
35 |
-IUSE="ipv6 esfq" |
36 |
- |
37 |
-DEPEND="sys-apps/iproute2" |
38 |
-RDEPEND="${DEPEND}" |
39 |
- |
40 |
-S=${WORKDIR} |
41 |
- |
42 |
-pkg_setup() { |
43 |
- for i in NET_SCH_HTB NET_SCH_SFQ NET_CLS_FW NET_CLS_U32 NET_CLS_ROUTE4 ; do |
44 |
- CONFIG_CHECK="${CONFIG_CHECK} ~${i}" |
45 |
- done |
46 |
- use esfq && CONFIG_CHECK="${CONFIG_CHECK} ~NET_SCH_ESFQ" |
47 |
- linux-info_pkg_setup |
48 |
-} |
49 |
- |
50 |
-src_unpack() { |
51 |
- cp "${DISTDIR}"/htb.init-v${PV} "${S}"/htb.init || die |
52 |
-} |
53 |
- |
54 |
-src_prepare() { |
55 |
- sed -i 's|/etc/sysconfig/htb|/etc/htb|g' "${S}"/htb.init |
56 |
- epatch "${FILESDIR}"/htb.init-v0.8.5_tos.patch |
57 |
- use ipv6 && epatch "${FILESDIR}"/htb_0.8.5_ipv6.diff |
58 |
- use esfq && epatch "${FILESDIR}"/htb_0.8.5_esfq.diff |
59 |
- epatch "${FILESDIR}"/prio_rule.patch |
60 |
- epatch "${FILESDIR}"/timecheck_fix.patch |
61 |
- epatch "${FILESDIR}"/htb.init_find_fix.patch |
62 |
- sed -i -e 's:/sbin/ip:/bin/ip:g' "${S}"/htb.init # bug #474700 |
63 |
-} |
64 |
- |
65 |
-src_compile() { |
66 |
- : |
67 |
-} |
68 |
- |
69 |
-src_install() { |
70 |
- dosbin htb.init |
71 |
- newinitd "${FILESDIR}"/htbinit.rc htbinit |
72 |
- keepdir /etc/htb |
73 |
-} |
74 |
- |
75 |
-pkg_postinst() { |
76 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
77 |
- elog 'Run "rc-update add htbinit default" to run htb.init at startup.' |
78 |
- elog 'Please, read carefully the htb.init documentation.' |
79 |
- elog 'New directory to store configuration is /etc/htb.' |
80 |
- fi |
81 |
-} |