DESCR

Ttcp (test TCP) times the transmission and reception of data between two
systems using the UDP or TCP protocols. It differs from common ``blast''
tests, which tend to measure the remote inetd as much as the network
performance, and which usually do not allow measurements at the remote end
of a UDP transmission.

Makefile

# $NetBSD: Makefile,v 1.17 2009/07/11 10:35:09 tron Exp $

DISTNAME= ttcp
PKGNAME= ${DISTNAME}-1.12
PKGREVISION= 2
CATEGORIES= benchmarks net
MASTER_SITES= ftp://ftp.ptb.de/pub/benchmarks/
EXTRACT_SUFX= .tar.Z

MAINTAINER= thorpej@NetBSD.org
HOMEPAGE= http://www.ccci.com/tools/ttcp/
COMMENT= TCP testing and performance measuring tool
LICENSE= public-domain

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir

USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}

.include "../../mk/bsd.prefs.mk"

MANCOMPRESSED_IF_MANZ= YES

#.if (${OPSYS} == Darwin)
#CFLAGS+= "-Din_addr_t=\"unsigned long\""
#MAKE_FLAGS+= CFLAGS=${CFLAGS:Q}
#.endif

INSTALLATION_DIRS= bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1

.if (${OPSYS} == SunOS)
do-build:
cd ${WRKSRC} && \
${CC} ttcp.c ${CFLAGS} ${LDFLAGS} -lsocket -lnsl -o ttcp && \
nroff -man ttcp.1 >ttcp.cat1
.endif

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.1 2001/10/31 23:45:39 zuntum Exp $
bin/ttcp
man/cat1/ttcp.0
man/man1/ttcp.1

distinfo

$NetBSD: distinfo,v 1.11 2007/01/18 11:28:00 rillig Exp $

SHA1 (ttcp.tar.Z) = 33a60af208eff3dc9ae745060f44b24c4e74aa7e
RMD160 (ttcp.tar.Z) = b5cb1a8efe0f716d25d58a4950f35bac47b17668
Size (ttcp.tar.Z) = 18163 bytes
SHA1 (patch-aa) = 4ef0fe369d4836a4de758a4cd62fda4785a471b7
SHA1 (patch-ab) = a4419e0ee02a8b6d30ac13913f45fc9f5f9d7746