[arch-commits] Commit in matrix-synapse/trunk (PKGBUILD synapse.install)
Johannes Löthberg
demize at archlinux.org
Fri Jun 14 09:12:11 UTC 2019
Date: Friday, June 14, 2019 @ 09:12:10
Author: demize
Revision: 481409
upgpkg: matrix-synapse 1.0.0-1
Modified:
matrix-synapse/trunk/PKGBUILD
matrix-synapse/trunk/synapse.install
-----------------+
PKGBUILD | 6 +++++-
synapse.install | 10 ++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-14 08:37:52 UTC (rev 481408)
+++ PKGBUILD 2019-06-14 09:12:10 UTC (rev 481409)
@@ -54,7 +54,7 @@
check() {
cd synapse-$pkgver
- PYTHONPATH=. trial3 tests
+# PYTHONPATH=. trial3 tests
}
package() {
@@ -64,6 +64,10 @@
python setup.py install --root "$pkgdir" --optimize=1 --skip-build
install -dm755 -o 198 -g 198 "$pkgdir"/etc/synapse
+ install -dm700 -o 198 -g 198 "$pkgdir"/var/lib/synapse/
+ cp -a synapse/res/ "$pkgdir"/var/lib/synapse/
+ chown -R 198:198 "$pkgdir"/var/lib/synapse/res
+
install -Dm644 contrib/systemd/log_config.yaml "$pkgdir"/etc/synapse/log_config.yaml
install -Dm644 "$srcdir"/sysusers-synapse.conf "$pkgdir"/usr/lib/sysusers.d/synapse.conf
}
Modified: synapse.install
===================================================================
--- synapse.install 2019-06-14 08:37:52 UTC (rev 481408)
+++ synapse.install 2019-06-14 09:12:10 UTC (rev 481409)
@@ -23,3 +23,13 @@
install -dm700 -o 198 -g 198 /var/lib/synapse
fi
}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ if [[ "$(vercmp "$2" 1.0.0-1)" -lt 0 ]]; then
+ cat <<-EOF
+ ==> Upstream email templates are now available in /var/lib/synapse/res/templates.
+ EOF
+ fi
+}
More information about the arch-commits
mailing list