2009-08-10 23:32:58 +00:00
|
|
|
#
|
2011-12-07 16:03:54 +00:00
|
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
2006-07-02 20:33:21 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tcpdump
|
2011-06-02 14:24:18 +00:00
|
|
|
PKG_VERSION:=4.1.1
|
2011-12-07 16:03:54 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-02 20:33:21 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-07-02 20:33:21 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
|
|
|
|
http://ftp.gwdg.de/pub/misc/tcpdump/ \
|
|
|
|
http://www.at.tcpdump.org/ \
|
|
|
|
http://www.br.tcpdump.org/
|
2011-06-02 14:24:18 +00:00
|
|
|
PKG_MD5SUM:=d0dd58bbd6cd36795e05c6f1f74420b0
|
2006-07-02 20:33:21 +00:00
|
|
|
|
2009-11-22 07:14:47 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2010-02-12 15:25:49 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-07-02 20:33:21 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2009-11-22 07:14:47 +00:00
|
|
|
define Package/tcpdump/default
|
2006-07-02 20:33:21 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libpcap
|
|
|
|
TITLE:=Network monitoring and data acquisition tool
|
|
|
|
URL:=http://www.tcpdump.org/
|
|
|
|
endef
|
|
|
|
|
2009-11-22 07:14:47 +00:00
|
|
|
define Package/tcpdump
|
|
|
|
$(Package/tcpdump/default)
|
|
|
|
VARIANT:=full
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tcpdump-mini
|
|
|
|
$(Package/tcpdump/default)
|
|
|
|
TITLE+= (minimal version)
|
|
|
|
VARIANT:=mini
|
2006-07-02 20:33:21 +00:00
|
|
|
endef
|
|
|
|
|
2010-02-18 21:38:12 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--without-crypto \
|
|
|
|
--enable-ipv6
|
2009-11-22 07:14:47 +00:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
BUILD_CC="$(TARGET_CC)" \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
2010-02-15 14:51:28 +00:00
|
|
|
td_cv_buggygetaddrinfo="no" \
|
2011-02-13 20:22:38 +00:00
|
|
|
ac_cv_linux_vers=$(LINUX_VERSION) \
|
|
|
|
ac_cv_header_rpc_rpcent_h=no \
|
2011-12-07 16:03:54 +00:00
|
|
|
ac_cv_lib_rpc_main=no \
|
|
|
|
ac_cv_path_PCAP_CONFIG=""
|
2009-11-22 07:14:47 +00:00
|
|
|
|
2010-02-18 21:38:10 +00:00
|
|
|
MAKE_FLAGS :=
|
2010-02-12 15:25:49 +00:00
|
|
|
|
2009-11-22 07:14:47 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),mini)
|
|
|
|
TARGET_CFLAGS += -DTCPDUMP_MINI
|
|
|
|
CONFIGURE_ARGS += --disable-smb
|
2010-02-12 15:25:49 +00:00
|
|
|
MAKE_FLAGS += TCPDUMP_MINI=1
|
2009-11-22 07:14:47 +00:00
|
|
|
endif
|
|
|
|
|
2010-02-18 21:38:10 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
|
|
|
|
|
|
|
|
|
2006-07-02 20:33:21 +00:00
|
|
|
define Package/tcpdump/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
|
2006-07-02 20:33:21 +00:00
|
|
|
endef
|
|
|
|
|
2009-11-22 07:14:47 +00:00
|
|
|
Package/tcpdump-mini/install = $(Package/tcpdump/install)
|
|
|
|
|
2006-07-02 20:33:21 +00:00
|
|
|
$(eval $(call BuildPackage,tcpdump))
|
2009-11-22 07:14:47 +00:00
|
|
|
$(eval $(call BuildPackage,tcpdump-mini))
|