feat(local-build): Add missing toolchain package shorthands

Add shorthand names for all toolchain packages so they can be used
directly with the build command without requiring full directory names.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-02 07:15:00 +01:00
parent b0cf6e2240
commit bae3b3f0c4

View File

@ -52,22 +52,29 @@ declare -A DEVICE_PROFILES=(
# Packages that must be built in the OpenWrt buildroot (toolchain) instead of the SDK. # Packages that must be built in the OpenWrt buildroot (toolchain) instead of the SDK.
# These packages compile native code and need system libraries not available in SDK. # These packages compile native code and need system libraries not available in SDK.
# NOTE: secubox-app-* wrappers are PKGARCH:=all (shell scripts) and CAN be built in SDK. # NOTE: secubox-app-* wrappers are PKGARCH:=all (shell scripts) and CAN be built in SDK.
# Include both shorthand names and full directory names for easy CLI usage.
OPENWRT_ONLY_PACKAGES=( OPENWRT_ONLY_PACKAGES=(
# C/C++ native binaries # C/C++ native binaries
"netifyd" # C++ native binary (Netify DPI) "netifyd" # Shorthand
"secubox-app-netifyd" # C++ native binary wrapper "secubox-app-netifyd" # C++ native binary wrapper
"ndpid" # C++ native binary (nDPI) "ndpid" # Shorthand
"secubox-app-ndpid" # C++ native binary wrapper "secubox-app-ndpid" # C++ native binary wrapper
"nodogsplash" # C native binary (captive portal) "nodogsplash" # Shorthand
"secubox-app-nodogsplash" # C native binary wrapper (needs microhttpd) "secubox-app-nodogsplash" # C native binary wrapper (needs microhttpd)
# Go binaries # Go binaries
"crowdsec" # Go binary "crowdsec" # Shorthand
"secubox-app-crowdsec" # Go binary wrapper "secubox-app-crowdsec" # Go binary wrapper
"crowdsec-firewall-bouncer" # Go binary "crowdsec-firewall-bouncer" # Full name
"cs-firewall-bouncer" # Shorthand
"secubox-app-cs-firewall-bouncer" # Go binary wrapper "secubox-app-cs-firewall-bouncer" # Go binary wrapper
# Python/special packages # Python/special packages
"mitmproxy" # Shorthand
"secubox-app-mitmproxy" # Binary download package
"metablogizer" # Shorthand
"secubox-app-metablogizer" # Python dependencies "secubox-app-metablogizer" # Python dependencies
"tor" # Shorthand
"luci-app-tor" # Requires tor daemon compilation "luci-app-tor" # Requires tor daemon compilation
"secubox-app-tor" # Tor service wrapper
) )
# Helper functions # Helper functions
@ -1544,6 +1551,7 @@ run_build_openwrt() {
["tor"]="secubox-app-tor" ["tor"]="secubox-app-tor"
["luci-app-tor"]="luci-app-tor" ["luci-app-tor"]="luci-app-tor"
["cs-firewall-bouncer"]="secubox-app-cs-firewall-bouncer" ["cs-firewall-bouncer"]="secubox-app-cs-firewall-bouncer"
["crowdsec-firewall-bouncer"]="secubox-app-cs-firewall-bouncer"
) )
# Map directory names to actual package names (PKG_NAME in Makefile) # Map directory names to actual package names (PKG_NAME in Makefile)
@ -2631,7 +2639,10 @@ PACKAGES:
netifyd Netifyd DPI engine (shorthand for secubox-app-netifyd) netifyd Netifyd DPI engine (shorthand for secubox-app-netifyd)
nodogsplash Captive portal (shorthand for secubox-app-nodogsplash) nodogsplash Captive portal (shorthand for secubox-app-nodogsplash)
crowdsec CrowdSec IPS (shorthand for secubox-app-crowdsec) crowdsec CrowdSec IPS (shorthand for secubox-app-crowdsec)
mitmproxy mitmproxy HTTPS proxy (shorthand for secubox-app-mitmproxy) cs-firewall-bouncer CrowdSec Firewall Bouncer (Go binary)
mitmproxy mitmproxy HTTPS proxy (binary download)
metablogizer Metablogizer (Python dependencies)
tor Tor service (shorthand for secubox-app-tor)
secubox-app-* Full directory names also accepted secubox-app-* Full directory names also accepted
ARCHITECTURES (for package building): ARCHITECTURES (for package building):
@ -2673,6 +2684,15 @@ EXAMPLES:
# Build mitmproxy HTTPS proxy (toolchain - binary download) # Build mitmproxy HTTPS proxy (toolchain - binary download)
$0 build mitmproxy $0 build mitmproxy
# Build CrowdSec Firewall Bouncer (toolchain - Go)
$0 build cs-firewall-bouncer
# Build Tor service (toolchain)
$0 build tor
# Build Metablogizer (toolchain - Python deps)
$0 build metablogizer
# Build using full directory name # Build using full directory name
$0 build secubox-app-ndpid $0 build secubox-app-ndpid