2013-03-08 15:00:30 +01:00
|
|
|
# Created by: cnh@ivmg.net
|
2000-11-29 03:29:03 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2001-01-23 09:45:52 +01:00
|
|
|
PORTNAME= tcpreplay
|
2017-05-17 20:48:09 +02:00
|
|
|
PORTVERSION= 4.2.6
|
2017-03-23 22:35:35 +01:00
|
|
|
DISTVERSIONPREFIX= v
|
2017-08-30 22:02:36 +02:00
|
|
|
PORTREVISION= 2
|
2004-02-23 05:42:13 +01:00
|
|
|
CATEGORIES= net-mgmt
|
2002-04-15 22:03:51 +02:00
|
|
|
|
2007-12-12 19:12:07 +01:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2013-03-08 15:00:30 +01:00
|
|
|
COMMENT= Tool to replay saved packet capture files
|
2000-11-29 03:29:03 +01:00
|
|
|
|
2014-01-06 15:06:57 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2017-03-23 22:35:35 +01:00
|
|
|
LIB_DEPENDS= libopts.so:devel/autogen \
|
|
|
|
libdnet.so:net/libdnet
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= pcapnav-config:net/libpcapnav
|
2000-11-29 03:29:03 +01:00
|
|
|
|
2017-03-23 22:35:35 +01:00
|
|
|
USES= autoreconf libtool pkgconfig
|
|
|
|
USE_GITHUB= yes
|
2002-04-15 22:03:51 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2000-11-29 03:29:03 +01:00
|
|
|
|
2017-03-23 22:35:35 +01:00
|
|
|
GH_ACCOUNT= appneta
|
|
|
|
|
2009-09-20 13:56:10 +02:00
|
|
|
CONFIGURE_ARGS= --program-transform-name='s|.*\(tcp.*\)|\1|' \
|
2014-01-06 15:06:57 +01:00
|
|
|
--with-pcapnav-config=${LOCALBASE}/bin/pcapnav-config
|
2004-06-23 17:41:32 +02:00
|
|
|
|
2017-03-23 22:35:35 +01:00
|
|
|
# required when using autogen
|
|
|
|
CONFIGURE_ARGS+= --disable-local-libopts --disable-libopts-install
|
|
|
|
|
2017-08-30 21:32:00 +02:00
|
|
|
OPTIONS_DEFINE= LIBPCAP_BASE LIBPCAP_PORTS
|
2017-08-30 22:02:36 +02:00
|
|
|
LIBPCAP_BASE_DESC= Build with libpcap from the base OS
|
|
|
|
LIBPCAP_PORTS_DESC= Build with net/libpcap
|
2017-08-30 21:32:00 +02:00
|
|
|
|
|
|
|
OPTIONS_SINGLE= SG1
|
|
|
|
OPTIONS_SINGLE= LIBPCAP_BASE LIBPCAP_PORTS
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= LIBPCAP_BASE
|
|
|
|
|
|
|
|
LIBPCAP_PORTS_BUILD_DEPENDS= ${LOCALBASE}/lib/libpcap.a:net/libpcap
|
|
|
|
LIBPCAP_PORTS_LIB_DEPENDS= libpcap.so:net/libpcap
|
|
|
|
|
2007-01-31 15:09:55 +01:00
|
|
|
post-patch:
|
2017-03-23 22:35:35 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-Wall -O3||' ${WRKSRC}/${CONFIGURE_SCRIPT}.ac
|
2007-01-31 15:09:55 +01:00
|
|
|
|
2014-02-05 09:21:34 +01:00
|
|
|
regression-test: build
|
|
|
|
@cd ${WRKSRC} && ${MAKE} -s test
|
|
|
|
|
2014-09-10 10:01:53 +02:00
|
|
|
.include <bsd.port.mk>
|