2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-07-30 03:59:49 +02:00
|
|
|
#
|
|
|
|
# tcpreplay
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2009-07-30 03:59:49 +02:00
|
|
|
|
2016-01-12 12:09:03 +01:00
|
|
|
TCPREPLAY_VERSION = 4.1.1
|
|
|
|
TCPREPLAY_SITE = https://github.com/appneta/tcpreplay/releases/download/v$(TCPREPLAY_VERSION)
|
2014-01-13 02:03:23 +01:00
|
|
|
TCPREPLAY_LICENSE = GPLv3
|
|
|
|
TCPREPLAY_LICENSE_FILES = docs/LICENSE
|
|
|
|
TCPREPLAY_CONF_ENV = \
|
|
|
|
tr_cv_libpcap_version=">= 0.7.0" \
|
2014-06-18 15:21:37 +02:00
|
|
|
ac_cv_have_bpf=no \
|
|
|
|
$(call AUTOCONF_AC_CHECK_FILE_VAL,$(STAGING_DIR)/usr/include/pcap-netmap.c)=no
|
2014-09-27 21:32:44 +02:00
|
|
|
TCPREPLAY_CONF_OPTS = --with-libpcap=$(STAGING_DIR)/usr
|
2012-06-26 23:25:29 +02:00
|
|
|
TCPREPLAY_DEPENDENCIES = libpcap
|
2009-07-30 03:59:49 +02:00
|
|
|
|
2014-06-19 12:26:48 +02:00
|
|
|
# libpcap may depend on symbols in other libs
|
2015-07-12 16:35:26 +02:00
|
|
|
TCPREPLAY_LIBS = $(STAGING_DIR)/usr/bin/pcap-config --static --libs
|
|
|
|
TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close="`$(TCPREPLAY_LIBS)`" \
|
|
|
|
LIBS="`$(TCPREPLAY_LIBS)`"
|
2012-06-27 09:42:33 +02:00
|
|
|
|
2016-03-29 20:24:15 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
TCPREPLAY_CONF_OPTS += --enable-dynamic-link=no
|
|
|
|
endif
|
|
|
|
|
2014-01-23 10:07:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TCPDUMP),y)
|
|
|
|
TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump
|
|
|
|
else
|
|
|
|
TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=no
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|