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.
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
:=c491a78c52fe73f1f7271aa5d8c6ab2e
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/tcpdump
28 TITLE
:=Network monitoring and data acquisition tool
29 URL
:=http
://www.tcpdump.org
/
32 define Build
/Configure
33 $(call Build
/Configure
/Default
, \
37 BUILD_CC
="$(TARGET_CC)" \
39 td_cv_buggygetaddrinfo
="no" \
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 CCOPT
="$(TARGET_CFLAGS)" INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/tcpdump
/install
51 $(INSTALL_DIR
) $(1)/usr
/sbin
52 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tcpdump
$(1)/usr
/sbin
/
55 $(eval
$(call BuildPackage
,tcpdump
))