Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Fixed tcpreplay auto build errors
@ 2014-01-21 10:41 Martin Bark
  2014-01-22  3:07 ` Chris Packham
  0 siblings, 1 reply; 13+ messages in thread
From: Martin Bark @ 2014-01-21 10:41 UTC (permalink / raw)
  To: buildroot

tcpreplay fails to compile unless it finds the tcpdump binary.  This patch
makes tcpreplay dependent on tcpdump and sets the configure script to use
tcpdump on the target

Signed-off-by: Martin Bark <martin@barkynet.com>
---
 package/tcpreplay/Config.in    |    1 +
 package/tcpreplay/tcpreplay.mk |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/tcpreplay/Config.in b/package/tcpreplay/Config.in
index 2ba2eb5..49c3284 100644
--- a/package/tcpreplay/Config.in
+++ b/package/tcpreplay/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TCPREPLAY
 	bool "tcpreplay"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBPCAP
+	select BR2_PACKAGE_TCPDUMP
 	help
 	  Tcpreplay is a tool for replaying network traffic from files saved
 	  with tcpdump or other tools which write pcap(3) files.
diff --git a/package/tcpreplay/tcpreplay.mk b/package/tcpreplay/tcpreplay.mk
index 0939c6c..f6a7c85 100644
--- a/package/tcpreplay/tcpreplay.mk
+++ b/package/tcpreplay/tcpreplay.mk
@@ -11,8 +11,9 @@ TCPREPLAY_LICENSE_FILES = docs/LICENSE
 TCPREPLAY_CONF_ENV = \
 	tr_cv_libpcap_version=">= 0.7.0" \
 	ac_cv_have_bpf=no
-TCPREPLAY_CONF_OPT = --with-libpcap=$(STAGING_DIR)/usr
-TCPREPLAY_DEPENDENCIES = libpcap
+TCPREPLAY_CONF_OPT = --with-libpcap=$(STAGING_DIR)/usr \
+	--with-tcpdump=$(TARGET_DIR)/usr/sbin/tcpdump
+TCPREPLAY_DEPENDENCIES = libpcap tcpdump
 
 # libpcap may depend on symbols in libusb as well
 TCPREPLAY_LIBS = -lpcap $(if $(BR2_PACKAGE_LIBUSB),-lusb-1.0)
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-01-28 10:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21 10:41 [Buildroot] [PATCH 1/1] Fixed tcpreplay auto build errors Martin Bark
2014-01-22  3:07 ` Chris Packham
2014-01-22  8:58   ` Peter Korsgaard
2014-01-23  0:54     ` Chris Packham
2014-01-23  7:37       ` Peter Korsgaard
2014-01-23  9:07         ` [Buildroot] [PATCH] tcpreplay: cross-compile with tcpdump support Chris Packham
2014-01-23 11:30           ` Peter Korsgaard
2014-01-23 20:08             ` Martin Bark
2014-01-23 21:31               ` Peter Korsgaard
2014-01-23 22:47                 ` Chris Packham
2014-01-27 14:26                   ` Peter Korsgaard
2014-01-28  9:37                     ` [Buildroot] [PATCH] tcpreplay: Bump version to 4.0.2 Chris Packham
2014-01-28 10:28                       ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox