b5285fa15af276d8faeb99f67219e26c4d191cac
[openwrt/svn-archive/archive.git] / net / tcpdump / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tcpdump
11 PKG_VERSION:=4.0.0
12 PKG_RELEASE:=1
13
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
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tcpdump
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpcap
27 TITLE:=Network monitoring and data acquisition tool
28 URL:=http://www.tcpdump.org/
29 endef
30
31 define Build/Configure
32 $(call Build/Configure/Default, \
33 --without-crypto \
34 , \
35 BUILD_CC="$(TARGET_CC)" \
36 HOSTCC="$(HOSTCC)" \
37 td_cv_buggygetaddrinfo="no" \
38 )
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)" \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/tcpdump/install
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,tcpdump))