-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
42 lines (35 loc) · 1.46 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
# Template file for 'activityrelay'
pkgname=activityrelay
version=0.1.0
revision=1
build_style=python3-module
wrksrc="relay-${version}"
hostmakedepends="python3-setuptools"
depends="python3-aiohttp python3-async-timeout python3-attrs python3-chardet
python3-idna python3-multidict python3-pycryptodome python3-yaml
python3-simplejson python3-yarl python3-cachetools python3-async_lru"
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=baa43aea662ff759e98051560f2a80f40c29b83793f503c9a75a38fc13ac5d9e
conf_files="/etc/activityrelay/activityrelay.yaml"
make_check=no # no tests specified
system_accounts="_activityrelay"
_activityrelay_homedir="/var/lib/activityrelay"
make_dirs="/var/lib/activityrelay 0700 _activityrelay _activityrelay"
post_patch() {
vsed -i 's,relay.jsonld,/var/lib/activityrelay/relay.jsonld,' relay.yaml.example
}
post_install() {
vsv activityrelay
vmkdir usr/share/activityrelay
vcopy installation/relay.caddy usr/share/activityrelay
vcopy installation/relay.nginx usr/share/activityrelay
vcopy relay.yaml.example usr/share/activityrelay
vcopy Dockerfile usr/share/activityrelay
vmkdir etc/activityrelay
vcopy relay.yaml.example etc/activityrelay/activityrelay.yaml
vlicense LICENSE
}