secubox-openwrt/package/secubox/secubox-app-hexojs/Makefile
CyberMind-FR d9e77745db fix(deps): Remove libubox/libubus/libuci from all SecuBox package dependencies
These base OpenWrt libraries are always present on the system but their
versions in the SDK-built feed don't match the router's installed versions,
causing opkg to fail with "Cannot satisfy dependencies" errors.

Fixed packages (18 total):
- secubox-core: removed libubox, libubus, libuci
- luci-app-ksm-manager: removed libubus, libubox
- luci-app-mqtt-bridge: removed libuci
- secubox-app-adguardhome: removed uci, libuci
- secubox-app-auth-logger: removed libubox-lua
- secubox-app-domoticz: removed uci, libuci
- secubox-app-gitea: removed uci, libuci
- secubox-app-glances: removed uci, libuci
- secubox-app-hexojs: removed uci, libuci
- secubox-app-lyrion: removed uci, libuci
- secubox-app-magicmirror2: removed uci, libuci
- secubox-app-mailinabox: removed uci, libuci
- secubox-app-mitmproxy: removed uci, libuci
- secubox-app-nextcloud: removed uci, libuci
- secubox-app-ollama: removed uci, libuci
- secubox-app-picobrew: removed uci, libuci
- secubox-app-streamlit: removed uci, libuci
- secubox-app-zigbee2mqtt: removed uci, libuci

The packages still work because these libs are implicitly available.

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

91 lines
2.3 KiB
Makefile

# SPDX-License-Identifier: MIT
#
# Copyright (C) 2025 CyberMind.fr
#
# SecuBox Hexo CMS - Self-hosted blog platform
include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-hexojs
PKG_VERSION:=1.0.0
PKG_RELEASE:=8
PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-hexojs
SECTION:=utils
CATEGORY:=Utilities
PKGARCH:=all
SUBMENU:=SecuBox Apps
TITLE:=SecuBox Hexo CMS
DEPENDS:=jsonfilter +wget-ssl +tar +lxc +lxc-common +git +rsync
endef
define Package/secubox-app-hexojs/description
Hexo CMS - Self-hosted static blog generator for OpenWrt
Features:
- Hexo 8.x static site generator with Node.js 22 LTS
- CyberMind theme with dark mode and modern design
- Post and page management with Markdown editor
- Media library for images and files
- GitHub Pages deployment support
- Preview server for local testing
- Categories, tags, and apps portfolio
Runs in LXC container with Alpine Linux.
Configure in /etc/config/hexojs.
endef
define Package/secubox-app-hexojs/conffiles
/etc/config/hexojs
endef
define Build/Compile
endef
define Package/secubox-app-hexojs/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/hexojs $(1)/etc/config/hexojs
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/hexojs $(1)/etc/init.d/hexojs
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/hexoctl $(1)/usr/sbin/hexoctl
$(INSTALL_DIR) $(1)/usr/share/hexojs/scaffolds
$(CP) ./files/usr/share/hexojs/scaffolds/* $(1)/usr/share/hexojs/scaffolds/
$(INSTALL_DIR) $(1)/usr/share/hexojs/presets
$(CP) ./files/usr/share/hexojs/presets/* $(1)/usr/share/hexojs/presets/
$(INSTALL_DIR) $(1)/usr/share/hexojs/themes/cybermind
$(CP) ./files/usr/share/hexojs/themes/cybermind/* $(1)/usr/share/hexojs/themes/cybermind/
endef
define Package/secubox-app-hexojs/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
echo ""
echo "Hexo CMS installed."
echo ""
echo "To install and start Hexo CMS:"
echo " hexoctl install"
echo " hexoctl site create default"
echo " /etc/init.d/hexojs start"
echo ""
echo "Preview: http://<router-ip>:4000"
echo ""
echo "Use LuCI interface for full CMS features."
echo ""
}
exit 0
endef
$(eval $(call BuildPackage,secubox-app-hexojs))