mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
c5cfe2c5fe
commit
2d3b659bd2
2 changed files with 1 additions and 89 deletions
|
@ -1,88 +0,0 @@
|
||||||
#
|
|
||||||
# Based on package from https://github.com/openwrt-develop/ndpi-netfilter/
|
|
||||||
# Copyright (C) 2018-2020 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
|
||||||
|
|
||||||
PKG_NAME:=ndpi-netfilter2
|
|
||||||
PKG_RELEASE:=3
|
|
||||||
PKG_REV:=59f295ba86110f2642f76eb967b041c4108fedd5
|
|
||||||
PKG_VERSION:=4-$(PKG_REV)
|
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
PKG_SOURCE_URL:=https://github.com/vel21ripn/nDPI.git
|
|
||||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
|
|
||||||
define Package/iptables-mod-ndpi
|
|
||||||
SUBMENU:=Firewall
|
|
||||||
SECTION:=net
|
|
||||||
CATEGORY:=Network
|
|
||||||
TITLE:=ndpi successor of OpenDPI
|
|
||||||
URL:=http://www.ntop.org/products/ndpi/
|
|
||||||
# DEPENDS:=+iptables +iptables-mod-conntrack-extra +kmod-ipt-ndpi +libpcap
|
|
||||||
DEPENDS:=+iptables +kmod-ipt-ndpi +libpcap
|
|
||||||
MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/iptables-mod-ndpi/description
|
|
||||||
nDPI is a ntop-maintained superset of the popular OpenDPI library
|
|
||||||
endef
|
|
||||||
|
|
||||||
#CONFIGURE_CMD = ./autogen.sh
|
|
||||||
#CONFIGURE_ARGS += --with-pic
|
|
||||||
MAKE_PATH := ndpi-netfilter
|
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
|
||||||
KERNEL_DIR="$(LINUX_DIR)" \
|
|
||||||
MODULES_DIR="$(TARGET_MODULES_DIR)" \
|
|
||||||
ARCH="$(LINUX_KARCH)" \
|
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
||||||
NDPI_PATH=$(PKG_BUILD_DIR)/ndpi-netfilter
|
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
cd $(PKG_BUILD_DIR) && \
|
|
||||||
CC="" ./autogen.sh \
|
|
||||||
--host="$(GNU_TARGET_NAME)"
|
|
||||||
# --with-pic \
|
|
||||||
# CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
# HOST_CFLAGS="$(BUILD_CFLAGS)" \
|
|
||||||
# BUILD_CPPFLAGS="$(TARGET_CPPLAGS)" \
|
|
||||||
# BUILD_CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
# BUILD_LDFLAGS="$(TARGET_LDFLAGS)"
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
(cd $(PKG_BUILD_DIR)/src/lib &&\
|
|
||||||
gcc -g -O2 -fPIC -DPIC -DNDPI_LIB_COMPILATION -I../../src/include/ -I../../src/lib/third_party/include/ ndpi_network_list_compile.c -o ndpi_network_list_compile &&\
|
|
||||||
./ndpi_network_list_compile -o ndpi_network_list.c.inc ndpi_network_list_std.yaml ndpi_network_list_tor.yaml)
|
|
||||||
$(MAKE) $(MAKE_FLAGS) -C $(PKG_BUILD_DIR)/ndpi-netfilter
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/iptables-mod-ndpi/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ndpi-netfilter/ipt/libxt_ndpi.so $(1)/usr/lib/iptables
|
|
||||||
endef
|
|
||||||
|
|
||||||
define KernelPackage/ipt-ndpi
|
|
||||||
SUBMENU:=Netfilter Extensions
|
|
||||||
TITLE:= nDPI net netfilter module
|
|
||||||
DEPENDS:=+kmod-nf-conntrack +kmod-nf-conntrack-netlink +kmod-ipt-compat-xtables +libpcap
|
|
||||||
KCONFIG:=CONFIG_NF_CONNTRACK_LABELS=y \
|
|
||||||
CONFIG_NETFILTER_XT_MATCH_CONNLABEL=y
|
|
||||||
FILES:= $(PKG_BUILD_DIR)/ndpi-netfilter/src/xt_ndpi.ko
|
|
||||||
AUTOLOAD:=$(call AutoProbe,xt_ndpi)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,iptables-mod-ndpi))
|
|
||||||
$(eval $(call KernelPackage,ipt-ndpi))
|
|
|
@ -39,7 +39,7 @@ MY_DEPENDS := \
|
||||||
luci-app-omr-tracker luci-app-omr-dscp \
|
luci-app-omr-tracker luci-app-omr-dscp \
|
||||||
luci-app-sqm sqm-scripts-extra \
|
luci-app-sqm sqm-scripts-extra \
|
||||||
luci-app-vnstat2 omr-quota luci-app-omr-quota \
|
luci-app-vnstat2 omr-quota luci-app-omr-quota \
|
||||||
luci-app-mptcp luci-app-openmptcprouter luci-app-omr-bypass luci-app-mail luci-app-upnp \
|
luci-app-mptcp luci-app-openmptcprouter luci-app-omr-bypass luci-app-mail \
|
||||||
luci-app-wol luci-app-opkg \
|
luci-app-wol luci-app-opkg \
|
||||||
luci-app-uhttpd \
|
luci-app-uhttpd \
|
||||||
luci-mod-rpc rpcd-mod-rpcsys rpcd-mod-file rpcd-mod-iwinfo \
|
luci-mod-rpc rpcd-mod-rpcsys rpcd-mod-file rpcd-mod-iwinfo \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue