| 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-analyzer/ttcp/ttcp-1.12-r1.ebuild,v 1.1 2010/08/26 16:02:15 jer Exp $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit toolchain-funcs eutils
|
| 8 |
|
| 9 |
IUSE=""
|
| 10 |
DESCRIPTION="Tool to test TCP and UDP throughput"
|
| 11 |
HOMEPAGE="http://ftp.arl.mil/~mike/ttcp.html"
|
| 12 |
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 13 |
|
| 14 |
LICENSE="public-domain"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 17 |
|
| 18 |
DEPEND=""
|
| 19 |
|
| 20 |
src_prepare() {
|
| 21 |
epatch "${FILESDIR}"/ttcp-1.12-amd64.patch
|
| 22 |
}
|
| 23 |
|
| 24 |
src_compile() {
|
| 25 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ttcp sgi-ttcp.c || die "compile failed"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_install() {
|
| 29 |
dobin ttcp
|
| 30 |
newman sgi-ttcp.1 ttcp.1
|
| 31 |
}
|