1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/net-mgmt/tcpreplay/Makefile
2017-05-17 18:48:09 +00:00

37 lines
808 B
Makefile

# Created by: cnh@ivmg.net
# $FreeBSD$
PORTNAME= tcpreplay
PORTVERSION= 4.2.6
DISTVERSIONPREFIX= v
CATEGORIES= net-mgmt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tool to replay saved packet capture files
LICENSE= GPLv3
LIB_DEPENDS= libopts.so:devel/autogen \
libdnet.so:net/libdnet
BUILD_DEPENDS= pcapnav-config:net/libpcapnav
USES= autoreconf libtool pkgconfig
USE_GITHUB= yes
GNU_CONFIGURE= yes
GH_ACCOUNT= appneta
CONFIGURE_ARGS= --program-transform-name='s|.*\(tcp.*\)|\1|' \
--with-pcapnav-config=${LOCALBASE}/bin/pcapnav-config
# required when using autogen
CONFIGURE_ARGS+= --disable-local-libopts --disable-libopts-install
post-patch:
@${REINPLACE_CMD} -e 's|-Wall -O3||' ${WRKSRC}/${CONFIGURE_SCRIPT}.ac
regression-test: build
@cd ${WRKSRC} && ${MAKE} -s test
.include <bsd.port.mk>