From 021614e211f5d97b90601e9ab8ac97cce33962fd Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 14 Oct 2021 14:43:08 -0400 Subject: [PATCH] New package: activityrelay-0.2.0 --- .../activityrelay/files/activityrelay/log/run | 1 + srcpkgs/activityrelay/files/activityrelay/run | 5 +++ srcpkgs/activityrelay/template | 36 +++++++++++++++++++ srcpkgs/activityrelay/update | 2 ++ 4 files changed, 44 insertions(+) create mode 120000 srcpkgs/activityrelay/files/activityrelay/log/run create mode 100755 srcpkgs/activityrelay/files/activityrelay/run create mode 100644 srcpkgs/activityrelay/template create mode 100644 srcpkgs/activityrelay/update diff --git a/srcpkgs/activityrelay/files/activityrelay/log/run b/srcpkgs/activityrelay/files/activityrelay/log/run new file mode 120000 index 00000000000000..3a5b4a586051d6 --- /dev/null +++ b/srcpkgs/activityrelay/files/activityrelay/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/activityrelay/files/activityrelay/run b/srcpkgs/activityrelay/files/activityrelay/run new file mode 100755 index 00000000000000..2082710dd4425c --- /dev/null +++ b/srcpkgs/activityrelay/files/activityrelay/run @@ -0,0 +1,5 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +exec 2>&1 +exec chpst -u _activityrelay:_activityrelay activityrelay \ + -c ${CONFIG_FILE:-/etc/activityrelay/activityrelay.yaml} diff --git a/srcpkgs/activityrelay/template b/srcpkgs/activityrelay/template new file mode 100644 index 00000000000000..dc8271c846d2eb --- /dev/null +++ b/srcpkgs/activityrelay/template @@ -0,0 +1,36 @@ +# Template file for 'activityrelay' +pkgname=activityrelay +version=0.2.0 +revision=1 +wrksrc="relay-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-aiohttp python3-cachetools python3-click python3-pycryptodome + python3-yaml" +short_desc="Generic LitePub relay (works with LitePub consumers and Mastodon)" +maintainer="Joel Beckmeyer " +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=32db6e1084ddc5b000d45e8f5f7e098132082ea04eb538fc4927e94f49ac2a50 +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 +} diff --git a/srcpkgs/activityrelay/update b/srcpkgs/activityrelay/update new file mode 100644 index 00000000000000..2a4e4176fdc736 --- /dev/null +++ b/srcpkgs/activityrelay/update @@ -0,0 +1,2 @@ +site="https://git.pleroma.social/pleroma/relay/-/tags" +pkgname="relay"