secubox-openwrt/package/secubox/luci-app-reporter/Makefile
CyberMind-FR 1479db43ad feat(luci-app-reporter): Add LuCI frontend for Report Generator
KISS-themed dashboard for SecuBox Report Generator:
- Status overview with report counts and schedule status
- Quick action cards for dev/services/all reports
- Generate and Send buttons with email support
- Reports list with view/delete actions
- Schedule configuration (daily/weekly/off)
- Email configuration status and test button

RPCD Methods:
- status: Get generator status and report counts
- list_reports: List all generated reports with metadata
- generate/send: Create reports (optionally send via email)
- schedule: Configure cron schedules
- delete_report: Remove report files
- test_email: Send test email

Menu: SecuBox → System → Report Generator

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-13 09:37:47 +01:00

34 lines
1.0 KiB
Makefile

# SPDX-License-Identifier: MIT
# LuCI App Reporter - Web UI for SecuBox Report Generator
# Copyright (C) 2025-2026 CyberMind.fr
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-reporter
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
PKG_LICENSE:=MIT
LUCI_TITLE:=LuCI Reporter Dashboard
LUCI_DEPENDS:=+secubox-app-reporter +luci-base
include $(TOPDIR)/feeds/luci/luci.mk
define Package/luci-app-reporter/install
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/reporter
$(INSTALL_DATA) ./htdocs/luci-static/resources/view/reporter/*.js $(1)/www/luci-static/resources/view/reporter/
$(INSTALL_DIR) $(1)/usr/share/luci/menu.d
$(INSTALL_DATA) ./root/usr/share/luci/menu.d/*.json $(1)/usr/share/luci/menu.d/
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
$(INSTALL_DATA) ./root/usr/share/rpcd/acl.d/*.json $(1)/usr/share/rpcd/acl.d/
$(INSTALL_DIR) $(1)/usr/libexec/rpcd
$(INSTALL_BIN) ./root/usr/libexec/rpcd/luci.reporter $(1)/usr/libexec/rpcd/luci.reporter
endef
$(eval $(call BuildPackage,luci-app-reporter))