mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-06 05:54:25 +00:00
5809fb4546
Update to latest version. For release information look into CHANGES file [0]. Automatically refreshed: - 001-remove_pcap_debug.patch Manually refreshed: - 100-tcpdump_mini.patch old ipkg sizes: 316554 bin/packages/mips_24kc/base/tcpdump_4.99.1-1_mips_24kc.ipk 141457 bin/packages/mips_24kc/base/tcpdump-mini_4.99.1-1_mips_24kc.ipk new ipkg sizes: 318089 bin/packages/mips_24kc/base/tcpdump_4.99.2-1_mips_24kc.ipk 141941 bin/packages/mips_24kc/base/tcpdump-mini_4.99.2-1_mips_24kc.ipk [0] - https://github.com/the-tcpdump-group/tcpdump/blob/master/CHANGES Signed-off-by: Nick Hainke <vincent@systemli.org>
69 lines
1.5 KiB
Makefile
69 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=tcpdump
|
|
PKG_VERSION:=4.99.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://www.tcpdump.org/release/
|
|
PKG_HASH:=f4304357d34b79d46f4e17e654f1f91f9ce4e3d5608a1badbd53295a26fb44d5
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_CPE_ID:=cpe:/a:tcpdump:tcpdump
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/tcpdump/default
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libpcap
|
|
TITLE:=Network monitoring and data acquisition tool
|
|
URL:=http://www.tcpdump.org/
|
|
endef
|
|
|
|
define Package/tcpdump
|
|
$(Package/tcpdump/default)
|
|
VARIANT:=full
|
|
endef
|
|
|
|
define Package/tcpdump-mini
|
|
$(Package/tcpdump/default)
|
|
TITLE+= (minimal version)
|
|
VARIANT:=mini
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--without-cap-ng \
|
|
--without-crypto \
|
|
$(call autoconf_bool,CONFIG_IPV6,ipv6)
|
|
|
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
ifeq ($(BUILD_VARIANT),mini)
|
|
TARGET_CFLAGS += -DTCPDUMP_MINI
|
|
CONFIGURE_ARGS += --disable-smb
|
|
MAKE_FLAGS += TCPDUMP_MINI=1
|
|
endif
|
|
|
|
define Package/tcpdump/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tcpdump $(1)/usr/bin/
|
|
endef
|
|
|
|
Package/tcpdump-mini/install = $(Package/tcpdump/install)
|
|
|
|
$(eval $(call BuildPackage,tcpdump))
|
|
$(eval $(call BuildPackage,tcpdump-mini))
|