| 1 |
# Copyright 1999-2011 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.ebuild,v 1.17 2010/04/18 16:55:45 nixnut Exp $
|
| 4 |
|
| 5 |
inherit toolchain-funcs eutils
|
| 6 |
|
| 7 |
IUSE=""
|
| 8 |
DESCRIPTION="Tool to test TCP and UDP throughput"
|
| 9 |
HOMEPAGE="http://ftp.arl.mil/~mike/ttcp.html"
|
| 10 |
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="public-domain"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 ~mips ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
| 15 |
|
| 16 |
DEPEND=""
|
| 17 |
|
| 18 |
src_unpack() {
|
| 19 |
unpack ${A} ; cd ${S}
|
| 20 |
use amd64 && epatch ${FILESDIR}/ttcp-1.12-amd64.patch
|
| 21 |
}
|
| 22 |
|
| 23 |
src_compile() {
|
| 24 |
$(tc-getCC) ${CFLAGS} -o ttcp sgi-ttcp.c || die "compile failed"
|
| 25 |
}
|
| 26 |
|
| 27 |
src_install() {
|
| 28 |
dobin ttcp
|
| 29 |
newman sgi-ttcp.1 ttcp.1
|
| 30 |
}
|