Added netifyd-collector daemon to aggregate real-time statistics from netifyd and populate the dashboard with actual data. New Features: - Added /usr/sbin/netifyd-collector script - Queries netifyd socket for flow data - Aggregates devices, applications, protocols - Writes /var/run/netifyd/status.json - Runs every minute via cron - Added /etc/cron.d/netifyd-collector cron job - Added socat dependency for socket communication Changes: - Bumped version to 1.0.2 - Updated Makefile to install collector and cron job - Fixed dashboard empty metrics issue: * Unique Devices will now show count * Applications will now show count * Total Traffic will now show bytes This fixes the "0" values issue in dashboard Network Statistics. Dashboard will now show real metrics after 1 minute of netifyd running. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
31 lines
1.1 KiB
Makefile
31 lines
1.1 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-secubox-netifyd
|
|
PKG_VERSION:=1.0.2
|
|
PKG_RELEASE:=1
|
|
PKG_LICENSE:=MIT
|
|
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
|
PKG_ARCH:=all
|
|
|
|
LUCI_TITLE:=SecuBox Netifyd Deep Packet Inspection Interface
|
|
LUCI_DEPENDS:=+luci-base +rpcd +netifyd +jq +socat +secubox-core
|
|
LUCI_DESCRIPTION:=Complete LuCI interface for netifyd DPI engine with real-time flow monitoring, application detection, and network analytics
|
|
LUCI_PKGARCH:=all
|
|
|
|
# This is free software, licensed under the MIT License
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(call Package/luci-app-secubox-netifyd/install,$(1))
|
|
$(INSTALL_DIR) $(1)/usr/share/doc/$(PKG_NAME)
|
|
$(INSTALL_DATA) ./README-FLOW-DATA.md $(1)/usr/share/doc/$(PKG_NAME)/
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) ./root/usr/sbin/secubox-netifyd-configure $(1)/usr/sbin/
|
|
$(INSTALL_BIN) ./root/usr/sbin/netifyd-collector $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/cron.d
|
|
$(INSTALL_DATA) ./root/etc/cron.d/netifyd-collector $(1)/etc/cron.d/
|
|
endef
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
# call BuildPackage - OpenWrt buildroot
|