From 5d081cbf3e5b989589fd9448072b4979da9c5877 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 4 Jan 2026 09:11:01 +0100 Subject: [PATCH] fix(luci-app-secubox-admin): fix Makefile structure to enable package indexing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed critical Makefile structure issue that prevented luci-app-secubox-admin from being indexed by the feed system and built by the SDK. Changes: 1. Added `include $(TOPDIR)/rules.mk` at the beginning (required for all OpenWrt packages) 2. Added PKG_LICENSE and PKG_MAINTAINER fields (best practices) 3. Added LUCI_PKGARCH:=all to match other LuCI packages 4. Added closing comment `# call BuildPackage - OpenWrt buildroot` 5. Moved include statements to proper positions This fix aligns the Makefile with the standard OpenWrt/LuCI package structure used by luci-app-secubox and other working packages. Additionally: - Suppressed kconfig warnings in local-build.sh by redirecting stderr to /dev/null for all `make defconfig` commands (lines 532, 782, 1278) Build verification: ✅ Package now appears in feeds/secubox.index ✅ Successfully builds: luci-app-secubox-admin_1.0.0-r2_all.ipk (8.3KB) ✅ Total SecuBox packages built: 33 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- package/secubox/luci-app-secubox-admin/Makefile | 10 ++++++++-- secubox-tools/local-build.sh | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package/secubox/luci-app-secubox-admin/Makefile b/package/secubox/luci-app-secubox-admin/Makefile index 3e595ec4..6a51994f 100644 --- a/package/secubox/luci-app-secubox-admin/Makefile +++ b/package/secubox/luci-app-secubox-admin/Makefile @@ -1,12 +1,18 @@ -include $(TOPDIR)/feeds/luci/luci.mk +include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-secubox-admin PKG_VERSION:=1.0.0 PKG_RELEASE:=2 -PKG_ARCH:=all +PKG_LICENSE:=MIT +PKG_MAINTAINER:=CyberMind LUCI_TITLE:=LuCI SecuBox Admin Control Center LUCI_DEPENDS:=+luci-base +luci-app-secubox +rpcd +secubox-core LUCI_DESCRIPTION:=Unified admin control center for SecuBox appstore plugins with system monitoring +LUCI_PKGARCH:=all # This is free software, licensed under the MIT License + +include $(TOPDIR)/feeds/luci/luci.mk + +# call BuildPackage - OpenWrt buildroot diff --git a/secubox-tools/local-build.sh b/secubox-tools/local-build.sh index 2e4a7f8f..2a7d3d35 100755 --- a/secubox-tools/local-build.sh +++ b/secubox-tools/local-build.sh @@ -529,7 +529,7 @@ LUCI_MK rm -f feeds/telephony.index feeds/routing.index 2>/dev/null || true rm -rf feeds/telephony feeds/routing 2>/dev/null || true - make defconfig + make defconfig 2>/dev/null cd - > /dev/null @@ -779,7 +779,7 @@ configure_packages() { echo "CONFIG_FEED_packages=y" >> .config echo "CONFIG_FEED_luci=y" >> .config - make defconfig + make defconfig 2>/dev/null cd - > /dev/null @@ -1275,7 +1275,7 @@ EOF esac # Run defconfig - make defconfig + make defconfig 2>/dev/null cd - > /dev/null