secubox-openwrt/package/secubox/secubox-app-gotosocial/Makefile
CyberMind-FR f20bb1df6b feat(gotosocial): Add GoToSocial Fediverse server packages
Add secubox-app-gotosocial and luci-app-gotosocial for running a lightweight
ActivityPub social network server in LXC container.

Features:
- gotosocialctl CLI with install, start, stop, user management
- LXC container deployment (ARM64)
- HAProxy integration via emancipate command
- UCI configuration for instance, container, proxy, federation settings
- LuCI web interface with overview, users, and settings tabs
- Mesh integration support for auto-federation between SecuBox nodes
- Backup/restore functionality

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

40 lines
1.1 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-gotosocial
PKG_VERSION:=0.1.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox Team
PKG_LICENSE:=MIT
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-gotosocial
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=GoToSocial Fediverse Server
DEPENDS:=+lxc +lxc-attach +wget +jq +openssl-util
PKGARCH:=all
endef
define Package/secubox-app-gotosocial/description
Lightweight ActivityPub social network server for SecuBox.
Provides a self-hosted Fediverse instance with LuCI management.
endef
define Package/secubox-app-gotosocial/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/gotosocial $(1)/etc/config/gotosocial
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/etc/init.d/gotosocial $(1)/etc/init.d/gotosocial
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/gotosocialctl $(1)/usr/sbin/gotosocialctl
$(INSTALL_DIR) $(1)/usr/share/gotosocial
$(INSTALL_DATA) ./files/usr/share/gotosocial/config.yaml.template $(1)/usr/share/gotosocial/
endef
$(eval $(call BuildPackage,secubox-app-gotosocial))