-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
43 lines (38 loc) · 1.35 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Template file for 'dendrite'
pkgname=dendrite
version=0.6.2
revision=1
build_style=go
go_import_path="github.com/matrix-org/dendrite"
go_package="./cmd/create-account ./cmd/dendrite-monolith-server
./cmd/dendrite-polylith-multi ./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"
distfiles="https://github.com/matrix-org/dendrite/archive/v${version}.tar.gz"
checksum=c86494b835a06fb5740c138c030121104332c9312176bb105e60c6ac7cc1fed8
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
vsv dendrite-polylith-clientapi
vsv dendrite-polylith-syncapi
vsv dendrite-polylith-mediaapi
vsv dendrite-polylith-federationapi
vsv dendrite-polylith-roomserver
vsv dendrite-polylith-appservice
vsv dendrite-polylith-keyserver
vsv dendrite-polylith-eduserver
vsv dendrite-polylith-userapi
}