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-03-10 21:26:34 +01:00
|
|
|
TCPREPLAY_VERSION = 4.0.3
|
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" \
|
|
|
|
ac_cv_have_bpf=no
|
2011-08-10 00:12:53 +02:00
|
|
|
TCPREPLAY_CONF_OPT = --with-libpcap=$(STAGING_DIR)/usr
|
2012-06-26 23:25:29 +02:00
|
|
|
TCPREPLAY_DEPENDENCIES = libpcap
|
2009-07-30 03:59:49 +02:00
|
|
|
|
2012-06-27 09:42:33 +02:00
|
|
|
# libpcap may depend on symbols in libusb as well
|
|
|
|
TCPREPLAY_LIBS = -lpcap $(if $(BR2_PACKAGE_LIBUSB),-lusb-1.0)
|
|
|
|
TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close='$(TCPREPLAY_LIBS)'
|
|
|
|
|
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))
|