From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C8BC5158009 for ; Sat, 24 Jun 2023 19:10:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18179E076B; Sat, 24 Jun 2023 19:10:44 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB5B4E076B for ; Sat, 24 Jun 2023 19:10:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D00534081F for ; Sat, 24 Jun 2023 19:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E231A96 for ; Sat, 24 Jun 2023 19:10:38 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1687633755.35ba4a0c9d644373234a0820620fe45137b07400.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-apps/pleroma/ X-VCS-Repository: repo/proj/guru X-VCS-Files: www-apps/pleroma/Manifest www-apps/pleroma/metadata.xml www-apps/pleroma/pleroma-2.5.2.ebuild www-apps/pleroma/pleroma-9999.ebuild X-VCS-Directories: www-apps/pleroma/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: 35ba4a0c9d644373234a0820620fe45137b07400 X-VCS-Branch: dev Date: Sat, 24 Jun 2023 19:10:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a1292f15-c7a9-4d4e-bb7a-cdf0ed1db438 X-Archives-Hash: 4f6d876c8fdf89d968606230835ab4c3 commit: 35ba4a0c9d644373234a0820620fe45137b07400 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Sat Jun 24 19:09:15 2023 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Sat Jun 24 19:09:15 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35ba4a0c www-apps/pleroma: add 2.5.2, 9999 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> www-apps/pleroma/Manifest | 1 + www-apps/pleroma/metadata.xml | 8 +++ www-apps/pleroma/pleroma-2.5.2.ebuild | 108 ++++++++++++++++++++++++++++++++++ www-apps/pleroma/pleroma-9999.ebuild | 108 ++++++++++++++++++++++++++++++++++ 4 files changed, 225 insertions(+) diff --git a/www-apps/pleroma/Manifest b/www-apps/pleroma/Manifest new file mode 100644 index 000000000..6fde19fbf --- /dev/null +++ b/www-apps/pleroma/Manifest @@ -0,0 +1 @@ +DIST pleroma-v2.5.2.tar.gz 27628442 BLAKE2B 6ae2b8c2024f0da5ce7888e67db78352f8c6a61d7df7ffe151e051ae3f834636954224f76582282cf1f00b2cbae9f8ac652a0dbe6f14d147adaf52dab89fbf86 SHA512 b4571e6840e554184fbec8d643240c502365db3b8f7bf92925ad4e41ff93d12b6a6e2bd91a174f4e38f379c3580bdfa06405c8e0ae9d9179d9498a07d6110ead diff --git a/www-apps/pleroma/metadata.xml b/www-apps/pleroma/metadata.xml new file mode 100644 index 000000000..2092bcc33 --- /dev/null +++ b/www-apps/pleroma/metadata.xml @@ -0,0 +1,8 @@ + + + + + contact@hacktivis.me + Haelwenn (lanodan) Monnier + + diff --git a/www-apps/pleroma/pleroma-2.5.2.ebuild b/www-apps/pleroma/pleroma-2.5.2.ebuild new file mode 100644 index 000000000..1109a32ce --- /dev/null +++ b/www-apps/pleroma/pleroma-2.5.2.ebuild @@ -0,0 +1,108 @@ +# Copyright 2022-2023 Haelwenn (lanodan) Monnier +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mix optfeature + +DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" +HOMEPAGE="https://pleroma.social/" +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma" + # git-r3 doesn't allows make.conf override of MIN_CLONE_TYPE, so done here for my self-hosted branch + EGIT_MIN_CLONE_TYPE="single+tags" +else + SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/${PN}-v${PV}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" +fi +LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" +SLOT="otp" +KEYWORDS="~amd64" +IUSE="" + +# 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:= + dev-lang/elixir:= + dev-util/cmake + dev-util/rebar + dev-elixir/hex +" +DEPEND=" + sys-libs/ncurses:= + sys-apps/file +" +RDEPEND=" + ${DEPEND} + acct-user/pleroma + acct-group/pleroma + dev-db/postgresql[uuid] +" + +src_unpack() { + default + + [[ "${PV}" == *9999 ]] && git-r3_src_unpack + + cd "${S}" || die + emix deps.get --only prod +} + +src_prepare() { + default + + # Point to the correct source repo, needed for AGPL compliance + if [[ "${PV}" == *9999 ]] && [[ -n "${EGIT_OVERRIDE_REPO}" ]]; then + sed -i "s!source_url: .*!source_url: \"${EGIT_OVERRIDE_REPO}\",!" mix.exs || die + fi + + 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/pleroma which should be kept read-only to pleroma + echo 'config :tzdata, :data_dir, "/var/lib/pleroma/tzdata"' >> config/prod.exs || die + + echo "import Config" > config/prod.secret.exs || die +} + +src_compile() { + mkdir -p pleroma || die + emix release --overwrite --path pleroma +} + +src_install() { + # doins doesn't seems to preserve permissions + mkdir -p "${ED}/opt" || die + cp -pr ./pleroma "${ED}/opt/pleroma" || die + fperms 0750 /opt/pleroma + fowners 0:pleroma /opt/pleroma + + dosym /opt/pleroma/bin/pleroma /usr/bin/pleroma + dosym /opt/pleroma/bin/pleroma_ctl /usr/bin/pleroma_ctl + + # This file controls console access + fperms 0750 /opt/pleroma/releases/COOKIE + fowners 0:pleroma /opt/pleroma/releases/COOKIE + + keepdir /etc/pleroma + fperms 0750 /etc/pleroma + fowners 0:pleroma /etc/pleroma + + keepdir /var/lib/pleroma + fperms 0750 /var/lib/pleroma + fowners pleroma:pleroma /var/lib/pleroma +} + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} and still image support in Media Preview Proxy" 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/pleroma/pleroma-9999.ebuild b/www-apps/pleroma/pleroma-9999.ebuild new file mode 100644 index 000000000..1109a32ce --- /dev/null +++ b/www-apps/pleroma/pleroma-9999.ebuild @@ -0,0 +1,108 @@ +# Copyright 2022-2023 Haelwenn (lanodan) Monnier +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit mix optfeature + +DESCRIPTION="ActivityPub social networking software compatible with other Fediverse software" +HOMEPAGE="https://pleroma.social/" +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.pleroma.social/pleroma/pleroma" + # git-r3 doesn't allows make.conf override of MIN_CLONE_TYPE, so done here for my self-hosted branch + EGIT_MIN_CLONE_TYPE="single+tags" +else + SRC_URI="https://git.pleroma.social/pleroma/pleroma/-/archive/v${PV}/${PN}-v${PV}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" +fi +LICENSE="AGPL-3 CC-BY-SA-4.0 CC-BY-4.0" +SLOT="otp" +KEYWORDS="~amd64" +IUSE="" + +# 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:= + dev-lang/elixir:= + dev-util/cmake + dev-util/rebar + dev-elixir/hex +" +DEPEND=" + sys-libs/ncurses:= + sys-apps/file +" +RDEPEND=" + ${DEPEND} + acct-user/pleroma + acct-group/pleroma + dev-db/postgresql[uuid] +" + +src_unpack() { + default + + [[ "${PV}" == *9999 ]] && git-r3_src_unpack + + cd "${S}" || die + emix deps.get --only prod +} + +src_prepare() { + default + + # Point to the correct source repo, needed for AGPL compliance + if [[ "${PV}" == *9999 ]] && [[ -n "${EGIT_OVERRIDE_REPO}" ]]; then + sed -i "s!source_url: .*!source_url: \"${EGIT_OVERRIDE_REPO}\",!" mix.exs || die + fi + + 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/pleroma which should be kept read-only to pleroma + echo 'config :tzdata, :data_dir, "/var/lib/pleroma/tzdata"' >> config/prod.exs || die + + echo "import Config" > config/prod.secret.exs || die +} + +src_compile() { + mkdir -p pleroma || die + emix release --overwrite --path pleroma +} + +src_install() { + # doins doesn't seems to preserve permissions + mkdir -p "${ED}/opt" || die + cp -pr ./pleroma "${ED}/opt/pleroma" || die + fperms 0750 /opt/pleroma + fowners 0:pleroma /opt/pleroma + + dosym /opt/pleroma/bin/pleroma /usr/bin/pleroma + dosym /opt/pleroma/bin/pleroma_ctl /usr/bin/pleroma_ctl + + # This file controls console access + fperms 0750 /opt/pleroma/releases/COOKIE + fowners 0:pleroma /opt/pleroma/releases/COOKIE + + keepdir /etc/pleroma + fperms 0750 /etc/pleroma + fowners 0:pleroma /etc/pleroma + + keepdir /var/lib/pleroma + fperms 0750 /var/lib/pleroma + fowners pleroma:pleroma /var/lib/pleroma +} + +pkg_postinst() { + optfeature "For Pleroma.Upload.Filters.{Mogrify,Mogrifun} and still image support in Media Preview Proxy" media-gfx/imagemagick + optfeature "For video support in Media Preview Proxy" media-video/ffmpeg + optfeature "For Pleroma.Upload.Filters.Exiftool.* filters" media-libs/exiftool +}