secubox-openwrt/package/secubox/luci-theme-secubox/Makefile
CyberMind-FR 5294d26375 fix(luci-theme-secubox): Add ucode templates for LuCI 24.10 compatibility
- Add header.ut and footer.ut ucode templates (required by modern LuCI)
- Remove old Lua templates (incompatible with OpenWrt 24.10)
- Add mobile.css for responsive styling
- Update UCI defaults to register theme in luci.themes section
- Bump PKG_RELEASE to 3

The theme now properly loads via LuCI's theme system with:
- CRT P31 phosphor green cascade.css
- crt-engine.js for scanline effects
- Proper ucode template integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 07:29:55 +01:00

46 lines
1.7 KiB
Makefile

# SPDX-License-Identifier: MIT
# SecuBox CRT P31 Phosphor Theme for OpenWrt LuCI
# CyberMind — SecuBox — 2026
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-theme-secubox
PKG_VERSION:=1.0.0
PKG_RELEASE:=3
PKG_MAINTAINER:=Gerald KERMA <devel@cybermind.fr>
PKG_LICENSE:=MIT
LUCI_TITLE:=SecuBox CRT P31 Phosphor Theme
LUCI_DEPENDS:=+luci-base
LUCI_DESCRIPTION:=CRT P31 phosphor green terminal theme for SecuBox mesh network appliance. Features scanlines, phosphor glow effects, multiple theme variants including CRT-P31, dark, cyberpunk, and more.
include $(TOPDIR)/feeds/luci/luci.mk
define Package/luci-theme-secubox/install
# Main theme directory (CRT P31 base)
$(INSTALL_DIR) $(1)/www/luci-static/secubox
$(CP) ./htdocs/luci-static/secubox/* $(1)/www/luci-static/secubox/
# Theme system resources
$(INSTALL_DIR) $(1)/www/luci-static/resources/secubox-theme
$(CP) ./htdocs/luci-static/resources/secubox-theme/* $(1)/www/luci-static/resources/secubox-theme/
# KISS theme helper for individual modules
$(INSTALL_DIR) $(1)/www/luci-static/resources/secubox
$(CP) ./htdocs/luci-static/resources/secubox/* $(1)/www/luci-static/resources/secubox/
# Ucode templates (required for LuCI theme selection)
$(INSTALL_DIR) $(1)/usr/share/ucode/luci/template/themes/secubox
$(CP) ./ucode/luci/template/themes/secubox/*.ut $(1)/usr/share/ucode/luci/template/themes/secubox/
# UCI defaults
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./root/etc/uci-defaults/90-luci-theme-secubox $(1)/etc/uci-defaults/
endef
define Package/luci-theme-secubox/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
uci set luci.main.mediaurlbase='/luci-static/secubox'
uci commit luci
}
endef
$(eval $(call BuildPackage,luci-theme-secubox))