mirror of
https://github.com/utoni/nDPId.git
synced 2026-10-14 20:12:48 +00:00
OpenWrt build support
Some checks failed
Build OpenWrt Packages / build (armsr-armv8) (push) Has been cancelled
Build OpenWrt Packages / build (malta-be) (push) Has been cancelled
Build OpenWrt Packages / build (ramips-mt7621) (push) Has been cancelled
Build OpenWrt Packages / build (x86-64) (push) Has been cancelled
Some checks failed
Build OpenWrt Packages / build (armsr-armv8) (push) Has been cancelled
Build OpenWrt Packages / build (malta-be) (push) Has been cancelled
Build OpenWrt Packages / build (ramips-mt7621) (push) Has been cancelled
Build OpenWrt Packages / build (x86-64) (push) Has been cancelled
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
parent
578598527f
commit
4c753f3917
3 changed files with 24 additions and 5 deletions
|
|
@ -416,6 +416,8 @@ if(ENABLE_EPAN)
|
|||
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
|
||||
PREFIX ${CMAKE_BINARY_DIR}/wireshark_ext
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
||||
-DCMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH}
|
||||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||
-DCMAKE_INSTALL_LIBDIR=lib
|
||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||
|
|
@ -458,6 +460,11 @@ if(ENABLE_EPAN)
|
|||
-DENABLE_AMRNB=OFF
|
||||
-DENABLE_ILBC=OFF
|
||||
-DENABLE_OPUS=OFF
|
||||
-DENABLE_ZLIB=OFF # does not work with OpenWrt
|
||||
-DENABLE_ZLIBNG=OFF
|
||||
-DENABLE_ZSTD=OFF
|
||||
-DHAVE_C99_VSNPRINTF_EXITCODE=0 # fix C99 vsnprintf check
|
||||
-DLEMON_EXECUTABLE=false # important for XCompilation
|
||||
# No Qt GUI
|
||||
-DUSE_qt6=OFF
|
||||
BUILD_BYPRODUCTS <INSTALL_DIR>/lib/${nDPId_EPAN_LIBNAME}
|
||||
|
|
|
|||
|
|
@ -1287,7 +1287,7 @@ static int mainloop(void)
|
|||
if (read_ret == READ_TIMEOUT)
|
||||
{
|
||||
logger(0,
|
||||
"No data received during the last %llu second(s).\n",
|
||||
"No data received during the last %llu second(s).",
|
||||
(long long unsigned int)ndpisrvd_socket->read_timeout.tv_sec);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ define Package/nDPId-testing
|
|||
TITLE:=nDPId is a tiny nDPI based daemons / toolkit (nDPId source repository)
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=@!SMALL_FLASH @!LOW_MEMORY_FOOTPRINT +libpcap +zlib +LIBNDPI_GCRYPT:libgcrypt +NDPID_TESTING_ENABLE_TLS:libopenssl +NDPID_TESTING_INFLUXDB:libcurl +NDPID_TESTING_PFRING:libpfring
|
||||
DEPENDS:=@!SMALL_FLASH @!LOW_MEMORY_FOOTPRINT +libpcap +zlib +LIBNDPI_GCRYPT:libgcrypt +NDPID_TESTING_ENABLE_TLS:libopenssl +NDPID_TESTING_INFLUXDB:libcurl +NDPID_TESTING_PFRING:libpfring +NDPID_TESTING_PFRING:kmod-pf-ring +NDPID_TESTING_ENABLE_EPAN:libcares +NDPID_TESTING_ENABLE_EPAN:glib2 +NDPID_TESTING_ENABLE_EPAN:libgcrypt
|
||||
URL:=http://github.com/lnslbrty/nDPId
|
||||
endef
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ endef
|
|||
define Package/nDPId-testing/config
|
||||
config NDPID_TESTING_COLLECTD_SUPPORT
|
||||
bool "nDPId collectd support"
|
||||
depends on PACKAGE_nDPId-testing && PACKAGE_collectd-mod-exec && !CONFIG_NDPID_COLLECTD_SUPPORT
|
||||
depends on PACKAGE_nDPId-testing
|
||||
default n
|
||||
help
|
||||
This option enables collectd to gather nDPId statistics via plugin-exec.
|
||||
|
|
@ -60,6 +60,14 @@ config NDPID_TESTING_ENABLE_TLS
|
|||
help
|
||||
Enable TLS for Collector (nDPId / nDPIsrvd) and Distributor (nDPIsrvd).
|
||||
|
||||
config NDPID_TESTING_ENABLE_EPAN
|
||||
bool "nDPId Wireshark EPAN support"
|
||||
depends on PACKAGE_nDPId-testing
|
||||
default n
|
||||
help
|
||||
Enable additional dissection support with Wireshark EPAN.
|
||||
EPAN: Ethereal Packet Analyzer.
|
||||
|
||||
config NDPID_TESTING_INFLUXDB
|
||||
bool "nDPIsrvd-influxdb"
|
||||
depends on PACKAGE_nDPId-testing
|
||||
|
|
@ -88,13 +96,17 @@ CMAKE_OPTIONS += -DSTATIC_LIBNDPI_INSTALLDIR="$(PKG_BUILD_DIR)/libnDPI/install"
|
|||
TARGET_CFLAGS += -DLIBNDPI_STATIC=1
|
||||
TARGET_CFLAGS += -Werror
|
||||
|
||||
ifneq ($(CONFIG_NDPID_TESTING_PFRING),)
|
||||
ifneq ($(CONFIG_NDPID_TESTING_ENABLE_TLS),)
|
||||
CMAKE_OPTIONS += -DENABLE_CRYPTO=ON
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_NDPID_TESTING_ENABLE_EPAN),)
|
||||
CMAKE_OPTIONS += -DENABLE_EPAN=ON
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_NDPID_TESTING_PFRING),)
|
||||
# FIXME: PFRING kernel include directory is hardcoded (not installed to linux header directory).
|
||||
PF_RING_DIR := $(firstword $(wildcard $(KERNEL_BUILD_DIR)/libpfring-*))
|
||||
PF_RING_DIR := $(firstword $(wildcard $(BUILD_DIR)/PF_RING-*))
|
||||
CMAKE_OPTIONS += -DENABLE_PFRING=ON \
|
||||
-DPFRING_KERNEL_INC="$(PF_RING_DIR)/kernel" \
|
||||
-DPFRING_INSTALLDIR="$(STAGING_DIR)/usr" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue