void-packages/srcpkgs/synapse/template
Joel Beckmeyer b30e92c6e5 synapse: update to 1.51.0.
- Switch to python3-pytest for running tests (@paper42)

- remove logging process. By default synapse only logs to stderr when
there is a problem with configuration.  For this we don't need a process
running that won't do anything for 99% of the time.  Logging to runsvdir
should be enough.
- make service configurable. That way one can set desired locale and path
to config file.
- remove patches to sample config.
- create directory for config.
Improvements contributed by David Flatz <david@upcs.at>.
2022-01-26 16:57:26 +01:00

38 lines
1.5 KiB
Bash

# Template file for 'synapse'
pkgname=synapse
version=1.51.0
revision=1
build_style=python3-module
make_check_target=tests
hostmakedepends="python3-setuptools"
depends="python3-jsonschema python3-frozendict python3-canonicaljson
python3-signedjson python3-pynacl python3-service_identity python3-Twisted
python3-openssl python3-yaml python3-pyasn1 python3-pyasn1-modules
python3-bcrypt python3-Pillow python3-psutil python3-msgpack
python3-phonenumbers python3-prometheus_client python3-attrs python3-netaddr
python3-setuptools python3-bleach python3-Jinja2 python3-psycopg2 python3-lxml
python3-saml2 python3-treq python3-macaroons python3-sortedcontainers
python3-typing_extensions python3-ijson python3-matrix-common"
checkdepends="$depends python3-parameterized python3-pytest"
short_desc="Matrix reference homeserver"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="Apache-2.0"
homepage="https://github.com/matrix-org/synapse"
changelog="https://raw.githubusercontent.com/matrix-org/synapse/develop/CHANGES.md"
distfiles="https://github.com/matrix-org/synapse/archive/v${version}.tar.gz"
checksum=acb587b9d4a92f15bc5f6e1f5b598ee1e1a7c3a298c923ff73ffd505de779353
system_accounts="synapse"
synapse_homedir="/var/lib/synapse"
make_dirs="
/var/lib/synapse 0700 synapse synapse
/etc/synapse 755 synapse synapse
/var/log/synapse 0755 synapse synapse"
post_install() {
vsv synapse
vsconf docs/sample_config.yaml homeserver.yaml
vsconf docs/sample_log_config.yaml log.yaml
}