secubox-openwrt/package/secubox/secubox-app-talk-hpb/Makefile
CyberMind-FR daacdb731c feat(talk-hpb): Add Nextcloud Talk High Performance Backend package
New package secubox-app-talk-hpb:
- Docker-based signaling server and Janus WebRTC gateway
- Auto-generates TURN/SIGNALING/INTERNAL secrets
- Creates HAProxy vhost with SSL/ACME
- STUN/TURN server with UDP+TCP support
- CLI tool: talk-hpbctl setup/status/test/logs

Hub generator v5:
- Add PeerTube videos with thumbnails and duration badges
- Fix Streamlit instance detection (=instance vs =app)
- Total count now: sites + streamlit + videos

MetaBlogizer fix:
- Add priority=50 to new vhosts to prevent wildcard catch

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-22 15:13:02 +01:00

48 lines
1.2 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-talk-hpb
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox <contact@secubox.in>
PKG_LICENSE:=GPL-3.0
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-talk-hpb
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=Nextcloud Talk High Performance Backend
DEPENDS:=+docker +curl +openssl-util
PKGARCH:=all
endef
define Package/secubox-app-talk-hpb/description
Nextcloud Talk High Performance Backend for SecuBox.
Provides signaling server and Janus WebRTC gateway for
improved video/audio call quality in Nextcloud Talk.
Runs as Docker container with automatic configuration.
endef
define Package/secubox-app-talk-hpb/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/talk-hpb $(1)/etc/config/talk-hpb
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/talk-hpb $(1)/etc/init.d/talk-hpb
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/talk-hpbctl $(1)/usr/sbin/talk-hpbctl
endef
define Package/secubox-app-talk-hpb/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
# Generate secrets if not set
/usr/sbin/talk-hpbctl generate-secrets 2>/dev/null || true
}
exit 0
endef
$(eval $(call BuildPackage,secubox-app-talk-hpb))