2010-03-06 04:24:13 +08:00
|
|
|
#
|
2013-04-02 05:07:34 +08:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
#
|
2006-05-24 15:18:36 +08:00
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=libpcap
|
2019-10-13 00:28:32 +08:00
|
|
|
PKG_VERSION:=1.9.1
|
2019-10-18 20:10:06 +08:00
|
|
|
PKG_RELEASE:=2
|
2006-05-24 15:18:36 +08:00
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2017-03-22 15:00:40 +08:00
|
|
|
PKG_SOURCE_URL:=http://www.us.tcpdump.org/release/ \
|
|
|
|
|
http://www.tcpdump.org/release/
|
2019-10-13 00:28:32 +08:00
|
|
|
PKG_HASH:=635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094
|
2006-05-24 15:18:36 +08:00
|
|
|
|
2016-06-07 14:58:31 +08:00
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
2012-10-10 20:49:37 +08:00
|
|
|
|
2019-10-18 20:10:06 +08:00
|
|
|
CMAKE_INSTALL:=1
|
2012-09-15 19:37:01 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2019-10-18 20:10:06 +08:00
|
|
|
|
2014-11-02 20:20:54 +08:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2019-10-18 20:10:06 +08:00
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2010-03-06 04:24:13 +08:00
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-10-18 20:10:06 +08:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2006-05-24 15:18:36 +08:00
|
|
|
|
|
|
|
|
define Package/libpcap
|
2006-09-24 03:29:00 +08:00
|
|
|
SECTION:=libs
|
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
|
TITLE:=Low-level packet capture library
|
|
|
|
|
URL:=http://www.tcpdump.org/
|
2010-04-16 18:03:53 +08:00
|
|
|
MENU:=1
|
2019-01-23 02:17:32 +08:00
|
|
|
ABI_VERSION:=1
|
2006-05-24 15:18:36 +08:00
|
|
|
endef
|
|
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define Package/libpcap/description
|
2010-03-06 04:24:13 +08:00
|
|
|
This package contains a system-independent library for user-level network packet
|
|
|
|
|
capture.
|
2007-09-07 16:34:51 +08:00
|
|
|
endef
|
|
|
|
|
|
2009-04-25 11:30:10 +08:00
|
|
|
define Package/libpcap/config
|
2010-04-16 18:03:53 +08:00
|
|
|
source "$(SOURCE)/Config.in"
|
2009-04-25 11:30:10 +08:00
|
|
|
endef
|
|
|
|
|
|
2019-10-18 20:10:06 +08:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
|
-DBUILD_WITH_LIBNL=OFF \
|
|
|
|
|
|
|
|
|
|
# grep 'option(DISABLE_' CMakeLists.txt | cut -f2 -d'(' | cut -f1 -d' ' | sort --unique
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
|
-DDISABLE_DAG=ON \
|
|
|
|
|
-DDISABLE_DBUS=ON \
|
|
|
|
|
-DDISABLE_NETMAP=ON \
|
|
|
|
|
-DDISABLE_RDMA=ON \
|
|
|
|
|
-DDISABLE_SEPTEL=ON \
|
|
|
|
|
-DDISABLE_SNF=ON \
|
|
|
|
|
-DDISABLE_TC=ON \
|
|
|
|
|
|
|
|
|
|
# Debugging options
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
|
-DBDEBUG=OFF \
|
|
|
|
|
-DYYDEBUG=OFF \
|
|
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += $(if $(CONFIG_PCAP_HAS_USB) ,,-DDISABLE_USB=ON)
|
|
|
|
|
CMAKE_OPTIONS += $(if $(CONFIG_PCAP_HAS_BT) ,,-DDISABLE_BLUETOOTH=ON)
|
|
|
|
|
CMAKE_OPTIONS += $(if $(CONFIG_PCAP_HAS_NETFILTER) ,,-DPCAP_SUPPORT_NETFILTER=OFF)
|
|
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += $(if $(CONFIG_IPV6),-DINET6=ON,-DINET6=OFF)
|
2006-05-24 15:18:36 +08:00
|
|
|
|
2006-06-19 02:30:40 +08:00
|
|
|
define Package/libpcap/install
|
2006-11-23 08:29:07 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-01-23 02:17:32 +08:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
|
2006-05-24 15:18:36 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpcap))
|