From 5c80aa61c04701d8c269910af3cd1c179226ce6c Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 31 Dec 2025 13:41:00 +0100 Subject: [PATCH] fix(secubox): replace luci.mk call with explicit install for appstore files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The root cause of empty appstore was that Package/luci/install macro was not installing files from usr/share/secubox/* directories. Changes: - Removed $(call Package/luci/install,$(1)) macro - Manually implemented all install steps explicitly: - Copy htdocs to /www - Copy root/* to package root - Explicitly create /usr/share/secubox directories - Explicitly install appstore/apps.json - Explicitly install profiles/*.json This ensures data files are packaged correctly in the IPK. Version: 0.7.0-5 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- luci-app-secubox/Makefile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/luci-app-secubox/Makefile b/luci-app-secubox/Makefile index 52c740ab..af9313fb 100644 --- a/luci-app-secubox/Makefile +++ b/luci-app-secubox/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-secubox PKG_VERSION:=0.7.0 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_LICENSE:=Apache-2.0 PKG_MAINTAINER:=CyberMind @@ -24,26 +24,26 @@ PKG_FILE_MODES:=/usr/libexec/rpcd/luci.secubox:root:root:755 \ include $(TOPDIR)/feeds/luci/luci.mk define Package/$(PKG_NAME)/install - $(call Package/luci/install,$(1)) + # Standard LuCI package install (htdocs, root, etc.) + $(INSTALL_DIR) $(1)/usr + $(INSTALL_DIR) $(1)/usr/share + $(INSTALL_DIR) $(1)/usr/share/rpcd + $(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d + $(INSTALL_DIR) $(1)/www + $(INSTALL_DIR) $(1)/etc + $(CP) ./htdocs/* $(1)/www/ + $(CP) ./root/* $(1)/ - # Install SecuBox profiles + # Install SecuBox data directories (MUST be explicit, not via luci.mk) + $(INSTALL_DIR) $(1)/usr/share/secubox $(INSTALL_DIR) $(1)/usr/share/secubox/profiles - for file in $(CURDIR)/profiles/*.json; do \ - [ -f "$$file" ] && $(INSTALL_DATA) $$file $(1)/usr/share/secubox/profiles/$$(basename $$file); \ - done - - # Install AppStore catalog (CRITICAL: Required for app store functionality) $(INSTALL_DIR) $(1)/usr/share/secubox/appstore - @if [ -f "$(CURDIR)/appstore/apps.json" ]; then \ - $(INSTALL_DATA) $(CURDIR)/appstore/apps.json $(1)/usr/share/secubox/appstore/apps.json; \ - echo "SecuBox: Installed appstore catalog ($(CURDIR)/appstore/apps.json -> /usr/share/secubox/appstore/apps.json)"; \ - else \ - echo "ERROR: AppStore catalog source file not found at $(CURDIR)/appstore/apps.json"; \ - echo " PWD: $$(pwd)"; \ - echo " CURDIR: $(CURDIR)"; \ - echo " Contents: $$(ls -la $(CURDIR)/ 2>&1 | head -10)"; \ - exit 1; \ - fi + + # Install profiles + $(INSTALL_DATA) ./profiles/*.json $(1)/usr/share/secubox/profiles/ 2>/dev/null || true + + # Install appstore catalog + $(INSTALL_DATA) ./appstore/apps.json $(1)/usr/share/secubox/appstore/apps.json endef define Package/$(PKG_NAME)/postinst