secubox-openwrt/package/secubox/secubox-app-peertube/Makefile
CyberMind-FR bbf2b19415 feat(peertube): Add video import with multi-track subtitle sync
- New peertube-import script for importing from YouTube, Vimeo, 1000+ sites
- CGI endpoints for portal integration (peertube-import, peertube-import-status)
- Portal UI: Video Import card with progress tracking
- Multi-language subtitle download and PeerTube caption upload
- Fixed stdout/stderr separation for reliable function returns
- UCI config: uses peertube.admin.username/password
- Package version bumped to 1.2.0
- Added README.md with full documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-21 20:18:51 +01:00

59 lines
1.9 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-peertube
PKG_RELEASE:=1
PKG_VERSION:=1.2.0
PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
PKG_LICENSE:=AGPL-3.0
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-peertube
SECTION:=net
CATEGORY:=Network
PKGARCH:=all
SUBMENU:=SecuBox Apps
TITLE:=SecuBox PeerTube Video Platform
DEPENDS:=+lxc +lxc-common +wget-ssl +tar +jsonfilter
endef
define Package/secubox-app-peertube/description
PeerTube federated video streaming platform.
Runs in an LXC Debian container with PostgreSQL, Redis, and Node.js.
Supports video hosting, live streaming, and ActivityPub federation.
Includes peertube-analyse: transcript extraction and Claude AI analysis.
Includes peertube-import: auto-import from YouTube/Vimeo with multi-track subtitles.
endef
define Package/secubox-app-peertube/conffiles
/etc/config/peertube
endef
define Build/Compile
endef
define Package/secubox-app-peertube/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/peertube $(1)/etc/config/peertube
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/peertube $(1)/etc/init.d/peertube
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/peertubectl $(1)/usr/sbin/peertubectl
$(INSTALL_BIN) ./files/usr/sbin/peertube-analyse $(1)/usr/sbin/peertube-analyse
$(INSTALL_BIN) ./files/usr/sbin/peertube-import $(1)/usr/sbin/peertube-import
$(INSTALL_DIR) $(1)/www/peertube-analyse
$(INSTALL_DATA) ./files/www/peertube-analyse/index.html $(1)/www/peertube-analyse/
$(INSTALL_DIR) $(1)/www/cgi-bin
$(INSTALL_BIN) ./files/www/cgi-bin/peertube-analyse $(1)/www/cgi-bin/
$(INSTALL_BIN) ./files/www/cgi-bin/peertube-analyse-status $(1)/www/cgi-bin/
$(INSTALL_BIN) ./files/www/cgi-bin/peertube-import $(1)/www/cgi-bin/
$(INSTALL_BIN) ./files/www/cgi-bin/peertube-import-status $(1)/www/cgi-bin/
endef
$(eval $(call BuildPackage,secubox-app-peertube))