Date: Monday, January 23, 2017 @ 14:47:22
  Author: demize
Revision: 208565

upgpkg: matrix-synapse 0.18.7-3

Add matrix-angular-sdk optdep, and print post install warning about webclient 
requiring it.

Modified:
  matrix-synapse/trunk/PKGBUILD
  matrix-synapse/trunk/synapse.install

-----------------+
 PKGBUILD        |    5 +++--
 synapse.install |   19 ++++++++++++++++++-
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2017-01-23 14:40:21 UTC (rev 208564)
+++ PKGBUILD    2017-01-23 14:47:22 UTC (rev 208565)
@@ -2,7 +2,7 @@
 
 pkgname=matrix-synapse
 pkgver=0.18.7
-pkgrel=2
+pkgrel=3
 
 pkgdesc="Matrix reference homeserver"
 url="https://github.com/matrix-org/synapse";
@@ -24,7 +24,8 @@
             'python2-jinja: e-mail notifications'
             'python2-bleach: e-mail notifications'
             'python2-matrix-synapse-ldap3: LDAP support'
-            'python2-psutil: metrics')
+            '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'

Modified: synapse.install
===================================================================
--- synapse.install     2017-01-23 14:40:21 UTC (rev 208564)
+++ synapse.install     2017-01-23 14:47:22 UTC (rev 208565)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-## arg 1:  the new package version
+# arg 1:  the new package version
 post_install() {
        if [[ ! -e /etc/synapse/homeserver.yaml ]]; then
                cat <<-EOF
@@ -14,7 +14,24 @@
                      --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
+
 }
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+       cat <<-EOF
+       ==> 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
+}

Reply via email to