blob: 735575fe89dc7e9fbcbb3da0465577594e5a89a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
PORTNAME= tcpreplay
DISTVERSION= 4.4.3
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= https://github.com/appneta/${PORTNAME}/releases/download/v${DISTVERSION}/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Tool to replay saved packet capture files
WWW= https://github.com/appneta/tcpreplay
LICENSE= GPLv3
BUILD_DEPENDS= pcapnav-config:net/libpcapnav
LIB_DEPENDS= libdnet.so:net/libdnet \
libopts.so:devel/autogen
USES= cpe gmake libtool pkgconfig tar:xz
CPE_VENDOR= broadcom
GNU_CONFIGURE= yes
# libopts options are required when using autogen
CONFIGURE_ARGS= --disable-libopts-install \
--disable-local-libopts \
--program-transform-name='s|.*\(tcp.*\)|\1|' \
--with-pcapnav-config=${LOCALBASE}/bin/pcapnav-config
TEST_TARGET= test
# https://github.com/appneta/tcpreplay/issues/809
PORTSCOUT= skipv:4.4.4
OPTIONS_DEFAULT= LIBPCAP_BASE
OPTIONS_SINGLE= LIBPCAP
OPTIONS_SINGLE_LIBPCAP= LIBPCAP_BASE LIBPCAP_PORTS
LIBPCAP_BASE_DESC= Build with libpcap from the base OS
LIBPCAP_PORTS_DESC= Build with net/libpcap
LIBPCAP_BASE_CONFIGURE_ON= --with-libpcap=/usr/lib
# needs .so version (see: 262976)
LIBPCAP_PORTS_LIB_DEPENDS= libpcap.so.1:net/libpcap
# remove after manprefix migration
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
.include <bsd.port.mk>
|