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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Mar 18 19:22:25 2012 UTC (7 years, 10 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Drop maintainer due retirement, bug #391429. Drop old.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 idl0r 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/htbinit/htbinit-0.8.5-r3.ebuild,v 1.1 2012/01/01 00:56:46 idl0r Exp $
4 idl0r 1.1
5     DESCRIPTION="Sets up Hierachical Token Bucket based traffic control (QoS) with iproute2"
6     HOMEPAGE="http://www.sourceforge.net/projects/htbinit"
7     SRC_URI="mirror://sourceforge/htbinit/htb.init-v${PV}"
8    
9     LICENSE="GPL-2"
10     SLOT="0"
11     KEYWORDS="x86 ~ppc ~sparc alpha ~amd64"
12     IUSE=""
13    
14     DEPEND="sys-apps/iproute2"
15    
16     S=${WORKDIR}
17    
18     src_unpack() {
19     cp "${DISTDIR}"/htb.init-v${PV} "${S}"
20     }
21    
22     src_compile() {
23     mv htb.init-v${PV} htb.init-v${PV}.orig
24     sed <htb.init-v${PV}.orig >htb.init-v${PV} \
25     -e 's|HTB_PATH=${HTB_PATH:-/etc/sysconfig/htb}|HTB_PATH=/etc/htbinit|' \
26     -e 's|HTB_CACHE=${HTB_CACHE:-/var/cache/htb.init}|HTB_CACHE=/var/cache/htbinit|'
27     }
28    
29     src_install() {
30     mv htb.init-v${PV} htbinit
31    
32     exeinto /usr/sbin
33     doexe htbinit
34    
35     exeinto /usr/sbin
36     doexe "${FILESDIR}"/htb.sysconfig
37    
38     newinitd "${FILESDIR}"/rc_htbinit htbinit
39    
40     dodoc htbinit "${FILESDIR}"/htb.sysconfig
41    
42     dodir /etc/htbinit
43     }
44    
45     pkg_postinst() {
46     einfo 'Run "rc-update add htbinit default" to run htbinit at startup.'
47     einfo 'Edit "/usr/sbin/htb.sysconfig" to make a custom configuration.'
48     einfo 'Please, read carefully the htbinit and htb.sysconfig documentation.'
49     }

  ViewVC Help
Powered by ViewVC 1.1.20