* [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1
@ 2022-09-15 13:34 TinfoilSubmarine
2022-09-15 13:35 ` TinfoilSubmarine
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-09-15 13:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]
There is a new pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.0, meilisearch-0.28.1
- New package: meilisearch-0.28.1
- New package: akkoma-3.2.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 9252 bytes --]
From bec95e213e36218ab2b47d95656481815f556551 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.28.1
---
srcpkgs/meilisearch/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..244d22c7c024
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,17 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.28.1
+revision=1
+build_style=cargo
+make_install_args="--path /builddir/meilisearch-${version}"
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=1854d219df7829c3b1de107f63f4f3a125954dcaf13a71b36630cd996d286177
+
+do_install() {
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ vlicense LICENSE
+}
From 20145c22b1185802d9af8ec476ef58d8983fb6ed Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.0
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..4e0d4a7e9961
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.0.4"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..829219276382
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.0
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=1ac19fb5603931ee11307579ab4e71d37e96ccf26c34356e7daa10f72e4fa8b6
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New packages: akkoma-3.2.0, meilisearch-0.28.1
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
@ 2022-09-15 13:35 ` TinfoilSubmarine
2022-09-16 18:45 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-09-15 13:35 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/39299#issuecomment-1248111294
Comment:
Using this in place of pleroma, see old PR at https://github.com/void-linux/void-packages/pull/35539
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.0, meilisearch-0.28.1
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
2022-09-15 13:35 ` TinfoilSubmarine
@ 2022-09-16 18:45 ` TinfoilSubmarine
2022-09-23 21:25 ` [PR PATCH] [Updated] New packages: akkoma-3.2.1, meilisearch-0.28.1 TinfoilSubmarine
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-09-16 18:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.0, meilisearch-0.28.1
- New package: meilisearch-0.28.1
- New package: akkoma-3.2.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 9300 bytes --]
From 9fb49aaf29e10c3052bb326458ad1d378ee012f2 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.28.1
---
srcpkgs/meilisearch/template | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..2f0fc517ee3d
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,20 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.28.1
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=1854d219df7829c3b1de107f63f4f3a125954dcaf13a71b36630cd996d286177
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vlicense LICENSE
+}
From 533f730ac483606fa76e3cbe59d90e8161f9b987 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.1
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..4e0d4a7e9961
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.0.4"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..ba4363d6b8b8
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.1
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=94c892862e472e703b48c8adfd7992fce9699a70e5e5c8b31d7d6d566f34c82f
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.1, meilisearch-0.28.1
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
2022-09-15 13:35 ` TinfoilSubmarine
2022-09-16 18:45 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-09-23 21:25 ` TinfoilSubmarine
2022-10-04 16:01 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.28.1 TinfoilSubmarine
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-09-23 21:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.1, meilisearch-0.28.1
- New package: meilisearch-0.28.1
- New package: akkoma-3.2.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- 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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 9300 bytes --]
From ba5c1be8d916da126fca652f79bd754cf4c1e9a4 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.28.1
---
srcpkgs/meilisearch/template | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..2f0fc517ee3d
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,20 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.28.1
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=1854d219df7829c3b1de107f63f4f3a125954dcaf13a71b36630cd996d286177
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vlicense LICENSE
+}
From 11c9e43a04ee6fad9a3b0fe860d07e65d4fc3f45 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.3
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..4e0d4a7e9961
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.0.4"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..3afcc2f1e0ed
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.3
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=61a77235733a260308bbb6196121ae4df9379efcb52d8c107be85696647ecd39
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.28.1
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (2 preceding siblings ...)
2022-09-23 21:25 ` [PR PATCH] [Updated] New packages: akkoma-3.2.1, meilisearch-0.28.1 TinfoilSubmarine
@ 2022-10-04 16:01 ` TinfoilSubmarine
2022-10-04 16:30 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0 TinfoilSubmarine
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-10-04 16:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.3, meilisearch-0.28.1
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 10382 bytes --]
From 632a66b658fc980fb350c52947de4cadd42a3b6f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.29.0
---
srcpkgs/meilisearch/files/meilisearch/log/run | 1 +
srcpkgs/meilisearch/files/meilisearch/run | 5 ++++
srcpkgs/meilisearch/template | 25 +++++++++++++++++++
3 files changed, 31 insertions(+)
create mode 120000 srcpkgs/meilisearch/files/meilisearch/log/run
create mode 100755 srcpkgs/meilisearch/files/meilisearch/run
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/files/meilisearch/log/run b/srcpkgs/meilisearch/files/meilisearch/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/meilisearch/files/meilisearch/run b/srcpkgs/meilisearch/files/meilisearch/run
new file mode 100755
index 000000000000..04c2ac0ac5e0
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+cd /var/lib/meilisearch
+exec chpst -u _meilisearch:_meilisearch meilisearch ${OPTS:=--no-analytics}
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..06c224e84e6b
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,25 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.29.0
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=45ce5ba49984258763d7cc4fd33ba407fcbeb2dcb5c36b23e6c8dbb3e1684bde
+
+system_accounts="_meilisearch"
+synapse_homedir="/var/lib/meilisearch"
+make_dirs="/var/lib/meilisearch 0700 _meilisearch _meilisearch"
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vsv meilisearch
+ vlicense LICENSE
+}
From 5a72b1104c80e73851d38a1e12bfe292679457e0 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.3
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..4e0d4a7e9961
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.0.4"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..3afcc2f1e0ed
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.3
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=61a77235733a260308bbb6196121ae4df9379efcb52d8c107be85696647ecd39
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (3 preceding siblings ...)
2022-10-04 16:01 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.28.1 TinfoilSubmarine
@ 2022-10-04 16:30 ` TinfoilSubmarine
2022-10-04 17:15 ` TinfoilSubmarine
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-10-04 16:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.3, meilisearch-0.29.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 10498 bytes --]
From 6c45da7e4d9e40f17873930350e0fe4ba328f30c Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.29.0
---
srcpkgs/meilisearch/files/meilisearch/log/run | 1 +
srcpkgs/meilisearch/files/meilisearch/run | 5 ++++
srcpkgs/meilisearch/template | 30 +++++++++++++++++++
3 files changed, 36 insertions(+)
create mode 120000 srcpkgs/meilisearch/files/meilisearch/log/run
create mode 100755 srcpkgs/meilisearch/files/meilisearch/run
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/files/meilisearch/log/run b/srcpkgs/meilisearch/files/meilisearch/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/meilisearch/files/meilisearch/run b/srcpkgs/meilisearch/files/meilisearch/run
new file mode 100755
index 000000000000..04c2ac0ac5e0
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+cd /var/lib/meilisearch
+exec chpst -u _meilisearch:_meilisearch meilisearch ${OPTS:=--no-analytics}
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..188a74b5e8e0
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,30 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.29.0
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=45ce5ba49984258763d7cc4fd33ba407fcbeb2dcb5c36b23e6c8dbb3e1684bde
+
+system_accounts="_meilisearch"
+synapse_homedir="/var/lib/meilisearch"
+make_dirs="/var/lib/meilisearch 0700 _meilisearch _meilisearch"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vsv meilisearch
+ vlicense LICENSE
+}
From 2e607671ff39f2a584179a25d0b0f658489b372f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.3
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..4e0d4a7e9961
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.0.4"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..3afcc2f1e0ed
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.3
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=61a77235733a260308bbb6196121ae4df9379efcb52d8c107be85696647ecd39
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (4 preceding siblings ...)
2022-10-04 16:30 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0 TinfoilSubmarine
@ 2022-10-04 17:15 ` TinfoilSubmarine
2022-10-19 18:28 ` TinfoilSubmarine
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-10-04 17:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.3, meilisearch-0.29.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 10496 bytes --]
From 6c45da7e4d9e40f17873930350e0fe4ba328f30c Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.29.0
---
srcpkgs/meilisearch/files/meilisearch/log/run | 1 +
srcpkgs/meilisearch/files/meilisearch/run | 5 ++++
srcpkgs/meilisearch/template | 30 +++++++++++++++++++
3 files changed, 36 insertions(+)
create mode 120000 srcpkgs/meilisearch/files/meilisearch/log/run
create mode 100755 srcpkgs/meilisearch/files/meilisearch/run
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/files/meilisearch/log/run b/srcpkgs/meilisearch/files/meilisearch/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/meilisearch/files/meilisearch/run b/srcpkgs/meilisearch/files/meilisearch/run
new file mode 100755
index 000000000000..04c2ac0ac5e0
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+cd /var/lib/meilisearch
+exec chpst -u _meilisearch:_meilisearch meilisearch ${OPTS:=--no-analytics}
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..188a74b5e8e0
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,30 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.29.0
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=45ce5ba49984258763d7cc4fd33ba407fcbeb2dcb5c36b23e6c8dbb3e1684bde
+
+system_accounts="_meilisearch"
+synapse_homedir="/var/lib/meilisearch"
+make_dirs="/var/lib/meilisearch 0700 _meilisearch _meilisearch"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vsv meilisearch
+ vlicense LICENSE
+}
From 66f555e47684363c47e15a48603671431984721a Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.2.3
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..41625bfbcd52
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.1"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..3afcc2f1e0ed
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.2.3
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=61a77235733a260308bbb6196121ae4df9379efcb52d8c107be85696647ecd39
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (5 preceding siblings ...)
2022-10-04 17:15 ` TinfoilSubmarine
@ 2022-10-19 18:28 ` TinfoilSubmarine
2022-11-16 14:05 ` [PR PATCH] [Updated] New packages: akkoma-3.3.1, meilisearch-0.29.1 TinfoilSubmarine
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-10-19 18:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.2.3, meilisearch-0.29.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 10498 bytes --]
From 5ea27290bb3bad0d9096489ce71073745a0124e2 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Fri, 22 Jul 2022 13:29:30 -0400
Subject: [PATCH 1/2] New package: meilisearch-0.29.1
---
srcpkgs/meilisearch/files/meilisearch/log/run | 1 +
srcpkgs/meilisearch/files/meilisearch/run | 5 ++++
srcpkgs/meilisearch/template | 30 +++++++++++++++++++
3 files changed, 36 insertions(+)
create mode 120000 srcpkgs/meilisearch/files/meilisearch/log/run
create mode 100755 srcpkgs/meilisearch/files/meilisearch/run
create mode 100644 srcpkgs/meilisearch/template
diff --git a/srcpkgs/meilisearch/files/meilisearch/log/run b/srcpkgs/meilisearch/files/meilisearch/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/meilisearch/files/meilisearch/run b/srcpkgs/meilisearch/files/meilisearch/run
new file mode 100755
index 000000000000..04c2ac0ac5e0
--- /dev/null
+++ b/srcpkgs/meilisearch/files/meilisearch/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+cd /var/lib/meilisearch
+exec chpst -u _meilisearch:_meilisearch meilisearch ${OPTS:=--no-analytics}
diff --git a/srcpkgs/meilisearch/template b/srcpkgs/meilisearch/template
new file mode 100644
index 000000000000..2a3fe2d7ff35
--- /dev/null
+++ b/srcpkgs/meilisearch/template
@@ -0,0 +1,30 @@
+# Template file for 'meilisearch'
+pkgname=meilisearch
+version=0.29.1
+revision=1
+build_style=cargo
+short_desc="Powerful, fast, open-source, easy to use and deploy search engine"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://www.meilisearch.com"
+distfiles="https://github.com/meilisearch/meilisearch/archive/refs/tags/v${version}.tar.gz"
+checksum=0c45ac53af46626d9bc0ad7c1f4834ab715b0cc8b605e6c065a9a939faafb226
+
+system_accounts="_meilisearch"
+synapse_homedir="/var/lib/meilisearch"
+make_dirs="/var/lib/meilisearch 0700 _meilisearch _meilisearch"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ XBPS_CROSS_RUSTFLAGS+=" -latomic"
+fi
+
+do_install() {
+ if [ "$CROSS_BUILD" ]; then
+ vbin "target/${XBPS_CROSS_RUST_TARGET}/release/meilisearch"
+ else
+ vbin "target/${XBPS_RUST_TARGET}/release/meilisearch"
+ fi
+ vsv meilisearch
+ vlicense LICENSE
+}
From 87a651d8899a73b7cfb4ac5806294ea2cd08266c Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH 2/2] New package: akkoma-3.3.1
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..75f8dccd0e80
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.1.1"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..cd510d4e55b2
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.3.1
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=808ecbf33172604c475528e833c890f03053ab5ce755cad0d0c897c725acd73b
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New packages: akkoma-3.3.1, meilisearch-0.29.1
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (6 preceding siblings ...)
2022-10-19 18:28 ` TinfoilSubmarine
@ 2022-11-16 14:05 ` TinfoilSubmarine
2022-11-16 14:07 ` [PR PATCH] [Updated] New package: akkoma-3.4.0 TinfoilSubmarine
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-11-16 14:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New packages: akkoma-3.3.1, meilisearch-0.29.1
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 8097 bytes --]
From f772f8516a38442eaa2ba4a44246250f394af5b0 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH] New package: akkoma-3.4.0
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 75 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 143 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..a777e9972869
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.1.2"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..1e93a854b085
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,75 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.4.0
+revision=1
+wrksrc="akkoma"
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=9dc6b2585a837dbecc9beade142e0c2dead8024ad2b70052737a6d1d252b077b
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New package: akkoma-3.4.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (7 preceding siblings ...)
2022-11-16 14:05 ` [PR PATCH] [Updated] New packages: akkoma-3.3.1, meilisearch-0.29.1 TinfoilSubmarine
@ 2022-11-16 14:07 ` TinfoilSubmarine
2022-12-12 14:28 ` TinfoilSubmarine
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-11-16 14:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New package: akkoma-3.4.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 8080 bytes --]
From d5465bb1a949a8f0425ba3f2ca617b600dc7e457 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH] New package: akkoma-3.4.0
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 74 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 142 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..a777e9972869
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.1.2"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..3b543685a3ac
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,74 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.4.0
+revision=1
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=9dc6b2585a837dbecc9beade142e0c2dead8024ad2b70052737a6d1d252b077b
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] New package: akkoma-3.4.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (8 preceding siblings ...)
2022-11-16 14:07 ` [PR PATCH] [Updated] New package: akkoma-3.4.0 TinfoilSubmarine
@ 2022-12-12 14:28 ` TinfoilSubmarine
2023-03-13 1:58 ` New package: akkoma-3.5.0 github-actions
2023-03-28 1:55 ` [PR PATCH] [Closed]: " github-actions
11 siblings, 0 replies; 13+ messages in thread
From: TinfoilSubmarine @ 2022-12-12 14:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/akkoma
https://github.com/void-linux/void-packages/pull/39299
New package: akkoma-3.4.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
A patch file from https://github.com/void-linux/void-packages/pull/39299.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/akkoma-39299.patch --]
[-- Type: text/x-diff, Size: 8080 bytes --]
From 04be50ee4143f772f1244728d04e3d36450e154d Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Mon, 27 Jun 2022 11:39:02 -0400
Subject: [PATCH] New package: akkoma-3.5.0
---
srcpkgs/akkoma/INSTALL | 7 ++
srcpkgs/akkoma/files/akkoma/finish | 2 +
srcpkgs/akkoma/files/akkoma/log/run | 1 +
srcpkgs/akkoma/files/akkoma/run | 3 +
srcpkgs/akkoma/patches/append_flags.patch | 19 +++++
srcpkgs/akkoma/patches/config.patch | 20 +++++
.../akkoma/patches/include_system_erts.patch | 14 ++++
srcpkgs/akkoma/template | 74 +++++++++++++++++++
srcpkgs/akkoma/update | 2 +
9 files changed, 142 insertions(+)
create mode 100644 srcpkgs/akkoma/INSTALL
create mode 100755 srcpkgs/akkoma/files/akkoma/finish
create mode 120000 srcpkgs/akkoma/files/akkoma/log/run
create mode 100755 srcpkgs/akkoma/files/akkoma/run
create mode 100644 srcpkgs/akkoma/patches/append_flags.patch
create mode 100644 srcpkgs/akkoma/patches/config.patch
create mode 100644 srcpkgs/akkoma/patches/include_system_erts.patch
create mode 100644 srcpkgs/akkoma/template
create mode 100644 srcpkgs/akkoma/update
diff --git a/srcpkgs/akkoma/INSTALL b/srcpkgs/akkoma/INSTALL
new file mode 100644
index 000000000000..90b2456396e6
--- /dev/null
+++ b/srcpkgs/akkoma/INSTALL
@@ -0,0 +1,7 @@
+if [ "${UPDATE}" = "no" ] && [ "${ACTION}" = "post" ]; then
+ if [ ! -e /etc/akkoma/COOKIE ]; then
+ dd if=/dev/urandom bs=40 count=1 | base64 > /etc/akkoma/COOKIE
+ fi
+ chmod 600 /etc/akkoma/COOKIE
+ chown _akkoma:_akkoma /etc/akkoma/COOKIE
+fi
diff --git a/srcpkgs/akkoma/files/akkoma/finish b/srcpkgs/akkoma/files/akkoma/finish
new file mode 100755
index 000000000000..d7c930355f9a
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec chpst -u _akkoma:_akkoma akkoma stop
diff --git a/srcpkgs/akkoma/files/akkoma/log/run b/srcpkgs/akkoma/files/akkoma/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/akkoma/files/akkoma/run b/srcpkgs/akkoma/files/akkoma/run
new file mode 100755
index 000000000000..8f618070c078
--- /dev/null
+++ b/srcpkgs/akkoma/files/akkoma/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+chpst -u _akkoma:_akkoma akkoma_ctl migrate
+exec chpst -u _akkoma:_akkoma akkoma start
diff --git a/srcpkgs/akkoma/patches/append_flags.patch b/srcpkgs/akkoma/patches/append_flags.patch
new file mode 100644
index 000000000000..23acb9804830
--- /dev/null
+++ b/srcpkgs/akkoma/patches/append_flags.patch
@@ -0,0 +1,19 @@
+diff --git a/deps/crypt/c_src/Makefile b/deps/crypt/c_src/Makefile
+index 03d6380..bfc9f5f 100644
+--- a/deps/crypt/c_src/Makefile
++++ b/deps/crypt/c_src/Makefile
+@@ -24,12 +24,12 @@ else ifeq ($(UNAME_SYS), Linux)
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ LDFLAGS ?= -lcrypt
+ else
+- CFLAGS ?= -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
++ CFLAGS += -DHAVE_CRYPT_R -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes \
+ -pedantic -fwrapv -D_FORTIFY_SOURCE=2 \
+ -fstack-protector-strong -Wformat -Werror=format-security \
+ -fno-strict-aliasing -Wconversion -Wshadow -Wpointer-arith \
+ -Wcast-qual
+- LDFLAGS ?= -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
++ LDFLAGS += -lpthread -lcrypt -Wl,-z,relro,-z,now -Wl,-z,noexecstack
+ endif
+ else ifneq (,$(wildcard /usr/lib/libcrypt.*))
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
diff --git a/srcpkgs/akkoma/patches/config.patch b/srcpkgs/akkoma/patches/config.patch
new file mode 100644
index 000000000000..bfbd4c1cecc4
--- /dev/null
+++ b/srcpkgs/akkoma/patches/config.patch
@@ -0,0 +1,20 @@
+diff --git a/config/config.exs b/config/config.exs
+index b50c910..9cf622b 100644
+--- a/config/config.exs
++++ b/config/config.exs
+@@ -852,6 +852,8 @@
+ {Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]}
+ ]
+
++config :tzdata, :data_dir, "/var/lib/akkoma/elixir_tzdata_data"
++
+ # Import environment specific config. This must remain at the bottom
+ # of this file so it overrides the configuration defined above.
+ import_config "#{Mix.env()}.exs"
+diff --git a/config/prod.secret.exs b/config/prod.secret.exs
+new file mode 100644
+index 0000000..23fd9f1
+--- /dev/null
++++ b/config/prod.secret.exs
+@@ -0,0 +1 @@
++import Mix.Config
diff --git a/srcpkgs/akkoma/patches/include_system_erts.patch b/srcpkgs/akkoma/patches/include_system_erts.patch
new file mode 100644
index 000000000000..a777e9972869
--- /dev/null
+++ b/srcpkgs/akkoma/patches/include_system_erts.patch
@@ -0,0 +1,14 @@
+diff --git a/mix.exs b/mix.exs
+index db2f1f0..115817c 100644
+--- a/mix.exs
++++ b/mix.exs
+@@ -38,7 +38,8 @@ def project do
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load, eldap: :transient],
+ steps: [:assemble, &put_otp_version/1, ©_files/1, ©_nginx_config/1],
+- config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}]
++ config_providers: [{Pleroma.Config.ReleaseRuntimeProvider, []}],
++ include_erts: "/usr/lib/erlang/erts-13.1.2"
+ ]
+ ]
+ ]
diff --git a/srcpkgs/akkoma/template b/srcpkgs/akkoma/template
new file mode 100644
index 000000000000..fc08017da382
--- /dev/null
+++ b/srcpkgs/akkoma/template
@@ -0,0 +1,74 @@
+# Template file for 'akkoma'
+pkgname=akkoma
+version=3.5.0
+revision=1
+hostmakedepends="cmake elixir rebar3 git"
+makedepends="file-devel erlang"
+short_desc="Social networking software compatible with other Fediverse software"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="AGPL-3.0-only,CC-BY-4.0,CC-BY-SA-4.0,custom:Unsplash"
+homepage="https://akkoma.dev/AkkomaGang/akkoma"
+distfiles="https://akkoma.dev/AkkomaGang/akkoma/archive/v${version}.tar.gz"
+checksum=90a4170942624cc7cdeba4f60850d02c796dd92a6b3fcd475843bf9cddec5333
+
+system_accounts="_akkoma"
+_akkoma_homedir="/var/lib/akkoma"
+
+make_dirs="/var/lib/akkoma 0700 _akkoma _akkoma
+ /etc/akkoma 0755 _akkoma _akkoma
+ /etc/akkoma/static 0755 _akkoma _akkoma"
+
+export MIX_ENV=prod
+export MIX_REBAR3=/usr/bin/rebar3
+
+if [ "$CROSS_BUILD" ]; then
+ # fixes linking syslog dependency
+ LDFLAGS+=" -L${XBPS_CROSS_BASE}/usr/lib/erlang/usr/lib"
+fi
+
+post_extract() {
+ mix local.hex --force
+ mix deps.get --only prod
+}
+
+do_configure() {
+ if [ "$CROSS_BUILD" ]; then
+ # fixes building fast_html
+ _erts_path="$(cd ${XBPS_CROSS_BASE}/usr/lib/erlang/erts-* && pwd)"
+ vsed -i "s,ERLANG_PATH =.*,ERLANG_PATH = ${_erts_path}," deps/fast_html/Makefile
+ # additional adjustment to include target erts instead of host erts
+ vsed -i "s,include_erts: \"/usr,include_erts: \"${XBPS_CROSS_BASE}," mix.exs
+ fi
+}
+
+do_build() {
+ # without the DEBUG flag, mix gives unhelpful errors for diagnosing c library
+ # issues
+ DEBUG=1 mix release
+}
+
+do_install() {
+ vlicense COPYING
+ vlicense AGPL-3
+
+ cd _build/prod/rel/pleroma
+ vmkdir usr/lib/akkoma
+ vcopy erts-* usr/lib/akkoma
+ vcopy lib usr/lib/akkoma
+ # the Erlang Distribution cookie needs to be unique to each installation
+ rm -f releases/COOKIE
+ vcopy releases usr/lib/akkoma
+ ln -sf /etc/akkoma/COOKIE ${DESTDIR}/usr/lib/akkoma/releases
+
+ # make entrypoint look in standard location instead of cwd
+ vsed -i 's,^RELEASE_ROOT=.*,RELEASE_ROOT="/usr/lib/akkoma",' bin/pleroma
+ vcopy bin usr/lib/akkoma
+
+ vmkdir usr/bin
+ ln -sf /usr/lib/akkoma/bin/pleroma ${DESTDIR}/usr/bin/akkoma
+ ln -sf /usr/lib/akkoma/bin/pleroma_ctl ${DESTDIR}/usr/bin/akkoma_ctl
+
+ vsconf installation/akkoma.nginx
+
+ vsv akkoma
+}
diff --git a/srcpkgs/akkoma/update b/srcpkgs/akkoma/update
new file mode 100644
index 000000000000..998e8e187e1d
--- /dev/null
+++ b/srcpkgs/akkoma/update
@@ -0,0 +1,2 @@
+site="https://akkoma.dev/AkkomaGang/akkoma/tags"
+pkgname="v"
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: New package: akkoma-3.5.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (9 preceding siblings ...)
2022-12-12 14:28 ` TinfoilSubmarine
@ 2023-03-13 1:58 ` github-actions
2023-03-28 1:55 ` [PR PATCH] [Closed]: " github-actions
11 siblings, 0 replies; 13+ messages in thread
From: github-actions @ 2023-03-13 1:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/39299#issuecomment-1465391785
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Closed]: New package: akkoma-3.5.0
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
` (10 preceding siblings ...)
2023-03-13 1:58 ` New package: akkoma-3.5.0 github-actions
@ 2023-03-28 1:55 ` github-actions
11 siblings, 0 replies; 13+ messages in thread
From: github-actions @ 2023-03-28 1:55 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
There's a closed pull request on the void-packages repository
New package: akkoma-3.5.0
https://github.com/void-linux/void-packages/pull/39299
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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-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
-->
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-03-28 1:55 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15 13:34 [PR PATCH] New packages: akkoma-3.2.0, meilisearch-0.28.1 TinfoilSubmarine
2022-09-15 13:35 ` TinfoilSubmarine
2022-09-16 18:45 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-09-23 21:25 ` [PR PATCH] [Updated] New packages: akkoma-3.2.1, meilisearch-0.28.1 TinfoilSubmarine
2022-10-04 16:01 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.28.1 TinfoilSubmarine
2022-10-04 16:30 ` [PR PATCH] [Updated] New packages: akkoma-3.2.3, meilisearch-0.29.0 TinfoilSubmarine
2022-10-04 17:15 ` TinfoilSubmarine
2022-10-19 18:28 ` TinfoilSubmarine
2022-11-16 14:05 ` [PR PATCH] [Updated] New packages: akkoma-3.3.1, meilisearch-0.29.1 TinfoilSubmarine
2022-11-16 14:07 ` [PR PATCH] [Updated] New package: akkoma-3.4.0 TinfoilSubmarine
2022-12-12 14:28 ` TinfoilSubmarine
2023-03-13 1:58 ` New package: akkoma-3.5.0 github-actions
2023-03-28 1:55 ` [PR PATCH] [Closed]: " github-actions
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).