2006-07-02 20:33:21 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tcpdump
|
|
|
|
PKG_VERSION:=3.9.4
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
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/
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_MD5SUM:=4b64755bbc8ba1af49c747271a6df5b8
|
2006-07-02 20:33:21 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/tcpdump
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=+libpcap
|
|
|
|
TITLE:=Network monitoring and data acquisition tool
|
|
|
|
URL:=http://www.tcpdump.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-28 22:43:08 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--without-crypto \
|
|
|
|
, \
|
|
|
|
BUILD_CC="$(TARGET_CC)" \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
2006-07-02 20:33:21 +00:00
|
|
|
td_cv_buggygetaddrinfo="no" \
|
2006-10-28 22:43:08 +00:00
|
|
|
)
|
2006-07-02 20:33:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tcpdump/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-07-02 20:33:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,tcpdump))
|