/[gentoo-x86]/net-misc/cbqinit/cbqinit-0.7.2.ebuild
Gentoo

Contents of /net-misc/cbqinit/cbqinit-0.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (hide annotations) (download)
Tue Mar 5 09:18:23 2013 UTC (6 years, 10 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
Cleanup old keep only latest. Bump to eapi5 and use src_uri arrows.

(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)

1 leio 1.15 # Copyright 1999-2010 Gentoo Foundation
2 sethbc 1.1 # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.17 # $Header: /var/cvsroot/gentoo-x86/net-misc/cbqinit/cbqinit-0.7.2.ebuild,v 1.16 2010/10/28 09:58:35 ssuominen Exp $
4 sethbc 1.1
5     DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2"
6     HOMEPAGE="http://www.sourceforge.net/projects/cbqinit"
7 aliz 1.7 SRC_URI="mirror://sourceforge/cbqinit/cbq.init-v${PV}"
8 vapier 1.9
9 sethbc 1.1 LICENSE="GPL-2"
10     SLOT="0"
11 leio 1.15 KEYWORDS="alpha hppa ~mips ppc sparc x86"
12 vapier 1.9 IUSE=""
13 sethbc 1.1
14 vapier 1.9 RDEPEND="sys-apps/iproute2"
15 sethbc 1.1 DEPEND=""
16    
17 vapier 1.9 S=${WORKDIR}
18 sethbc 1.1
19     src_unpack() {
20 ssuominen 1.16 cp "${DISTDIR}"/cbq.init-v${PV} "${S}"
21 sethbc 1.1 }
22    
23     src_compile() {
24     mv cbq.init-v${PV} cbq.init-v${PV}.orig
25     sed <cbq.init-v${PV}.orig >cbq.init-v${PV} \
26     -e 's|CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq}|CBQ_PATH=/etc/cbqinit|' \
27 msterret 1.6 -e 's|CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}|CBQ_CACHE=/var/cache/cbqinit|'
28 sethbc 1.1 }
29    
30     src_install() {
31     mv cbq.init-v${PV} cbqinit
32    
33     exeinto /usr/sbin
34     doexe cbqinit
35    
36 ssuominen 1.16 newinitd "${FILESDIR}"/rc_cbqinit cbqinit
37 sethbc 1.1
38     insinto /etc/cbqinit/sample
39 ssuominen 1.16 newins "${FILESDIR}"/cbq-1280.My_first_shaper.sample cbq-1280.My_first_shaper
40 sethbc 1.1
41     dodoc cbqinit
42     }
43    
44     pkg_postinst() {
45     einfo 'Run "rc-update add cbqinit default" to run cbqinit at startup.'
46     }

  ViewVC Help
Powered by ViewVC 1.1.20