summaryrefslogtreecommitdiff
blob: b9c6b6d6ca9289bbd72d85d05aacf8559f484226 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/tptest/tptest-3.1.0.ebuild,v 1.2 2003/10/10 08:58:35 aliz Exp $

MY_P=${PN}${PV}

DESCRIPTION="Internet bandwidth tester"
HOMEPAGE="http://tptest.sourceforge.net/"
SRC_URI="mirror://sourceforge/tptest/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=sys-apps/sed-4"
#RDEPEND=""
S=${WORKDIR}/build
S0=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}

	mkdir ${S}
	cp ${S0}/engine/* ${S}
	cp ${S0}/os-dep/unix/* ${S}
	cp ${S0}/apps/unix/client/* ${S}

	cd ${S}
	sed -i "28s:$: ${CFLAGS}:g" Makefile
}

src_compile() {
	emake || die
}

src_install() {
	dobin tptest
	dodoc README tptest3.txt
}