2025-12-23 17:53:18 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=luci-app-secubox
|
2025-12-29 08:29:14 +00:00
|
|
|
PKG_VERSION:=0.5.1
|
|
|
|
|
PKG_RELEASE:=1
|
2025-12-23 17:53:18 +00:00
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
|
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
|
|
|
|
|
|
|
|
|
LUCI_TITLE:=LuCI - SecuBox Hub (Central Dashboard)
|
|
|
|
|
LUCI_DESCRIPTION:=Central control hub for all SecuBox modules. Provides unified dashboard, module status, system health monitoring, and quick actions.
|
|
|
|
|
LUCI_DEPENDS:=+luci-base +rpcd +curl +jq
|
|
|
|
|
LUCI_PKGARCH:=all
|
|
|
|
|
|
2025-12-28 13:34:31 +00:00
|
|
|
# File permissions (CRITICAL: RPCD scripts MUST be executable 755)
|
|
|
|
|
# Format: path:owner:group:mode
|
|
|
|
|
# - RPCD scripts: 755 (executable by root, required for ubus calls)
|
|
|
|
|
# - Helper scripts: 755 (if executable)
|
|
|
|
|
# - Config files: 644 (readable by all, writable by root)
|
|
|
|
|
# - CSS/JS files: 644 (set automatically by luci.mk)
|
2025-12-28 07:05:06 +00:00
|
|
|
PKG_FILE_MODES:=/usr/libexec/rpcd/luci.secubox:root:root:755 \
|
|
|
|
|
/usr/libexec/secubox/fix-permissions.sh:root:root:755
|
2025-12-28 01:19:30 +00:00
|
|
|
|
2025-12-23 17:53:18 +00:00
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
|
|
2025-12-29 16:14:04 +00:00
|
|
|
define Package/$(PKG_NAME)/install
|
|
|
|
|
$(call Package/luci/install,$(1))
|
2025-12-29 16:22:34 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/secubox/profiles
|
2025-12-29 20:57:12 +00:00
|
|
|
for file in $(CURDIR)/profiles/*.json; do \
|
2025-12-29 16:22:34 +00:00
|
|
|
$(INSTALL_DATA) $$file $(1)/usr/share/secubox/profiles/$$(basename $$file); \
|
|
|
|
|
done
|
2025-12-29 16:14:04 +00:00
|
|
|
endef
|
|
|
|
|
|
2025-12-23 17:53:18 +00:00
|
|
|
# call BuildPackage - OpenWrt buildroot
|