snikket_ynh/manifest.toml

96 lines
3.1 KiB
TOML
Raw Normal View History

2024-05-18 15:16:58 +00:00
packaging_format = 2
2024-05-22 18:35:41 +00:00
id = "snikket"
name = "Snikket"
2024-05-24 23:35:07 +00:00
description.en = "Chat that is simple, secure, and private"
2024-05-25 01:19:34 +00:00
# TODO: post_cert_update hook to steal certs
# TODO: Deal with /var/www/snikket
# TODO: Remove cert check (and import certs)
2024-05-18 15:16:58 +00:00
2024-05-22 18:42:09 +00:00
version = "2024.02.21~ynh1"
2024-05-18 15:16:58 +00:00
2024-05-22 18:35:41 +00:00
maintainers = ["NorbiPeti"]
2024-05-18 15:16:58 +00:00
[upstream]
2024-05-22 18:35:41 +00:00
license = "Apache"
website = "https://snikket.org/"
2024-05-24 23:35:07 +00:00
admindoc = "https://snikket.org/service/help/"
2024-05-22 18:35:41 +00:00
code = "https://github.com/snikket-im/snikket-server/"
2024-05-24 23:35:07 +00:00
fund = "https://snikket.org/donate/"
2024-05-18 15:16:58 +00:00
[integration]
yunohost = ">= 11.2"
architectures = "all"
multi_instance = false
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"
[install]
2024-05-24 23:35:07 +00:00
[install.domain]
# this is a generic question - ask strings are automatically handled by YunoHost's core
type = "domain"
[install.admin]
2024-05-25 01:19:34 +00:00
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"
2024-05-18 15:16:58 +00:00
[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
2024-05-18 15:16:58 +00:00
[resources.system_user]
[resources.install_dir]
[resources.data_dir]
2024-05-26 22:08:46 +00:00
[resources.ports] # TODO: TURN server ports
2024-05-18 15:16:58 +00:00
file.default=5000
2024-05-26 22:08:46 +00:00
file.exposed="TCP"
file.fixed=true
2024-05-18 15:16:58 +00:00
client.default=5222
2024-05-26 22:08:46 +00:00
client.exposed="TCP"
client.fixed=true
2024-05-18 15:16:58 +00:00
server.default=5269
2024-05-26 22:08:46 +00:00
server.exposed="TCP"
server.fixed=true
http.default=5280
main.exposed="TCP"
2024-05-26 22:08:46 +00:00
# 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
2024-05-18 15:16:58 +00:00
[resources.permissions]
main.url = "/"
main.additional_urls = [ "groups.__DOMAIN__/", "share.__DOMAIN__/" ]
2024-05-18 15:16:58 +00:00
[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"
2024-05-18 15:16:58 +00:00
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
"""