diff options
author | AlphaJack | 2022-05-15 12:05:27 +0200 |
---|---|---|
committer | AlphaJack | 2022-05-15 12:05:27 +0200 |
commit | 7c3c759f0b847edbcd11c0c8e8a3f1fbc9b13ad8 (patch) | |
tree | f24408151b442c48ace5a37621da53c91c50f84f | |
parent | 3e0ae0b24ac1f2103f9500c70936e04a13ab015b (diff) | |
download | aur-7c3c759f0b847edbcd11c0c8e8a3f1fbc9b13ad8.tar.gz |
Renamed upstream example configuration file, added post_install() notice
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | dendrite.install | 16 |
3 files changed, 27 insertions, 13 deletions
@@ -1,8 +1,8 @@ pkgbase = dendrite pkgdesc = A second-generation Matrix homeserver written in Go pkgver = 0.8.5 - pkgrel = 1 - url = https://matrix.org/docs/projects/server/dendrite + pkgrel = 2 + url = https://matrix-org.github.io/dendrite/ install = dendrite.install arch = x86_64 arch = i686 @@ -3,9 +3,9 @@ pkgname="dendrite" pkgver=0.8.5 -pkgrel=1 +pkgrel=2 pkgdesc="A second-generation Matrix homeserver written in Go" -url="https://matrix.org/docs/projects/server/dendrite" +url="https://matrix-org.github.io/dendrite/" license=("Apache") arch=("x86_64" "i686" "armv6h" "armv7h" "aarch64") makedepends=("go>=1.16") @@ -45,12 +45,12 @@ check(){ package(){ cd "$pkgname-$pkgver" - install -D -m 755 "$pkgname-monolith-server" "$pkgdir/usr/bin/$pkgname" - install -D -m 755 "generate-config" "$pkgdir/usr/bin/$pkgname-generate-config" - install -D -m 755 "generate-keys" "$pkgdir/usr/bin/$pkgname-generate-keys" - install -D -m 755 "create-account" "$pkgdir/usr/bin/$pkgname-create-account" - install -D -m 644 "$pkgname-config.yaml" "$pkgdir/etc/$pkgname/config-example.yaml" - install -D -m 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" - install -D -m 644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" - install -D -m 644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" + install -D -m 755 "$pkgname-monolith-server" "$pkgdir/usr/bin/$pkgname" + install -D -m 755 "generate-config" "$pkgdir/usr/bin/$pkgname-generate-config" + install -D -m 755 "generate-keys" "$pkgdir/usr/bin/$pkgname-generate-keys" + install -D -m 755 "create-account" "$pkgdir/usr/bin/$pkgname-create-account" + install -D -m 644 "$pkgname-sample.monolith.yaml" "$pkgdir/etc/$pkgname/config-example.yaml" + install -D -m 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" + install -D -m 644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" + install -D -m 644 "$srcdir/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" } diff --git a/dendrite.install b/dendrite.install index 19f490e19ae7..a14637dcf15e 100644 --- a/dendrite.install +++ b/dendrite.install @@ -1,3 +1,17 @@ +post_install(){ + cat <<INFO + +You should now generate a new configuration either with + + sudo cp /etc/dendrite/config-example.yaml /etc/dendrite/config.yaml + +or + + dendrite-generate-config | sudo tee /etc/dendrite/config.yaml + +INFO +} + post_upgrade(){ # notify about breaking changes # https://wiki.archlinux.org/title/PKGBUILD#install @@ -15,7 +29,7 @@ and generate a new one either copying or by running - dendrite-generate-config + dendrite-generate-config | sudo tee /etc/dendrite/config.yaml INFO fi |