From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: activityrelay-0.1.0
Date: Fri, 06 May 2022 16:59:26 +0200 [thread overview]
Message-ID: <20220506145926.J0GWcEjNOr_-WWS9x8ZHUX04ftLdw7zjDZKqOWejZhI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33639@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages relay
https://github.com/void-linux/void-packages/pull/33639
New package: activityrelay-0.1.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
LitePub relay from the Pleroma project: https://git.pleroma.social/pleroma/relay
A patch file from https://github.com/void-linux/void-packages/pull/33639.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-relay-33639.patch --]
[-- Type: text/x-diff, Size: 3084 bytes --]
From 021614e211f5d97b90601e9ab8ac97cce33962fd Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
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 000000000000..3a5b4a586051
--- /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 000000000000..2082710dd442
--- /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 000000000000..dc8271c846d2
--- /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 <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=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 000000000000..2a4e4176fdc7
--- /dev/null
+++ b/srcpkgs/activityrelay/update
@@ -0,0 +1,2 @@
+site="https://git.pleroma.social/pleroma/relay/-/tags"
+pkgname="relay"
next prev parent reply other threads:[~2022-05-06 14:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
2021-10-22 21:47 ` [PR REVIEW] " Piraty
2021-10-22 22:02 ` TinfoilSubmarine
2021-10-22 22:11 ` [PR REVIEW] " TinfoilSubmarine
2021-10-23 13:44 ` Duncaen
2021-10-23 13:57 ` [PR REVIEW] " ahesford
2021-10-25 17:15 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-10-25 17:16 ` [PR PATCH] [Updated] New package: activityrelay-0.1.0 TinfoilSubmarine
2022-04-20 18:32 ` TinfoilSubmarine
2022-04-20 18:32 ` TinfoilSubmarine
2022-04-21 21:22 ` [PR REVIEW] " Piraty
2022-05-06 14:59 ` TinfoilSubmarine [this message]
2022-05-06 15:04 ` [PR REVIEW] New package: activityrelay-0.2.0 TinfoilSubmarine
2022-05-07 16:45 ` [PR PATCH] [Merged]: " Piraty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220506145926.J0GWcEjNOr_-WWS9x8ZHUX04ftLdw7zjDZKqOWejZhI@z \
--to=tinfoilsubmarine@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).