aboutsummaryrefslogtreecommitdiffstats
path: root/package/tcpdump
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-01 19:42:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-01 19:42:11 +0000
commit3c7d6ae5880d5caa312e167f63cdf96c860aa652 (patch)
tree4287f20ee698f00e4d0bf63a0d5f7c51187fbba3 /package/tcpdump
parent777a28a85d0cedf076d512c70dee78a2bca2ddaa (diff)
downloadbuildroot-novena-3c7d6ae5880d5caa312e167f63cdf96c860aa652.tar.gz
buildroot-novena-3c7d6ae5880d5caa312e167f63cdf96c860aa652.zip
- add option to turn on SMB dump routines
- honour BR2_INET_IPV6
Diffstat (limited to 'package/tcpdump')
-rw-r--r--package/tcpdump/Config.in7
-rw-r--r--package/tcpdump/tcpdump.mk9
2 files changed, 15 insertions, 1 deletions
diff --git a/package/tcpdump/Config.in b/package/tcpdump/Config.in
index dbe48ba34..63fec6c57 100644
--- a/package/tcpdump/Config.in
+++ b/package/tcpdump/Config.in
@@ -7,6 +7,13 @@ config BR2_PACKAGE_TCPDUMP
http://www.tcpdump.org/
+config BR2_PACKAGE_TCPDUMP_SMB
+ bool "smb dump support"
+ default n
+ depends on BR2_PACKAGE_TCPDUMP
+ help
+ enable possibly-buggy SMB printer
+
config BR2_PACKAGE_DHCPDUMP
bool "dhcpdump"
default n
diff --git a/package/tcpdump/tcpdump.mk b/package/tcpdump/tcpdump.mk
index 2a8dd1ef2..fcd478b61 100644
--- a/package/tcpdump/tcpdump.mk
+++ b/package/tcpdump/tcpdump.mk
@@ -12,6 +12,12 @@ TCPDUMP_SITE:=http://www.tcpdump.org/release
TCPDUMP_SOURCE:=tcpdump-$(TCPDUMP_VERSION).tar.gz
TCPDUMP_CAT:=$(ZCAT)
+ifneq ($(BR2_PACKAGE_TCPDUMP_SMB),y)
+TCPDUMP_ENABLE_SMB:=--disable-smb
+else
+TCPDUMP_ENABLE_SMB:=--enable-smb
+endif
+
$(DL_DIR)/$(TCPDUMP_SOURCE):
$(WGET) -P $(DL_DIR) $(TCPDUMP_SITE)/$(TCPDUMP_SOURCE)
@@ -37,7 +43,8 @@ $(TCPDUMP_DIR)/.configured: $(TCPDUMP_DIR)/.unpacked
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--without-crypto \
- --disable-smb \
+ $(TCPDUMP_ENABLE_SMB) \
+ $(DISABLE_IPV6) \
)
$(SED) '/HAVE_PCAP_DEBUG/d' $(TCPDUMP_DIR)/config.h
touch $@