source: packages/net/tcpdump/Makefile @ 22081

Last change on this file since 22081 was 22081, checked in by jow, 6 years ago

[packages] tcpdump: properly handle iface names with leading digits (#7572)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2007-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tcpdump
11PKG_VERSION:=4.0.0
12PKG_RELEASE:=3
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_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/
19PKG_MD5SUM:=b22ca72890df2301d922c9f2d17867f9
20
21PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
22
23PKG_INSTALL:=1
24
25include $(INCLUDE_DIR)/package.mk
26
27define Package/tcpdump/default
28  SECTION:=net
29  CATEGORY:=Network
30  DEPENDS:=+libpcap
31  TITLE:=Network monitoring and data acquisition tool
32  URL:=http://www.tcpdump.org/
33endef
34
35define Package/tcpdump
36  $(Package/tcpdump/default)
37  VARIANT:=full
38endef
39
40define Package/tcpdump-mini
41  $(Package/tcpdump/default)
42  TITLE+= (minimal version)
43  VARIANT:=mini
44endef
45
46CONFIGURE_ARGS += \
47        --without-crypto \
48        --enable-ipv6
49
50CONFIGURE_VARS += \
51        BUILD_CC="$(TARGET_CC)" \
52        HOSTCC="$(HOSTCC)" \
53        td_cv_buggygetaddrinfo="no" \
54        ac_cv_linux_vers=$(LINUX_VERSION)
55
56MAKE_FLAGS :=
57
58ifeq ($(BUILD_VARIANT),mini)
59  TARGET_CFLAGS += -DTCPDUMP_MINI
60  CONFIGURE_ARGS += --disable-smb
61  MAKE_FLAGS += TCPDUMP_MINI=1
62endif
63
64MAKE_FLAGS += \
65        CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
66
67
68define Package/tcpdump/install
69        $(INSTALL_DIR) $(1)/usr/sbin
70        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
71endef
72
73Package/tcpdump-mini/install = $(Package/tcpdump/install)
74
75$(eval $(call BuildPackage,tcpdump))
76$(eval $(call BuildPackage,tcpdump-mini))
Note: See TracBrowser for help on using the repository browser.