Date: Sunday, October 21, 2018 @ 18:52:34 Author: demize Revision: 398286
archrelease: copy trunk to community-any Added: matrix-synapse/repos/community-any/PKGBUILD (from rev 398285, matrix-synapse/trunk/PKGBUILD) matrix-synapse/repos/community-any/synapse.install (from rev 398285, matrix-synapse/trunk/synapse.install) matrix-synapse/repos/community-any/sysusers-synapse.conf (from rev 398285, matrix-synapse/trunk/sysusers-synapse.conf) Deleted: matrix-synapse/repos/community-any/PKGBUILD matrix-synapse/repos/community-any/synapse.install matrix-synapse/repos/community-any/sysusers-synapse.conf -----------------------+ PKGBUILD | 121 ++++++++++++++++++++++++------------------------ synapse.install | 50 +++++++++---------- sysusers-synapse.conf | 2 3 files changed, 87 insertions(+), 86 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-10-21 18:52:24 UTC (rev 398285) +++ PKGBUILD 2018-10-21 18:52:34 UTC (rev 398286) @@ -1,60 +0,0 @@ -# Maintainer: Johannes Löthberg <johan...@kyriasis.com> -# Contributor: Ivan Shapovalov <inte...@intelfx.name> - -pkgname=matrix-synapse -pkgver=0.33.7 -pkgrel=1 - -pkgdesc="Matrix reference homeserver" -url="https://github.com/matrix-org/synapse" -arch=('any') -license=('Apache') - -depends=('python2-jsonschema' 'python2-twisted' 'python2-service-identity' - 'python2-pyopenssl' 'python2-yaml' 'python2-pyasn1' 'python2-pynacl' - 'python2-daemonize' 'python2-bcrypt' 'python2-frozendict' - 'python2-pillow' 'python2-pydenticon' 'python2-ujson' - 'python2-pysaml2' 'python2-setuptools' - 'python2-systemd' 'python2-unpaddedbase64' 'python2-canonicaljson' - 'python2-signedjson' 'python2-pymacaroons-pynacl' - 'python2-service-identity' 'python2-msgpack' - 'python2-phonenumbers' 'python2-prometheus_client' - 'python2-attrs' 'python2-netaddr' 'python2-sortedcontainers' - 'systemd') -makedepends=('python2-mock') -checkdepends=('python2-lxml' 'python2-treq' 'python2-psutil') -optdepends=('python2-psycopg2: PostgreSQL support' - 'python2-lxml: URL previewing' - 'python2-jinja: e-mail notifications' - 'python2-bleach: e-mail notifications' - 'python2-psutil: metrics' - 'python2-matrix-angular-sdk: built-in web client') - -source=("synapse-$pkgver.tar.gz::https://github.com/matrix-org/synapse/archive/v$pkgver.tar.gz" - 'sysusers-synapse.conf') - -md5sums=('e917b30de7a8622ca58cf0d1e0c47c46' - 'ecd9f66fb57fe1a2e1e2df07a460a35b') - -backup=('etc/synapse/log_config.yaml') -install=synapse.install - -build() { - cd synapse-$pkgver - python2 setup.py build -} - -check() { - cd synapse-$pkgver - PYTHONPATH=. trial tests -} - -package() { - cd synapse-$pkgver - python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build - - install -dm755 -o 198 -g 198 "$pkgdir"/etc/synapse - install -Dm644 contrib/systemd/log_config.yaml "$pkgdir"/etc/synapse/log_config.yaml - install -Dm644 contrib/systemd/synapse.service "$pkgdir"/usr/lib/systemd/system/synapse.service - install -Dm644 "$srcdir"/sysusers-synapse.conf "$pkgdir"/usr/lib/sysusers.d/synapse.conf -} Copied: matrix-synapse/repos/community-any/PKGBUILD (from rev 398285, matrix-synapse/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-10-21 18:52:34 UTC (rev 398286) @@ -0,0 +1,61 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Ivan Shapovalov <inte...@intelfx.name> + +pkgname=matrix-synapse +pkgver=0.33.7 +pkgrel=2 + +pkgdesc="Matrix reference homeserver" +url="https://github.com/matrix-org/synapse" +arch=('any') +license=('Apache') + +depends=('python2-jsonschema' 'python2-twisted' 'python2-service-identity' + 'python2-pyopenssl' 'python2-yaml' 'python2-pyasn1' 'python2-pynacl' + 'python2-daemonize' 'python2-bcrypt' 'python2-frozendict' + 'python2-pillow' 'python2-pydenticon' 'python2-ujson' + 'python2-pysaml2' 'python2-setuptools' + 'python2-systemd' 'python2-unpaddedbase64' 'python2-canonicaljson' + 'python2-signedjson' 'python2-pymacaroons-pynacl' + 'python2-service-identity' 'python2-msgpack' + 'python2-phonenumbers' 'python2-prometheus_client' + 'python2-attrs' 'python2-netaddr' 'python2-sortedcontainers' + 'python2-treq' 'python2-psutil' + 'systemd') +makedepends=('python2-mock') +checkdepends=('python2-lxml') +optdepends=('python2-psycopg2: PostgreSQL support' + 'python2-lxml: URL previewing' + 'python2-jinja: e-mail notifications' + 'python2-bleach: e-mail notifications' + 'python2-psutil: metrics' + 'python2-matrix-angular-sdk: built-in web client') + +source=("synapse-$pkgver.tar.gz::https://github.com/matrix-org/synapse/archive/v$pkgver.tar.gz" + 'sysusers-synapse.conf') + +md5sums=('e917b30de7a8622ca58cf0d1e0c47c46' + 'ecd9f66fb57fe1a2e1e2df07a460a35b') + +backup=('etc/synapse/log_config.yaml') +install=synapse.install + +build() { + cd synapse-$pkgver + python2 setup.py build +} + +check() { + cd synapse-$pkgver + PYTHONPATH=. trial tests +} + +package() { + cd synapse-$pkgver + python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build + + install -dm755 -o 198 -g 198 "$pkgdir"/etc/synapse + install -Dm644 contrib/systemd/log_config.yaml "$pkgdir"/etc/synapse/log_config.yaml + install -Dm644 contrib/systemd/synapse.service "$pkgdir"/usr/lib/systemd/system/synapse.service + install -Dm644 "$srcdir"/sysusers-synapse.conf "$pkgdir"/usr/lib/sysusers.d/synapse.conf +} Deleted: synapse.install =================================================================== --- synapse.install 2018-10-21 18:52:24 UTC (rev 398285) +++ synapse.install 2018-10-21 18:52:34 UTC (rev 398286) @@ -1,25 +0,0 @@ -#!/bin/bash - -# arg 1: the new package version -post_install() { - if [[ ! -e /etc/synapse/homeserver.yaml ]]; then - cat <<-EOF - ==> A synapse configuration file needs to be generated before you can - start synapse, and you should make sure that it's readable by the - synapse user. - - cd /var/lib/synapse - sudo -u synapse python2 -m synapse.app.homeserver \\ - --server-name my.domain.name \\ - --config-path /etc/synapse/homeserver.yaml \\ - --generate-config \\ - --report-stats=yes - - N.B.: The default synapse config enables the webclient feature. - Unless you have python2-matrix-angular-sdk installed this will make - synapse fail to start. Either disable it, or install - python2-matrix-angular-sdk. - EOF - install -dm700 -o 198 -g 198 /var/lib/synapse - fi -} Copied: matrix-synapse/repos/community-any/synapse.install (from rev 398285, matrix-synapse/trunk/synapse.install) =================================================================== --- synapse.install (rev 0) +++ synapse.install 2018-10-21 18:52:34 UTC (rev 398286) @@ -0,0 +1,25 @@ +#!/bin/bash + +# arg 1: the new package version +post_install() { + if [[ ! -e /etc/synapse/homeserver.yaml ]]; then + cat <<-EOF + ==> A synapse configuration file needs to be generated before you can + start synapse, and you should make sure that it's readable by the + synapse user. + + cd /var/lib/synapse + sudo -u synapse python2 -m synapse.app.homeserver \\ + --server-name my.domain.name \\ + --config-path /etc/synapse/homeserver.yaml \\ + --generate-config \\ + --report-stats=yes + + N.B.: The default synapse config enables the webclient feature. + Unless you have python2-matrix-angular-sdk installed this will make + synapse fail to start. Either disable it, or install + python2-matrix-angular-sdk. + EOF + install -dm700 -o 198 -g 198 /var/lib/synapse + fi +} Deleted: sysusers-synapse.conf =================================================================== --- sysusers-synapse.conf 2018-10-21 18:52:24 UTC (rev 398285) +++ sysusers-synapse.conf 2018-10-21 18:52:34 UTC (rev 398286) @@ -1 +0,0 @@ -u synapse 198 "Matrix Synapse user" /var/lib/synapse Copied: matrix-synapse/repos/community-any/sysusers-synapse.conf (from rev 398285, matrix-synapse/trunk/sysusers-synapse.conf) =================================================================== --- sysusers-synapse.conf (rev 0) +++ sysusers-synapse.conf 2018-10-21 18:52:34 UTC (rev 398286) @@ -0,0 +1 @@ +u synapse 198 "Matrix Synapse user" /var/lib/synapse