summaryrefslogtreecommitdiff
blob: 1f705cbe46028ca2198c539bfcbe647a92e131ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="A utility to limit the bandwidth used by a process."
HOMEPAGE="http://www.hping.org/netbrake/"
SRC_URI="http://www.hping.org/netbrake/${P}.tar.gz"

LICENSE="X11"
SLOT="0"
KEYWORDS="~x86"

IUSE="httpfs"

DEPEND=""

S=${WORKDIR}/${PN}

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Makefile.in ignores our compiler and compiler flags preference
	epatch "${FILESDIR}/${P}-fix-compiler-and-flags.patch"

	# patch to configure files to install the library and script
	# executable according to gentoo's standards and remove user
	# interaction for compile options
	epatch "${FILESDIR}/${P}-fix-path-and-httpfs.patch"

	use httpfs && export HTTPFS_FLAG=y
}

src_install() {
	dolib libnetbrake.so.0.1
	dobin netbrake

	dodoc AUTHORS CHANGES README THANKS TODO VERSION
}