source: packages/net/tcpdump/Makefile @ 25531

Last change on this file since 25531 was 25531, checked in by nbd, 6 years ago

tcpdump: do not use rpc support - fixes unnecessary dependency on librpc

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.7 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        ac_cv_header_rpc_rpcent_h=no \
56        ac_cv_lib_rpc_main=no
57
58MAKE_FLAGS :=
59
60ifeq ($(BUILD_VARIANT),mini)
61  TARGET_CFLAGS += -DTCPDUMP_MINI
62  CONFIGURE_ARGS += --disable-smb
63  MAKE_FLAGS += TCPDUMP_MINI=1
64endif
65
66MAKE_FLAGS += \
67        CCOPT="$(TARGET_CFLAGS)" INCLS="-I. $(TARGET_CPPFLAGS)"
68
69
70define Package/tcpdump/install
71        $(INSTALL_DIR) $(1)/usr/sbin
72        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/
73endef
74
75Package/tcpdump-mini/install = $(Package/tcpdump/install)
76
77$(eval $(call BuildPackage,tcpdump))
78$(eval $(call BuildPackage,tcpdump-mini))
Note: See TracBrowser for help on using the repository browser.