mirror of
https://github.com/utoni/nDPId.git
synced 2026-10-16 11:49:53 +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
|
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
|
||||||
PREFIX ${CMAKE_BINARY_DIR}/wireshark_ext
|
PREFIX ${CMAKE_BINARY_DIR}/wireshark_ext
|
||||||
CMAKE_ARGS
|
CMAKE_ARGS
|
||||||
|
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
||||||
|
-DCMAKE_FIND_ROOT_PATH=${CMAKE_FIND_ROOT_PATH}
|
||||||
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib
|
-DCMAKE_INSTALL_LIBDIR=lib
|
||||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||||
|
|
@ -458,6 +460,11 @@ if(ENABLE_EPAN)
|
||||||
-DENABLE_AMRNB=OFF
|
-DENABLE_AMRNB=OFF
|
||||||
-DENABLE_ILBC=OFF
|
-DENABLE_ILBC=OFF
|
||||||
-DENABLE_OPUS=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
|
# No Qt GUI
|
||||||
-DUSE_qt6=OFF
|
-DUSE_qt6=OFF
|
||||||
BUILD_BYPRODUCTS <INSTALL_DIR>/lib/${nDPId_EPAN_LIBNAME}
|
BUILD_BYPRODUCTS <INSTALL_DIR>/lib/${nDPId_EPAN_LIBNAME}
|
||||||
|
|
|
||||||
|
|
@ -1287,7 +1287,7 @@ static int mainloop(void)
|
||||||
if (read_ret == READ_TIMEOUT)
|
if (read_ret == READ_TIMEOUT)
|
||||||
{
|
{
|
||||||
logger(0,
|
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);
|
(long long unsigned int)ndpisrvd_socket->read_timeout.tv_sec);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ define Package/nDPId-testing
|
||||||
TITLE:=nDPId is a tiny nDPI based daemons / toolkit (nDPId source repository)
|
TITLE:=nDPId is a tiny nDPI based daemons / toolkit (nDPId source repository)
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
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
|
URL:=http://github.com/lnslbrty/nDPId
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ endef
|
||||||
define Package/nDPId-testing/config
|
define Package/nDPId-testing/config
|
||||||
config NDPID_TESTING_COLLECTD_SUPPORT
|
config NDPID_TESTING_COLLECTD_SUPPORT
|
||||||
bool "nDPId 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
|
default n
|
||||||
help
|
help
|
||||||
This option enables collectd to gather nDPId statistics via plugin-exec.
|
This option enables collectd to gather nDPId statistics via plugin-exec.
|
||||||
|
|
@ -60,6 +60,14 @@ config NDPID_TESTING_ENABLE_TLS
|
||||||
help
|
help
|
||||||
Enable TLS for Collector (nDPId / nDPIsrvd) and Distributor (nDPIsrvd).
|
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
|
config NDPID_TESTING_INFLUXDB
|
||||||
bool "nDPIsrvd-influxdb"
|
bool "nDPIsrvd-influxdb"
|
||||||
depends on PACKAGE_nDPId-testing
|
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 += -DLIBNDPI_STATIC=1
|
||||||
TARGET_CFLAGS += -Werror
|
TARGET_CFLAGS += -Werror
|
||||||
|
|
||||||
ifneq ($(CONFIG_NDPID_TESTING_PFRING),)
|
ifneq ($(CONFIG_NDPID_TESTING_ENABLE_TLS),)
|
||||||
CMAKE_OPTIONS += -DENABLE_CRYPTO=ON
|
CMAKE_OPTIONS += -DENABLE_CRYPTO=ON
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_NDPID_TESTING_ENABLE_EPAN),)
|
||||||
|
CMAKE_OPTIONS += -DENABLE_EPAN=ON
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_NDPID_TESTING_PFRING),)
|
ifneq ($(CONFIG_NDPID_TESTING_PFRING),)
|
||||||
# FIXME: PFRING kernel include directory is hardcoded (not installed to linux header directory).
|
# 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 \
|
CMAKE_OPTIONS += -DENABLE_PFRING=ON \
|
||||||
-DPFRING_KERNEL_INC="$(PF_RING_DIR)/kernel" \
|
-DPFRING_KERNEL_INC="$(PF_RING_DIR)/kernel" \
|
||||||
-DPFRING_INSTALLDIR="$(STAGING_DIR)/usr" \
|
-DPFRING_INSTALLDIR="$(STAGING_DIR)/usr" \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue