Skip to content

Commit

Permalink
New package: relay-0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TinfoilSubmarine committed Oct 19, 2021
1 parent c162c5f commit 46a6d82
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions srcpkgs/relay/files/relay/log/run
3 changes: 3 additions & 0 deletions srcpkgs/relay/files/relay/run
@@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec chpst -u _relay:_relay /usr/bin/python -m relay -c /etc/relay/relay.yaml
41 changes: 41 additions & 0 deletions srcpkgs/relay/template
@@ -0,0 +1,41 @@
# Template file for 'relay'
pkgname=relay
version=0.1.0
revision=1
build_style=python3-module
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/relay/relay.yaml"
make_check=no # no tests specified

system_accounts="_relay"
_relay_homedir="/var/lib/relay"

make_dirs="/var/lib/relay 0700 _relay _relay"

post_patch() {
vsed -i 's,relay.jsonld,/var/lib/relay/relay.jsonld,' relay.yaml.example
}

post_install() {
vsv relay

vmkdir usr/share/relay
vcopy installation/relay.caddy usr/share/relay
vcopy installation/relay.nginx usr/share/relay
vcopy relay.yaml.example usr/share/relay
vcopy Dockerfile usr/share/relay

vmkdir etc/relay
vcopy relay.yaml.example etc/relay/relay.yaml

vlicense LICENSE
}

0 comments on commit 46a6d82

Please sign in to comment.