1################################################################################ 2# 3# tcpreplay 4# 5################################################################################ 6 7TCPREPLAY_VERSION = 4.3.3 8TCPREPLAY_SITE = https://github.com/appneta/tcpreplay/releases/download/v$(TCPREPLAY_VERSION) 9TCPREPLAY_SOURCE = tcpreplay-$(TCPREPLAY_VERSION).tar.xz 10TCPREPLAY_LICENSE = GPL-3.0 11TCPREPLAY_LICENSE_FILES = docs/LICENSE 12TCPREPLAY_CPE_ID_VENDOR = tcpreplay 13TCPREPLAY_CONF_ENV = \ 14 ac_cv_path_ac_pt_PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config" 15TCPREPLAY_CONF_OPTS = --with-libpcap=$(STAGING_DIR)/usr \ 16 --enable-pcapconfig 17TCPREPLAY_DEPENDENCIES = libpcap 18# We're patching configure.ac 19TCPREPLAY_AUTORECONF = YES 20 21ifeq ($(BR2_STATIC_LIBS),y) 22TCPREPLAY_CONF_OPTS += --enable-dynamic-link=no 23TCPREPLAY_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`" 24endif 25 26ifeq ($(BR2_PACKAGE_LIBDNET),y) 27TCPREPLAY_DEPENDENCIES += libdnet 28TCPREPLAY_CONF_OPTS += --with-libdnet=$(STAGING_DIR)/usr 29else 30TCPREPLAY_CONF_OPTS += --without-libdnet 31endif 32 33ifeq ($(BR2_PACKAGE_TCPDUMP),y) 34TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump 35else 36TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=no 37endif 38 39$(eval $(autotools-package)) 40