1 ################################################################################
5 ################################################################################
7 TCPDUMP_VERSION
= 4.7.4
8 TCPDUMP_SITE
= http
://www.tcpdump.org
/release
9 TCPDUMP_LICENSE
= BSD-3c
10 TCPDUMP_LICENSE_FILES
= LICENSE
13 td_cv_buggygetaddrinfo
=no \
14 PCAP_CONFIG
=$(STAGING_DIR
)/usr
/bin
/pcap-config
17 --with-system-libpcap \
18 $(if
$(BR2_PACKAGE_TCPDUMP_SMB
),--enable-smb
,--disable-smb
)
19 TCPDUMP_DEPENDENCIES
= zlib libpcap
21 ifeq ($(BR2_STATIC_LIBS
),y
)
22 TCPDUMP_CONF_OPTS
+= LIBS
="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
25 # make install installs an unneeded extra copy of the tcpdump binary
26 define TCPDUMP_REMOVE_DUPLICATED_BINARY
27 rm -f
$(TARGET_DIR
)/usr
/sbin
/tcpdump.
$(TCPDUMP_VERSION
)
30 TCPDUMP_POST_INSTALL_TARGET_HOOKS
+= TCPDUMP_REMOVE_DUPLICATED_BINARY
32 $(eval
$(autotools-package
))