Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: relay-0.1.0
@ 2021-10-19 13:50 TinfoilSubmarine
  2021-10-22 21:47 ` [PR REVIEW] " Piraty
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2021-10-19 13:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1684 bytes --]

There is a new 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: relay-0.1.0
<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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: 3787 bytes --]

From c162c5f79f9e7e766e3facba9004bcff846b74bd Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Wed, 13 Oct 2021 14:00:46 -0400
Subject: [PATCH 1/2] New package: python3-async_lru-1.0.2

---
 srcpkgs/python3-async_lru/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/python3-async_lru/template

diff --git a/srcpkgs/python3-async_lru/template b/srcpkgs/python3-async_lru/template
new file mode 100644
index 000000000000..8e8bd45f666c
--- /dev/null
+++ b/srcpkgs/python3-async_lru/template
@@ -0,0 +1,19 @@
+# Template file for 'python3-async_lru'
+pkgname=python3-async_lru
+version=1.0.2
+revision=1
+wrksrc="async_lru-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+short_desc="Simple lru_cache for asyncio"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://github.com/aio-libs/async-lru"
+distfiles="${PYPI_SITE}/a/async_lru/async_lru-${version}.tar.gz"
+checksum=baa898027619f5cc31b7966f96f00e4fc0df43ba206a8940a5d1af5336a477cb
+make_check=no # requires unpackaged pytest-runner
+
+post_install() {
+	vlicense LICENSE
+}

From 46a6d827247b69aa90f1a98a4c6b2beff2386a46 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 14 Oct 2021 14:43:08 -0400
Subject: [PATCH 2/2] New package: relay-0.1.0

---
 srcpkgs/relay/files/relay/log/run |  1 +
 srcpkgs/relay/files/relay/run     |  3 +++
 srcpkgs/relay/template            | 41 +++++++++++++++++++++++++++++++
 3 files changed, 45 insertions(+)
 create mode 120000 srcpkgs/relay/files/relay/log/run
 create mode 100755 srcpkgs/relay/files/relay/run
 create mode 100644 srcpkgs/relay/template

diff --git a/srcpkgs/relay/files/relay/log/run b/srcpkgs/relay/files/relay/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/relay/files/relay/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/relay/files/relay/run b/srcpkgs/relay/files/relay/run
new file mode 100755
index 000000000000..b6f5d5fc5643
--- /dev/null
+++ b/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
diff --git a/srcpkgs/relay/template b/srcpkgs/relay/template
new file mode 100644
index 000000000000..d61e855b0815
--- /dev/null
+++ b/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
+}

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-05-07 16:45 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-05-06 15:04 ` [PR REVIEW] New package: activityrelay-0.2.0 TinfoilSubmarine
2022-05-07 16:45 ` [PR PATCH] [Merged]: " Piraty

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).