2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
17 http://ftp.gwdg.de/pub/misc/tcpdump/ \
18 http://www.at.tcpdump.org/ \
19 http://www.br.tcpdump.org/
20 PKG_MD5SUM:=4b64755bbc8ba1af49c747271a6df5b8
23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
24 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
26 include $(INCLUDE_DIR)/package.mk
28 define Package/tcpdump
32 TITLE:=Network monitoring and data acquisition tool
33 URL:=http://www.tcpdump.org/
36 define Build/Configure
37 $(call Build/Configure/Default, \
41 BUILD_CC="$(TARGET_CC)" \
43 td_cv_buggygetaddrinfo="no" \
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
54 define Package/tcpdump/install
55 install -m0755 -d $(1)/usr/sbin
56 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
59 $(eval $(call BuildPackage,tcpdump))