2 # Copyright (C) 2007 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
:=c491a78c52fe73f1f7271aa5d8c6ab2e
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
, \
36 BUILD_CC
="$(TARGET_CC)" \
38 td_cv_buggygetaddrinfo
="no" \
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
49 define Package
/tcpdump
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tcpdump
$(1)/usr
/sbin
/
54 $(eval
$(call BuildPackage
,tcpdump
))