Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d6a794
commit a42fde5
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/bin/vlogger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
[ -r ./conf ] && . ./conf | ||
cd /var/lib/dendrite || exit 1 | ||
exec 2>&1 | ||
exec chpst -u _dendrite:_dendrite dendrite-monolith-server \ | ||
--config ${CONFIG_FILE:-/etc/dendrite/dendrite.yaml} ${OPTS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Template file for 'dendrite' | ||
pkgname=dendrite | ||
version=0.6.4 | ||
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" | ||
checksum=ec88d98c74393fdfc20586b11839c1d1250dd3083dce31c0a31b1b0d9020b7af | ||
|
||
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 | ||
} |