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

* Re: [PR REVIEW] New package: relay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
@ 2021-10-22 21:47 ` Piraty
  2021-10-22 22:02 ` TinfoilSubmarine
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Piraty @ 2021-10-22 21:47 UTC (permalink / raw)
  To: ml

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

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#discussion_r734858167

Comment:
what's the reason you invoke the interpreter directly? of all 12 (at least) python-based services we have in void-packages, the only other that does this is synapse.

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

* Re: New package: relay-0.1.0
  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
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2021-10-22 22:02 UTC (permalink / raw)
  To: ml

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

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#issuecomment-949983488

Comment:
> is this even usable yet at `0.1.0` ? quick glimpse at their issue tracker reveals lack of fundamental features

Yes, I'm running this currently with no issues...

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

* Re: [PR REVIEW] New package: relay-0.1.0
  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 ` TinfoilSubmarine
  2021-10-23 13:44 ` Duncaen
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2021-10-22 22:11 UTC (permalink / raw)
  To: ml

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

New review comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#discussion_r734868030

Comment:
Upstream doesn't provide an executable/run script Ican put in `/usr/bin`.

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

* Re: New package: relay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (2 preceding siblings ...)
  2021-10-22 22:11 ` [PR REVIEW] " TinfoilSubmarine
@ 2021-10-23 13:44 ` Duncaen
  2021-10-23 13:57 ` [PR REVIEW] " ahesford
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Duncaen @ 2021-10-23 13:44 UTC (permalink / raw)
  To: ml

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

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#issuecomment-950154978

Comment:
They seem to use the name `activityrelay` and I think even if our policy says to use the upstream name of the repo and distfiles, because this is called just "relay" which is way to generic diverting from the policy and using the more appropriate name is better.

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

* Re: [PR REVIEW] New package: relay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (3 preceding siblings ...)
  2021-10-23 13:44 ` Duncaen
@ 2021-10-23 13:57 ` ahesford
  2021-10-25 17:15 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ahesford @ 2021-10-23 13:57 UTC (permalink / raw)
  To: ml

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

New review comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#discussion_r734972784

Comment:
This makes the project seem partially formed and not ready for packaging. On the one hand, this seems to be intended primarily as a utility program (or multiple utilities that collaborate) rather than as a Python module one would use in other programs. On the other hand, upstream doesn't provide even basic entrypoint script. (If I'm wrong, and the primary function of this package is to be used in other Python programs, the name should be `python3-relay` or `python3-activityrelay` or something to that effect.)

Regardless, the package requires `python3`, so the proper interpretery would be `/usr/bin/python3` instead of relying on the alternative symlink that a user could redirect to `python2`.

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

* Re: [PR PATCH] [Updated] New package: relay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (4 preceding siblings ...)
  2021-10-23 13:57 ` [PR REVIEW] " ahesford
@ 2021-10-25 17:15 ` TinfoilSubmarine
  2021-10-25 17:16 ` [PR PATCH] [Updated] New package: activityrelay-0.1.0 TinfoilSubmarine
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2021-10-25 17:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1689 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: 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: 4202 bytes --]

From 914e8f724f8140a3769bf8a851f0301aab62ef5f 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 c4c0f50e32e5e7c6c0498c3ba7de912e56cbd36f 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: activityrelay-0.1.0

---
 .../activityrelay/files/activityrelay/log/run |  1 +
 srcpkgs/activityrelay/files/activityrelay/run |  4 ++
 srcpkgs/activityrelay/template                | 42 +++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/activityrelay/files/activityrelay/log/run
 create mode 100755 srcpkgs/activityrelay/files/activityrelay/run
 create mode 100644 srcpkgs/activityrelay/template

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..1126d59b7cd7
--- /dev/null
+++ b/srcpkgs/activityrelay/files/activityrelay/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _activityrelay:_activityrelay /usr/bin/python3 -m relay \
+	-c /etc/activityrelay/activityrelay.yaml
diff --git a/srcpkgs/activityrelay/template b/srcpkgs/activityrelay/template
new file mode 100644
index 000000000000..87825166e03e
--- /dev/null
+++ b/srcpkgs/activityrelay/template
@@ -0,0 +1,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
+}

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

* Re: [PR PATCH] [Updated] New package: activityrelay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (5 preceding siblings ...)
  2021-10-25 17:15 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2021-10-25 17:16 ` TinfoilSubmarine
  2022-04-20 18:32 ` TinfoilSubmarine
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2021-10-25 17:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1697 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
<!-- 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: 4202 bytes --]

From 914e8f724f8140a3769bf8a851f0301aab62ef5f 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 2f2434631e75566c467f298d409e38fbb8aa1dc6 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: activityrelay-0.1.0

---
 .../activityrelay/files/activityrelay/log/run |  1 +
 srcpkgs/activityrelay/files/activityrelay/run |  4 ++
 srcpkgs/activityrelay/template                | 42 +++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 120000 srcpkgs/activityrelay/files/activityrelay/log/run
 create mode 100755 srcpkgs/activityrelay/files/activityrelay/run
 create mode 100644 srcpkgs/activityrelay/template

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..1126d59b7cd7
--- /dev/null
+++ b/srcpkgs/activityrelay/files/activityrelay/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _activityrelay:_activityrelay /usr/bin/python3 -m relay \
+	-c /etc/activityrelay/activityrelay.yaml
diff --git a/srcpkgs/activityrelay/template b/srcpkgs/activityrelay/template
new file mode 100644
index 000000000000..090bec06d197
--- /dev/null
+++ b/srcpkgs/activityrelay/template
@@ -0,0 +1,42 @@
+# Template file for 'activityrelay'
+pkgname=activityrelay
+version=0.1.0
+revision=1
+wrksrc="relay-${version}"
+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/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
+}

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

* Re: [PR PATCH] [Updated] New package: activityrelay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (6 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2022-04-20 18:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1697 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
<!-- 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: 5333 bytes --]

From 8c41329da6d72e3dee649b915af083168d5436da 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 a99ef6442be8895cbcfa8673a79ee850f1839cd3 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: activityrelay-0.1.0

---
 .../activityrelay/files/activityrelay/log/run |  1 +
 srcpkgs/activityrelay/files/activityrelay/run |  4 ++
 .../activityrelay/patches/entrypoints.patch   | 12 +++++
 srcpkgs/activityrelay/template                | 45 +++++++++++++++++++
 srcpkgs/activityrelay/update                  |  2 +
 5 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/activityrelay/files/activityrelay/log/run
 create mode 100755 srcpkgs/activityrelay/files/activityrelay/run
 create mode 100644 srcpkgs/activityrelay/patches/entrypoints.patch
 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..b6dc92f5fba5
--- /dev/null
+++ b/srcpkgs/activityrelay/files/activityrelay/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _activityrelay:_activityrelay activityrelay \
+	-c /etc/activityrelay/activityrelay.yaml
diff --git a/srcpkgs/activityrelay/patches/entrypoints.patch b/srcpkgs/activityrelay/patches/entrypoints.patch
new file mode 100644
index 000000000000..a0148f749982
--- /dev/null
+++ b/srcpkgs/activityrelay/patches/entrypoints.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.cfg b/setup.cfg
+index ee4acad..7c453e7 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -36,3 +36,7 @@ install_requires =
+ 		cachetools
+ 		async_lru
+ python_requires = >=3.6
++[options.entry_points]
++console_scripts =
++		relay = relay.__main__:main
++		relay_manage = relay.manage:main
diff --git a/srcpkgs/activityrelay/template b/srcpkgs/activityrelay/template
new file mode 100644
index 000000000000..e1b79c116f30
--- /dev/null
+++ b/srcpkgs/activityrelay/template
@@ -0,0 +1,45 @@
+# Template file for 'activityrelay'
+pkgname=activityrelay
+version=0.1.0
+revision=1
+wrksrc="relay-${version}"
+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/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
+
+	mv ${DESTDIR}/usr/bin/{,activity}relay
+	mv ${DESTDIR}/usr/bin/{,activity}relay_manage
+
+	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"

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

* Re: [PR PATCH] [Updated] New package: activityrelay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (7 preceding siblings ...)
  2022-04-20 18:32 ` TinfoilSubmarine
@ 2022-04-20 18:32 ` TinfoilSubmarine
  2022-04-21 21:22 ` [PR REVIEW] " Piraty
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2022-04-20 18:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1697 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
<!-- 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: 5333 bytes --]

From 7c38f95842fe0761893ef501554f6d263a273b90 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 e58e03b81affb1844e2d0bf4435ff938e0d1884a 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: activityrelay-0.1.0

---
 .../activityrelay/files/activityrelay/log/run |  1 +
 srcpkgs/activityrelay/files/activityrelay/run |  4 ++
 .../activityrelay/patches/entrypoints.patch   | 12 +++++
 srcpkgs/activityrelay/template                | 45 +++++++++++++++++++
 srcpkgs/activityrelay/update                  |  2 +
 5 files changed, 64 insertions(+)
 create mode 120000 srcpkgs/activityrelay/files/activityrelay/log/run
 create mode 100755 srcpkgs/activityrelay/files/activityrelay/run
 create mode 100644 srcpkgs/activityrelay/patches/entrypoints.patch
 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..b6dc92f5fba5
--- /dev/null
+++ b/srcpkgs/activityrelay/files/activityrelay/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _activityrelay:_activityrelay activityrelay \
+	-c /etc/activityrelay/activityrelay.yaml
diff --git a/srcpkgs/activityrelay/patches/entrypoints.patch b/srcpkgs/activityrelay/patches/entrypoints.patch
new file mode 100644
index 000000000000..a0148f749982
--- /dev/null
+++ b/srcpkgs/activityrelay/patches/entrypoints.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.cfg b/setup.cfg
+index ee4acad..7c453e7 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -36,3 +36,7 @@ install_requires =
+ 		cachetools
+ 		async_lru
+ python_requires = >=3.6
++[options.entry_points]
++console_scripts =
++		relay = relay.__main__:main
++		relay_manage = relay.manage:main
diff --git a/srcpkgs/activityrelay/template b/srcpkgs/activityrelay/template
new file mode 100644
index 000000000000..e1b79c116f30
--- /dev/null
+++ b/srcpkgs/activityrelay/template
@@ -0,0 +1,45 @@
+# Template file for 'activityrelay'
+pkgname=activityrelay
+version=0.1.0
+revision=1
+wrksrc="relay-${version}"
+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/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
+
+	mv ${DESTDIR}/usr/bin/{,activity}relay
+	mv ${DESTDIR}/usr/bin/{,activity}relay_manage
+
+	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"

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

* Re: [PR REVIEW] New package: activityrelay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (8 preceding siblings ...)
  2022-04-20 18:32 ` TinfoilSubmarine
@ 2022-04-21 21:22 ` Piraty
  2022-05-06 14:59 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Piraty @ 2022-04-21 21:22 UTC (permalink / raw)
  To: ml

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

New review comment by Piraty on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#discussion_r855604047

Comment:
:)

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

* Re: [PR PATCH] [Updated] New package: activityrelay-0.1.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (9 preceding siblings ...)
  2022-04-21 21:22 ` [PR REVIEW] " Piraty
@ 2022-05-06 14:59 ` TinfoilSubmarine
  2022-05-06 15:04 ` [PR REVIEW] New package: activityrelay-0.2.0 TinfoilSubmarine
  2022-05-07 16:45 ` [PR PATCH] [Merged]: " Piraty
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2022-05-06 14:59 UTC (permalink / raw)
  To: ml

[-- 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"

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

* Re: [PR REVIEW] New package: activityrelay-0.2.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (10 preceding siblings ...)
  2022-05-06 14:59 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-05-06 15:04 ` TinfoilSubmarine
  2022-05-07 16:45 ` [PR PATCH] [Merged]: " Piraty
  12 siblings, 0 replies; 14+ messages in thread
From: TinfoilSubmarine @ 2022-05-06 15:04 UTC (permalink / raw)
  To: ml

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

New review comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/33639#discussion_r866918619

Comment:
Upstream has entrypoints in 0.2.0

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

* Re: [PR PATCH] [Merged]: New package: activityrelay-0.2.0
  2021-10-19 13:50 [PR PATCH] New package: relay-0.1.0 TinfoilSubmarine
                   ` (11 preceding siblings ...)
  2022-05-06 15:04 ` [PR REVIEW] New package: activityrelay-0.2.0 TinfoilSubmarine
@ 2022-05-07 16:45 ` Piraty
  12 siblings, 0 replies; 14+ messages in thread
From: Piraty @ 2022-05-07 16:45 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

New package: activityrelay-0.2.0
https://github.com/void-linux/void-packages/pull/33639

Description:
<!-- 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

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