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
|
|
|
|
2014-12-18 19:26:51 +01:00
|
|
|
TCPREPLAY_VERSION = 4.1.0
|
2012-08-26 01:52:48 +02:00
|
|
|
TCPREPLAY_SITE = http://downloads.sourceforge.net/project/tcpreplay/tcpreplay/$(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
|
|
|
|
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))
|