/[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 - (show annotations) (download)
Tue Mar 5 09:18:23 2013 UTC (6 years, 9 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 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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
5 DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2"
6 HOMEPAGE="http://www.sourceforge.net/projects/cbqinit"
7 SRC_URI="mirror://sourceforge/cbqinit/cbq.init-v${PV}"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="alpha hppa ~mips ppc sparc x86"
12 IUSE=""
13
14 RDEPEND="sys-apps/iproute2"
15 DEPEND=""
16
17 S=${WORKDIR}
18
19 src_unpack() {
20 cp "${DISTDIR}"/cbq.init-v${PV} "${S}"
21 }
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 -e 's|CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}|CBQ_CACHE=/var/cache/cbqinit|'
28 }
29
30 src_install() {
31 mv cbq.init-v${PV} cbqinit
32
33 exeinto /usr/sbin
34 doexe cbqinit
35
36 newinitd "${FILESDIR}"/rc_cbqinit cbqinit
37
38 insinto /etc/cbqinit/sample
39 newins "${FILESDIR}"/cbq-1280.My_first_shaper.sample cbq-1280.My_first_shaper
40
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