snikket_ynh/manifest.toml
2024-06-10 03:23:02 +02:00

96 lines
3.1 KiB
TOML

packaging_format = 2
id = "snikket"
name = "Snikket"
description.en = "Chat that is simple, secure, and private"
# TODO: post_cert_update hook to steal certs
# TODO: Deal with /var/www/snikket
# TODO: Remove cert check (and import certs)
version = "2024.02.21~ynh1"
maintainers = ["NorbiPeti"]
[upstream]
license = "Apache"
website = "https://snikket.org/"
admindoc = "https://snikket.org/service/help/"
code = "https://github.com/snikket-im/snikket-server/"
fund = "https://snikket.org/donate/"
[integration]
yunohost = ">= 11.2"
architectures = "all"
multi_instance = false
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"
[install]
[install.domain]
# this is a generic question - ask strings are automatically handled by YunoHost's core
type = "domain"
[install.admin]
type = "email"
ask.en = "Administrator E-mail"
help.en = "Provide an E-mail address where users can contact you"
[install.init_main_permission]
type = "group"
default = "visitors"
[resources]
[resources.sources.main]
url = "https://github.com/snikket-im/snikket-server/archive/refs/tags/stable.20240221.tar.gz"
sha256 = "f33ad5ccddb52bb08059b0b7b0b38ab4d7ceb1304866b214ce554546efface06"
[resources.sources.prosody]
url = "https://hg.prosody.im/trunk/archive/41a587613a0e.tar.gz"
sha256 = "701ce4761b1979614712ac9c9c13cb700415469a8e11ed9e3140fd6795bbcdcd"
[resources.sources.prosody-modules]
url = "https://hg.prosody.im/prosody-modules/archive/095030677ae6.tar.gz"
sha256 = "8c2a51ef72cbe86a3b2a8e5c4d8656ee1d167f153223b481b5e8c4c5ed85f11d"
[resources.sources.snikket-portal]
url = "snikket/snikket-web-portal:dev"
sha256 = "a43d2131ac32ebdc2394675bf33ea75a9e2996e13ea352398909a30feab27c16"
format = "docker"
prefetch = false # Prefetch doesn't seem to be supported with Docker images
[resources.system_user]
[resources.install_dir]
[resources.data_dir]
[resources.ports] # TODO: TURN server ports
file.default=5000
file.exposed="TCP"
file.fixed=true
client.default=5222
client.exposed="TCP"
client.fixed=true
server.default=5269
server.exposed="TCP"
server.fixed=true
http.default=5280
main.exposed="TCP"
# TODO: Need to remove/disable Metronome *before* installation starts because of the port allocation here
# TODO: Or switch to using prosody_ynh as a dependency
[resources.permissions]
main.url = "/"
main.additional_urls = [ "groups.__DOMAIN__/", "share.__DOMAIN__/" ]
[resources.apt]
packages = "libicu-dev, libidn11-dev, libssl-dev, openssl, txt2man, lua-luaossl, lua-readline, dns-root-data, lua-dbi-sqlite3, build-essential, python3-dev, python3-pip, python3-venv"
packages_from_raw_bash = """
if [[ $YNH_DEBIAN_VERSION == "bullseye" ]]; then
echo "lua5.2, lua5.2-expat, lua5.2-socket, lua5.2-sec, lua5.2-unbound, liblua5.2-dev, lua-busted";
elif [[ $YNH_DEBIAN_VERSION == "bookworm" ]]; then
echo "lua5.4, lua5.4-expat, lua5.4-socket, lua5.4-sec, lua5.4-unbound, liblua5.4-dev, lua-busted";
fi
"""