-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
35 lines (30 loc) · 1.1 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
# Template file for 'activityrelay'
pkgname=activityrelay
version=0.2.4
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-aiohttp python3-aputils python3-cachetools python3-click
python3-yaml"
short_desc="Generic LitePub relay (works with LitePub consumers and Mastodon)"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="AGPL-3.0-or-later"
homepage="https://git.pleroma.social/pleroma/relay"
distfiles="https://git.pleroma.social/pleroma/relay/-/archive/${version}/relay-${version}.tar.gz"
checksum=32c127b789d3305301f6a408299a9d59035665674dae6806fb4bb3206698b40e
make_check=no # no tests specified
system_accounts="_activityrelay"
_activityrelay_homedir="/var/lib/activityrelay"
make_dirs="/var/lib/activityrelay 0700 _activityrelay _activityrelay
/etc/activityrelay 0755 _activityrelay _activityrelay"
post_patch() {
vsed -i 's,relay.jsonld,/var/lib/activityrelay/relay.jsonld,' relay.yaml.example
}
post_install() {
vsv activityrelay
vsconf installation/relay.caddy
vsconf installation/relay.nginx
vsconf relay.yaml.example
vsconf Dockerfile
vlicense LICENSE
}