package/upmpcli: bump to version 0.13.1
[buildroot-gz.git] / package / tcpdump / tcpdump.mk
blob14b3503937732bf6f87ce50293346561fba836b0
1 ################################################################################
3 # tcpdump
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
11 TCPDUMP_CONF_ENV = \
12 ac_cv_linux_vers=2 \
13 td_cv_buggygetaddrinfo=no \
14 PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
15 TCPDUMP_CONF_OPTS = \
16 --without-crypto \
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`"
23 endif
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)
28 endef
30 TCPDUMP_POST_INSTALL_TARGET_HOOKS += TCPDUMP_REMOVE_DUPLICATED_BINARY
32 $(eval $(autotools-package))