2022-02-22 18:03:53 +00:00
|
|
|
# Template file for 'dendrite'
|
|
|
|
pkgname=dendrite
|
2022-03-04 18:05:45 +00:00
|
|
|
version=0.6.5
|
2022-02-22 18:03:53 +00:00
|
|
|
revision=1
|
|
|
|
build_style=go
|
|
|
|
go_import_path="github.com/matrix-org/dendrite"
|
|
|
|
go_package="./cmd/create-account ./cmd/dendrite-monolith-server
|
|
|
|
./cmd/generate-config ./cmd/generate-keys"
|
|
|
|
short_desc="Dendrite is a second-generation Matrix homeserver written in Go"
|
|
|
|
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"
|
2022-03-04 18:05:45 +00:00
|
|
|
checksum=b74170bd3f81e2f22ff4673bc632e37afeef1121fa90acb03ed2eed17a387133
|
2022-02-22 18:03:53 +00:00
|
|
|
|
|
|
|
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-config.yaml
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vsconf dendrite-config.yaml dendrite.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
|
|
|
|
}
|