1 ################################################################################
5 ################################################################################
7 TCPREPLAY_VERSION = 4.1.0
8 TCPREPLAY_SITE = http://downloads.sourceforge.net/project/tcpreplay/tcpreplay/$(TCPREPLAY_VERSION)
9 TCPREPLAY_LICENSE = GPLv3
10 TCPREPLAY_LICENSE_FILES = docs/LICENSE
11 TCPREPLAY_CONF_ENV = \
12 tr_cv_libpcap_version=">= 0.7.0" \
14 $(call AUTOCONF_AC_CHECK_FILE_VAL,$(STAGING_DIR)/usr/include/pcap-netmap.c)=no
15 TCPREPLAY_CONF_OPTS = --with-libpcap=$(STAGING_DIR)/usr
16 TCPREPLAY_DEPENDENCIES = libpcap
18 # libpcap may depend on symbols in other libs
19 TCPREPLAY_LIBS = $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --libs)
20 TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close='$(TCPREPLAY_LIBS)' \
21 LIBS="$(TCPREPLAY_LIBS)"
23 ifeq ($(BR2_PACKAGE_TCPDUMP),y)
24 TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump
26 TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=no
29 $(eval $(autotools-package))