1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# tcpreplay 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunTCPREPLAY_VERSION = 4.3.3 8*4882a593SmuzhiyunTCPREPLAY_SITE = https://github.com/appneta/tcpreplay/releases/download/v$(TCPREPLAY_VERSION) 9*4882a593SmuzhiyunTCPREPLAY_SOURCE = tcpreplay-$(TCPREPLAY_VERSION).tar.xz 10*4882a593SmuzhiyunTCPREPLAY_LICENSE = GPL-3.0 11*4882a593SmuzhiyunTCPREPLAY_LICENSE_FILES = docs/LICENSE 12*4882a593SmuzhiyunTCPREPLAY_CPE_ID_VENDOR = tcpreplay 13*4882a593SmuzhiyunTCPREPLAY_CONF_ENV = \ 14*4882a593Smuzhiyun ac_cv_path_ac_pt_PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config" 15*4882a593SmuzhiyunTCPREPLAY_CONF_OPTS = --with-libpcap=$(STAGING_DIR)/usr \ 16*4882a593Smuzhiyun --enable-pcapconfig 17*4882a593SmuzhiyunTCPREPLAY_DEPENDENCIES = libpcap 18*4882a593Smuzhiyun# We're patching configure.ac 19*4882a593SmuzhiyunTCPREPLAY_AUTORECONF = YES 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifeq ($(BR2_STATIC_LIBS),y) 22*4882a593SmuzhiyunTCPREPLAY_CONF_OPTS += --enable-dynamic-link=no 23*4882a593SmuzhiyunTCPREPLAY_CONF_ENV += LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --libs`" 24*4882a593Smuzhiyunendif 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBDNET),y) 27*4882a593SmuzhiyunTCPREPLAY_DEPENDENCIES += libdnet 28*4882a593SmuzhiyunTCPREPLAY_CONF_OPTS += --with-libdnet=$(STAGING_DIR)/usr 29*4882a593Smuzhiyunelse 30*4882a593SmuzhiyunTCPREPLAY_CONF_OPTS += --without-libdnet 31*4882a593Smuzhiyunendif 32*4882a593Smuzhiyun 33*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_TCPDUMP),y) 34*4882a593SmuzhiyunTCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump 35*4882a593Smuzhiyunelse 36*4882a593SmuzhiyunTCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=no 37*4882a593Smuzhiyunendif 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun$(eval $(autotools-package)) 40