secubox-openwrt/package/secubox/secubox-app-bonus/Makefile
CyberMind-FR b64f9a0a1d feat(appstore): Implement KISS Evolution - feeds, profiles, skills, feedback
Add four major features to enhance SecuBox AppStore:

1. Feed Source Management:
   - Feed types: published, unpublished, development
   - Share tokens for private feed access
   - CLI: secubox feed list/add/share/import
   - LuCI: Feed type badges and share URLs in catalog-sources

2. Profile Export/Import:
   - Export configurations with feed sources embedded
   - Import from URL or file with merge/replace modes
   - CLI: secubox profile export/import/share
   - LuCI: New profiles.js view with export/import dialogs

3. Skill System:
   - Capability discovery from module catalogs
   - Quality indicators based on provider count
   - CLI: secubox skill list/providers/install/check
   - LuCI: New skills.js view with provider browser

4. Feedback Loop:
   - Issue reporting and resolution tracking
   - Search existing resolutions
   - CLI: secubox feedback report/resolve/search/list
   - LuCI: New feedback.js view for knowledge base

Technical changes:
- RPCD backend with 17 new API methods
- POSIX shell compatibility fixes (ESC via printf, tr A-Z a-z)
- LuCI menu entries for new views

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:46:27 +01:00

80 lines
2.6 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-bonus
PKG_VERSION:=0.3.0
PKG_RELEASE:=1
PKG_LICENSE:=Apache-2.0
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
PKG_ARCH:=all
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-bonus
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=SecuBox Local Package Feed & Documentation
PKGARCH:=all
endef
define Package/secubox-app-bonus/description
SecuBox local package repository for offline installation.
Provides pre-built SecuBox packages via opkg local feed at /www/secubox-feed/.
Also includes SecuBox documentation at /www/luci-static/secubox/.
endef
define Package/secubox-app-bonus/conffiles
/etc/opkg/customfeeds.conf
endef
define Build/Compile
endef
define Package/secubox-app-bonus/install
# Documentation and static content
$(INSTALL_DIR) $(1)/www/luci-static/secubox
$(CP) ./htdocs/luci-static/secubox/* $(1)/www/luci-static/secubox/
# Local package feed (populated by build)
$(INSTALL_DIR) $(1)/www/secubox-feed
if [ -d ./root/www/secubox-feed ] && [ -n "$$$$(ls -A ./root/www/secubox-feed 2>/dev/null)" ]; then \
$(CP) ./root/www/secubox-feed/* $(1)/www/secubox-feed/; \
fi
# Remove any Packages.sig to avoid opkg signature verification issues
$(RM) $(1)/www/secubox-feed/Packages.sig 2>/dev/null || true
# opkg custom feeds configuration
$(INSTALL_DIR) $(1)/etc/opkg
$(INSTALL_CONF) ./root/etc/opkg/customfeeds.conf $(1)/etc/opkg/customfeeds.conf
# Init script to sync package list on boot
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./root/etc/init.d/secubox-feed $(1)/etc/init.d/secubox-feed
# Feed management CLI tools
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./root/usr/sbin/secubox-feed $(1)/usr/sbin/secubox-feed
$(INSTALL_BIN) ./root/usr/sbin/secubox-feed-health $(1)/usr/sbin/secubox-feed-health
# RPCD interface for ubus/LuCI integration
$(INSTALL_DIR) $(1)/usr/libexec/rpcd
$(INSTALL_BIN) ./root/usr/libexec/rpcd/luci.secubox-feed $(1)/usr/libexec/rpcd/luci.secubox-feed
# HAProxy configuration snippet (optional)
$(INSTALL_DIR) $(1)/etc/haproxy/conf.d
$(INSTALL_DATA) ./root/etc/haproxy/conf.d/secubox-feed.cfg $(1)/etc/haproxy/conf.d/secubox-feed.cfg
endef
define Package/secubox-app-bonus/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
# Enable and start the feed sync service
/etc/init.d/secubox-feed enable 2>/dev/null || true
/etc/init.d/secubox-feed start 2>/dev/null || true
echo "SecuBox local package feed installed at /www/secubox-feed/"
[ -f /var/opkg-lists/secubox ] && echo "Package list: $$(grep -c '^Package:' /var/opkg-lists/secubox) packages available"
}
exit 0
endef
$(eval $(call BuildPackage,secubox-app-bonus))