2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.tcpdump.org
/release
/ \
16 http
://ftp.gwdg.de
/pub
/misc
/tcpdump
/ \
17 http
://www.at.tcpdump.org
/ \
18 http
://www.br.tcpdump.org
/
19 PKG_MD5SUM
:=b22ca72890df2301d922c9f2d17867f9
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/tcpdump
27 TITLE
:=Network monitoring and data acquisition tool
28 URL
:=http
://www.tcpdump.org
/
31 define Build
/Configure
32 $(call Build
/Configure
/Default
, \
35 BUILD_CC
="$(TARGET_CC)" \
37 td_cv_buggygetaddrinfo
="no" \
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. $(TARGET_CPPFLAGS)" \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Package
/tcpdump
/install
49 $(INSTALL_DIR
) $(1)/usr
/sbin
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tcpdump
$(1)/usr
/sbin
/
53 $(eval
$(call BuildPackage
,tcpdump
))