freebsd-ports/net-mgmt/tcpreplay/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

2013-03-08 15:00:30 +01:00
# Created by: cnh@ivmg.net
# $FreeBSD$
PORTNAME= tcpreplay
2017-05-17 20:48:09 +02:00
PORTVERSION= 4.2.6
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= net-mgmt
MAINTAINER= ehaupt@FreeBSD.org
2013-03-08 15:00:30 +01:00
COMMENT= Tool to replay saved packet capture files
2014-01-06 15:06:57 +01:00
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|' \
2014-01-06 15:06:57 +01:00
--with-pcapnav-config=${LOCALBASE}/bin/pcapnav-config
# required when using autogen
CONFIGURE_ARGS+= --disable-local-libopts --disable-libopts-install
OPTIONS_DEFINE= LIBPCAP_BASE LIBPCAP_PORTS
LIBPCAP_BASE_DESC= Build with libpcap from the base OS
LIBPCAP_PORTS_DESC= Build with net/libpcap
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
post-patch:
@${REINPLACE_CMD} -e 's|-Wall -O3||' ${WRKSRC}/${CONFIGURE_SCRIPT}.ac
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>