blob: 8f9438c880a03e66130f5b91679ab66c991acfc4 (
plain) (
blame)
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
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go systemd
DESCRIPTION="Dendrite is a second-generation Matrix homeserver written in Go!"
HOMEPAGE="https://github.com/matrix-org/dendrite"
SRC_URI="https://github.com/matrix-org/dendrite/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/bekcpear/gopkg-vendors/archive/refs/tags/vendor-${P}.tar.gz -> ${P}-vendor.tar.gz"
LICENSE="Apache-2.0 BSD-2 BSD ISC LGPL-3 MIT MPL-2.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
BDEPEND="
>dev-lang/go-1.19.9999:=
"
RDEPEND="
acct-user/dendrite
acct-group/dendrite
"
RESTRICT="strip"
src_install() {
go_src_install
insinto /etc/dendrite
doins dendrite-sample.yaml
keepdir /var/log/dendrite
fowners dendrite:dendrite /var/log/dendrite
fperms 750 /var/log/dendrite
dodoc -r docs/*
newinitd "${FILESDIR}/dendrite.initd" dendrite
newconfd "${FILESDIR}/dendrite.confd" dendrite
systemd_dounit "${FILESDIR}"/dendrite.service
}
|