secubox-openwrt/package/secubox/secubox-app-reporter/Makefile
CyberMind-FR 246f2acc18 feat(secubox-app-reporter): Add report generator for dev and services status
Two-report system for SecuBox status reporting:
- Development Status Report: health score, HISTORY.md completions, WIP items, roadmap progress
- Services Distribution Report: Tor hidden services, DNS/SSL vhosts, mesh services

Features:
- CLI: secubox-reportctl generate|send|schedule|status|preview|list|clean
- HTML output with KissTheme dark styling
- Email delivery via msmtp/sendmail with MIME multipart
- UCI configuration for SMTP and scheduling
- Cron integration for automated reports

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

52 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-reporter
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
PKG_LICENSE:=GPL-3.0
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-reporter
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=SecuBox Report Generator
DEPENDS:=+secubox-core +curl +msmtp
PKGARCH:=all
endef
define Package/secubox-app-reporter/description
Generates and distributes SecuBox status reports via HTML and email.
Includes development progress tracking and services distribution status.
endef
define Package/secubox-app-reporter/conffiles
/etc/config/secubox-reporter
endef
define Build/Compile
endef
define Package/secubox-app-reporter/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/secubox-reporter $(1)/etc/config/
$(INSTALL_DIR) $(1)/etc/cron.d
$(INSTALL_DATA) ./files/etc/cron.d/secubox-reporter $(1)/etc/cron.d/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/secubox-reportctl $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/share/secubox-reporter/lib
$(INSTALL_DATA) ./files/usr/share/secubox-reporter/lib/*.sh $(1)/usr/share/secubox-reporter/lib/
$(INSTALL_DIR) $(1)/usr/share/secubox-reporter/templates
$(INSTALL_DATA) ./files/usr/share/secubox-reporter/templates/*.tpl $(1)/usr/share/secubox-reporter/templates/
$(INSTALL_DIR) $(1)/www/reports
endef
$(eval $(call BuildPackage,secubox-app-reporter))