diff options
Diffstat (limited to 'net/nDPId')
-rw-r--r-- | net/nDPId/Makefile | 25 | ||||
-rw-r--r-- | net/nDPId/patches/001-enable-in-source-build.patch | 17 |
2 files changed, 30 insertions, 12 deletions
diff --git a/net/nDPId/Makefile b/net/nDPId/Makefile index 5952ea3..e9b328b 100644 --- a/net/nDPId/Makefile +++ b/net/nDPId/Makefile @@ -1,23 +1,27 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nDPId -PKG_VERSION:=1.4 +PKG_VERSION:=1.5 PKG_RELEASE:=$(AUTORELEASE) -PKG_SOURCE:=$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://github.com/lnslbrty/nDPId/archive/refs/tags -PKG_HASH:=b2a95d7ea1798e48bccabf879f7327c7cc27db83301dafc483e01bff7dc2b4f4 +#PKG_SOURCE:=$(PKG_VERSION).tar.gz +#PKG_SOURCE_URL:=https://github.com/lnslbrty/nDPId/archive/refs/tags +#PKG_HASH:=a512d5fbdcdaef01a0c3ee7f6b8870ac9c6c870e11c1a30b782550e2cd247de7 + +# 1.5 Release does not work with current libndpi builds. +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/lnslbrty/nDPId.git +PKG_SOURCE_VERSION:=83409e5b79ab224372dd8486249c668b2998a0a4 +PKG_HASH:=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=Toni PKG_LICENSE:=GPL-3 PKG_LICENSE_FILES:=COPYING -PKG_BUILD_DEPENDS:=libndpi-master CMAKE_INSTALL:=1 -NDPI_STATIC_LIB="$(STAGING_DIR)/usr/lib/libndpi-master.a" -NDPI_INC="$(STAGING_DIR)/usr/include/ndpi-master" - include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk @@ -25,7 +29,7 @@ define Package/nDPId TITLE:=nDPId is a tiny nDPI based daemons / toolkit SECTION:=net CATEGORY:=Network - DEPENDS:=+libpcap +LIBNDPI_GCRYPT:libgcrypt + DEPENDS:=+libpcap +LIBNDPI_GCRYPT:libgcrypt +libndpi URL:=http://github.com/lnslbrty/nDPId endef @@ -46,11 +50,8 @@ endef CMAKE_OPTIONS += -DBUILD_EXAMPLES=ON CMAKE_OPTIONS += -DBUILD_NDPI=OFF -CMAKE_OPTIONS += -DNDPI_NO_PKGCONFIG=ON CMAKE_OPTIONS += -DENABLE_SANITIZER=OFF CMAKE_OPTIONS += -DENABLE_MEMORY_PROFILING=OFF -CMAKE_OPTIONS += -DLIBNDPI_INC="$(NDPI_INC)" -CMAKE_OPTIONS += -DLIBNDPI_LIB="$(NDPI_STATIC_LIB)" ifneq ($(CONFIG_LIBNDPI_GCRYPT),) CMAKE_OPTIONS += -DNDPI_WIDTH_GCRYPT=ON diff --git a/net/nDPId/patches/001-enable-in-source-build.patch b/net/nDPId/patches/001-enable-in-source-build.patch new file mode 100644 index 0000000..86432dc --- /dev/null +++ b/net/nDPId/patches/001-enable-in-source-build.patch @@ -0,0 +1,17 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9045237..83f72b3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,12 +1,5 @@ + cmake_minimum_required(VERSION 3.12.4) + project(nDPId C) +-if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}") +- message(FATAL_ERROR "In-source builds are not allowed.\n" +- "Please remove ${PROJECT_SOURCE_DIR}/CMakeCache.txt\n" +- "and\n" +- "${PROJECT_SOURCE_DIR}/CMakeFiles\n" +- "Create a build directory somewhere and run CMake again.") +-endif() + set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) + find_package(PkgConfig REQUIRED) + |