40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'dendrite'
|
|
pkgname=dendrite
|
|
version=0.13.1
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/matrix-org/dendrite"
|
|
go_package="./cmd/create-account ./cmd/dendrite ./cmd/generate-config
|
|
./cmd/generate-keys"
|
|
short_desc="Second-generation Matrix homeserver"
|
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
|
license="Apache-2.0"
|
|
homepage="https://matrix.org/docs/projects/server/dendrite"
|
|
changelog="https://raw.githubusercontent.com/matrix-org/dendrite/main/CHANGES.md"
|
|
distfiles="https://github.com/matrix-org/dendrite/archive/v${version}.tar.gz"
|
|
checksum=d3217759c5abef155c4e3f9cbbfb3361725cf2e17457b4478c9a4c84ff6881ea
|
|
|
|
system_accounts="_dendrite"
|
|
_dendrite_homedir="/var/lib/dendrite"
|
|
|
|
make_dirs="
|
|
/var/lib/dendrite 0700 _dendrite _dendrite
|
|
/var/log/dendrite 0755 _dendrite _dendrite
|
|
/etc/dendrite 0755 _dendrite _dendrite"
|
|
|
|
pre_configure() {
|
|
vsed -e 's,\./logs,/var/log/dendrite,' \
|
|
-e 's,: matrix_key.pem,: /etc/dendrite/matrix_key.pem,' \
|
|
-i dendrite-sample.yaml
|
|
}
|
|
|
|
post_install() {
|
|
vsconf dendrite-sample.yaml
|
|
vsv dendrite-monolith-server
|
|
|
|
cd "${DESTDIR}"/usr/bin
|
|
mv create-account dendrite-create-account
|
|
mv generate-config dendrite-generate-config
|
|
mv generate-keys dendrite-generate-keys
|
|
}
|