forked from ports/contrib
matrix-synapse: use python3-installer instead of python3-install
This commit is contained in:
parent
270bf9dfbe
commit
439b7af977
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF33JmaBg8PNH5YjfAIXWct6K3f1qaReRN+4dx/Ncg7vABZblzrTnh9dufMbH7AT1Vyu6AMtvKaeQq7Wz6nk2GyAg=
|
||||
SHA256 (Pkgfile) = 050710de53064190a6379401bd819a6e7d1bf655d5ffd5e56cc2306af50310ba
|
||||
SHA256 (.footprint) = 1b9511788e4b67da8585511e3b2f787c47ac5b31cad55627fb049597da369c2e
|
||||
RWSagIOpLGJF30ZWOaU+DrPbCO18FgsVjq9bWNBD/Vcfw5FRyxBh2mc6w7mkIPd4nez7cK4lSfJTocAzj51ch6F5aliYVFdvrgQ=
|
||||
SHA256 (Pkgfile) = 1022fcaf01a06ab4c40381b0e4f55a61bdc73d58f28a728ef92254d08794adf0
|
||||
SHA256 (.footprint) = 94e4e89a1299f51c31c82d72bad693240132e7c3ad27c3acc9a39e8c4fa14d6a
|
||||
SHA256 (matrix-synapse-1.62.0.tar.gz) = 395a5ebaefe6a027149017bfc110b11fbae1e9fb3f6165272406ab00334b1515
|
||||
SHA256 (synapse.service) = 6507699b1b562cb7fe449e2c3868847794fb38bd6a58e6ddd7e72af55f38abc3
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Description: Matrix reference homeserver
|
||||
# URL: https://github.com/matrix-org/synapse
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: python3-bcrypt python3-bleach python3-ijson python3-netaddr python3-phonenumbers python3-pillow python3-prometheus_client python3-pymacaroons python3-pysaml2 python3-signedjson-compat python3-sortedcontainers python3-treq python3-yaml
|
||||
# Depends on: python3-bcrypt python3-bleach python3-ijson python3-matrix-common python3-netaddr python3-phonenumbers python3-pillow python3-prometheus_client python3-pymacaroons python3-pysaml2 python3-signedjson python3-sortedcontainers python3-treq python3-yaml
|
||||
# Optional: python3-hiredis python3-lxml python3-psutil python3-psycopg2 python3-pyjwt python3-txredisapi psycopg2
|
||||
|
||||
name=matrix-synapse
|
||||
@ -14,10 +14,7 @@ build() {
|
||||
cd synapse-$version
|
||||
|
||||
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
||||
/usr/bin/python3 -m install --optimize=1 --destdir=$PKG dist/*.whl
|
||||
|
||||
# fix bin dir
|
||||
chmod +x $PKG/usr/bin/*
|
||||
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
||||
|
||||
install -dm0700 -o synapse -g synapse /etc/synapse
|
||||
install -dm0700 -o synapse -g synapse /var/lib/synapse
|
||||
|
@ -1,40 +0,0 @@
|
||||
contrib/matrix-synapse README.md
|
||||
================================
|
||||
|
||||
## Create a default config
|
||||
|
||||
Read [1].
|
||||
Substitute `--server-name my.domain.name` with your settings.
|
||||
|
||||
```
|
||||
cd /var/lib/synapse
|
||||
sudo -u synapse /usr/bin/python3 -m synapse.app.homeserver \\
|
||||
--server-name my.domain.name \\
|
||||
--config-path /etc/synapse/homeserver.yaml \\
|
||||
--generate-config \\
|
||||
--report-stats=yes
|
||||
```
|
||||
|
||||
## Databases
|
||||
|
||||
synapse uses sqlite by default, although postgresql is highly recommended
|
||||
in terms of server performance.
|
||||
|
||||
If you want to use postgresql as your database backend, read [2] and install:
|
||||
- contrib/psycopg2
|
||||
|
||||
Then migrate the database as described in the manual.
|
||||
|
||||
## Caching
|
||||
|
||||
synapse can use redis, if you decide to have a complexer setup with workers.
|
||||
In this case, install:
|
||||
- hiredis
|
||||
- python3-txredisapi
|
||||
- python3-hiredis
|
||||
|
||||
Then you can alter the config appropriately.
|
||||
|
||||
## Footnotes
|
||||
[1]: https://matrix-org.github.io/synapse/latest/usage/configuration/homeserver_sample_config.html
|
||||
[2]: https://matrix-org.github.io/synapse/latest/postgres.html
|
Loading…
x
Reference in New Issue
Block a user