From 4764a7c13edd38e6e1776c48926f3c5cefc13a2f Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 23 Oct 2024 01:05:32 +0200 Subject: www-apps/akkoma: add 3.12.2, drop 3.12.0 Signed-off-by: Anna (navi) Figueiredo Gomes --- www-apps/akkoma/Manifest | 2 +- www-apps/akkoma/akkoma-3.12.0.ebuild | 97 ------------------------------------ www-apps/akkoma/akkoma-3.12.2.ebuild | 97 ++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 98 deletions(-) delete mode 100644 www-apps/akkoma/akkoma-3.12.0.ebuild create mode 100644 www-apps/akkoma/akkoma-3.12.2.ebuild diff --git a/www-apps/akkoma/Manifest b/www-apps/akkoma/Manifest index ac7ba2b..a855feb 100644 --- a/www-apps/akkoma/Manifest +++ b/www-apps/akkoma/Manifest @@ -1 +1 @@ -DIST akkoma-3.12.0.tar.gz 5638964 BLAKE2B cf61d36be2ac599f13b4e049bf4904c3f634b941b50e347e69eb882569b0d18d538f71663813c5adea8f57313ff71083208dcea5283fe7408238f350cc4b6b7a SHA512 b108d22877c40f66d51ec8dbeb8e90070c253058b9552b4ca0158cb1317ece57c4db6511f302f83ec6a27a32a0082c9e5561129e39a1f74d439182fa8d052b47 +DIST akkoma-3.12.2.tar.gz 5639316 BLAKE2B 0d3a08daf04cdeaefb679bb98a0b503e6fbe355e59d13f4c8c9640324bc1f37eb81d17fd3e6364f50a5ad9acbfd139b68745fa91d8d1890bfab214ade80bd1da SHA512 565482510c94672674db32a208a19853b61c136c393570a45b7638d3cb3f30de3a3067c1bf9fb1d7417db84fcbdcd6fe0365cf7b3635093e3ecb4270f23f59db diff --git a/www-apps/akkoma/akkoma-3.12.0.ebuild b/www-apps/akkoma/akkoma-3.12.0.ebuild deleted file mode 100644 index 2a1a0f6..0000000 --- a/www-apps/akkoma/akkoma-3.12.0.ebuild +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright 2022-2023 Anna (navi) Figueiredo Gomes -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit mix optfeature - -DESCRIPTION="a smallish microblogging platform" -HOMEPAGE="https://akkoma.social/" - -SRC_URI="https://akkoma.dev/AkkomaGang/akkoma/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}" -KEYWORDS="~amd64" - -LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" -SLOT="otp" - -# Requires network access (https) as long as elixir dependencies aren't packaged -# said dependencies have their checksum verified via `mix.lock` -RESTRICT="network-sandbox" - -BDEPEND=" - >=dev-lang/erlang-25:= - >=dev-lang/elixir-1.14:= - dev-build/cmake - >=dev-util/rebar-3.20.0-r1 - dev-elixir/hex -" -DEPEND=" - sys-libs/ncurses:= - sys-apps/file -" -RDEPEND=" - ${DEPEND} - acct-user/akkoma - acct-group/akkoma - dev-db/postgresql[uuid] -" - -src_unpack() { - default - - cd "${S}" || die - emix deps.get --only prod -} - -src_prepare() { - default - - sed -i -e '/include_executables_for:/a\ strip_beams: false,\n\ include_erts: false,' mix.exs || die - - sed -i \ - -e '/update \[OPTIONS\]/,/--tmp-dir/d' \ - -e 's;update "$@";echo "Unsupported, check the '"${CATEGORY}/${PN}"' package instead.";' \ - rel/files/bin/pleroma_ctl || die - - # Default ends up being inside /opt/akkoma which should be kept read-only to akkoma - echo 'config :tzdata, :data_dir, "/var/lib/akkoma/tzdata"' >> config/prod.exs || die - - echo "import Config" > config/prod.secret.exs || die -} - -src_compile() { - mkdir -p akkoma || die - emix release --overwrite --path akkoma -} - -src_install() { - # doins doesn't seems to preserve permissions - mkdir -p "${ED}/opt" || die - cp -pr ./akkoma "${ED}/opt/akkoma" || die - fperms 0750 /opt/akkoma - fowners 0:akkoma /opt/akkoma - - doinitd ./akkoma/installation/init.d/akkoma - - dosym /opt/akkoma/bin/pleroma /usr/bin/pleroma - dosym /opt/akkoma/bin/pleroma_ctl /usr/bin/pleroma_ctl - - # This file controls console access - fperms 0750 /opt/akkoma/releases/COOKIE - fowners 0:akkoma /opt/akkoma/releases/COOKIE - - keepdir /etc/akkoma - fperms 0750 /etc/akkoma - fowners 0:akkoma /etc/akkoma - - keepdir /var/lib/akkoma - fperms 0750 /var/lib/akkoma - fowners akkoma:akkoma /var/lib/akkoma -} - -pkg_postinst() { - optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} & images in previews" media-gfx/imagemagick - optfeature "For video support in Media Preview Proxy" media-video/ffmpeg - optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool -} diff --git a/www-apps/akkoma/akkoma-3.12.2.ebuild b/www-apps/akkoma/akkoma-3.12.2.ebuild new file mode 100644 index 0000000..2a1a0f6 --- /dev/null +++ b/www-apps/akkoma/akkoma-3.12.2.ebuild @@ -0,0 +1,97 @@ +# Copyright 2022-2023 Anna (navi) Figueiredo Gomes +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mix optfeature + +DESCRIPTION="a smallish microblogging platform" +HOMEPAGE="https://akkoma.social/" + +SRC_URI="https://akkoma.dev/AkkomaGang/akkoma/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}" +KEYWORDS="~amd64" + +LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" +SLOT="otp" + +# Requires network access (https) as long as elixir dependencies aren't packaged +# said dependencies have their checksum verified via `mix.lock` +RESTRICT="network-sandbox" + +BDEPEND=" + >=dev-lang/erlang-25:= + >=dev-lang/elixir-1.14:= + dev-build/cmake + >=dev-util/rebar-3.20.0-r1 + dev-elixir/hex +" +DEPEND=" + sys-libs/ncurses:= + sys-apps/file +" +RDEPEND=" + ${DEPEND} + acct-user/akkoma + acct-group/akkoma + dev-db/postgresql[uuid] +" + +src_unpack() { + default + + cd "${S}" || die + emix deps.get --only prod +} + +src_prepare() { + default + + sed -i -e '/include_executables_for:/a\ strip_beams: false,\n\ include_erts: false,' mix.exs || die + + sed -i \ + -e '/update \[OPTIONS\]/,/--tmp-dir/d' \ + -e 's;update "$@";echo "Unsupported, check the '"${CATEGORY}/${PN}"' package instead.";' \ + rel/files/bin/pleroma_ctl || die + + # Default ends up being inside /opt/akkoma which should be kept read-only to akkoma + echo 'config :tzdata, :data_dir, "/var/lib/akkoma/tzdata"' >> config/prod.exs || die + + echo "import Config" > config/prod.secret.exs || die +} + +src_compile() { + mkdir -p akkoma || die + emix release --overwrite --path akkoma +} + +src_install() { + # doins doesn't seems to preserve permissions + mkdir -p "${ED}/opt" || die + cp -pr ./akkoma "${ED}/opt/akkoma" || die + fperms 0750 /opt/akkoma + fowners 0:akkoma /opt/akkoma + + doinitd ./akkoma/installation/init.d/akkoma + + dosym /opt/akkoma/bin/pleroma /usr/bin/pleroma + dosym /opt/akkoma/bin/pleroma_ctl /usr/bin/pleroma_ctl + + # This file controls console access + fperms 0750 /opt/akkoma/releases/COOKIE + fowners 0:akkoma /opt/akkoma/releases/COOKIE + + keepdir /etc/akkoma + fperms 0750 /etc/akkoma + fowners 0:akkoma /etc/akkoma + + keepdir /var/lib/akkoma + fperms 0750 /var/lib/akkoma + fowners akkoma:akkoma /var/lib/akkoma +} + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} & images in previews" media-gfx/imagemagick + optfeature "For video support in Media Preview Proxy" media-video/ffmpeg + optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool +} -- cgit v1.2.3