secubox-openwrt/package/secubox/secubox-app-gk2hub/Makefile
CyberMind-FR a472e755ea feat(gk2hub): Add GK2 Hub landing page generator package
New package secubox-app-gk2hub provides:
- /usr/bin/gk2hub-generate: Dynamic landing page generator
- /www/gk2-hub/index.html: Served via uhttpd

Aggregates services from:
- Streamlit instances (from UCI config)
- MetaBlogizer sites (from /srv/metablogizer/sites/)
- Infrastructure services (hardcoded)

Auto-regenerates on install via postinst script.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-12 14:41:53 +01:00

44 lines
1.0 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-gk2hub
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-gk2hub
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=GK2 Hub Landing Page Generator
DEPENDS:=+uhttpd
PKGARCH:=all
endef
define Package/secubox-app-gk2hub/description
Dynamic landing page generator for GK2 SecuBox services.
Aggregates Streamlit apps, MetaBlogizer sites, and infrastructure
services into a single service directory page.
endef
define Build/Compile
endef
define Package/secubox-app-gk2hub/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/usr/bin/gk2hub-generate $(1)/usr/bin/
$(INSTALL_DIR) $(1)/www/gk2-hub
$(INSTALL_DATA) ./files/www/gk2-hub/index.html $(1)/www/gk2-hub/
endef
define Package/secubox-app-gk2hub/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || /usr/bin/gk2hub-generate >/dev/null 2>&1 || true
exit 0
endef
$(eval $(call BuildPackage,secubox-app-gk2hub))