587806cc733ecd30934f494137624f4bee699c27
[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:=3.9.8
12 PKG_RELEASE:=2
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:=c491a78c52fe73f1f7271aa5d8c6ab2e
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 --enable-ipv6 \
34 --without-crypto \
35 , \
36 BUILD_CC="$(TARGET_CC)" \
37 HOSTCC="$(HOSTCC)" \
38 td_cv_buggygetaddrinfo="no" \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)" \
45 DESTDIR="$(PKG_INSTALL_DIR)" \
46 all install
47 endef
48
49 define Package/tcpdump/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
52 endef
53
54 $(eval $(call BuildPackage,tcpdump))