From bb9483fe90ab9e90d85ee33eee37cae7631c055d Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 18 Jul 2022 02:51:03 +0200 Subject: [PATCH] www-apps/misskey: add 12.117.0 Signed-off-by: tastytea --- www-apps/misskey/Manifest | 2 + www-apps/misskey/misskey-12.117.0.ebuild | 151 +++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 www-apps/misskey/misskey-12.117.0.ebuild diff --git a/www-apps/misskey/Manifest b/www-apps/misskey/Manifest index bc8d385..b83d832 100644 --- a/www-apps/misskey/Manifest +++ b/www-apps/misskey/Manifest @@ -4,4 +4,6 @@ DIST misskey-12.115.0-deps.tar.xz 561393364 BLAKE2B b66b812d31778bc6ffa850d70bca DIST misskey-12.115.0.tar.gz 19874071 BLAKE2B 040c6e7e357dab8c192c48bd58df59b01d1be05856a66e275f7eface1b5093be2405ce6ed52e0c5d4c8aa5fe4d942b67afe5c465b8891d3bcac729a19037ffc9 SHA512 ae9dc04b14702fba40a426f129a256bda1e7c6fe20eefae544b0a1772e9f3fc176f2444b33580caf41837a586a53b7c6a64b2f7523bcba34cec59751cef71b4a DIST misskey-12.116.1-deps.tar.xz 561456076 BLAKE2B 496c1745ad02a5115a21901da6383536d93ff009c627a6f94350274b2a7b93f703badc446e45e816e682a3473f5d0d7a83cc24d3d53d6308667161aa78755780 SHA512 f3252443927f796fdae264d26f42fceeada8ae5e2e09e5566549f534a975b9b758307196296457e0d20172da764a9e4565ae418148e0bb50bc0c9d9a573baecf DIST misskey-12.116.1.tar.gz 19877112 BLAKE2B 41083b6cb804d6bf3b0c4f90ced0909324a4196c9fff5fb592ef38691615be1985186acfa567f703651b38005f9b391187c693e4327b5e94f13a2b8561eae70a SHA512 254de07ec54056b29df71898f1a0f14310be886359ece046b527a17f9cd5347c2a0b3c2c02676fc3340843095a9dedf1bf4a63d9c42b689e6486b37aac15fadc +DIST misskey-12.117.0-deps.tar.xz 561404000 BLAKE2B 463e9172d09773d5bd845cf0edbd18b63c72c04f592f73ac0261014ba87d22a55f892094510e2c1a04b7d110c42dfe0c27c1223a9a49fd83b76c844d9a24385a SHA512 62b830d6634eae6897a8174d1b103817f2db80fe574f80241e0a8ab18dee0d9ff1de3de716674cd4d0c0afe2142f9651780df1f2971deb56683a635f904cf368 +DIST misskey-12.117.0.tar.gz 19879264 BLAKE2B dec8b53ca554d126a01bd6b4909de1294750f5dded6b8b8c42bc032402c7869e027dcde7782de599a584a558dc086eeff9490c8ebffe2a26ad4683f520e422ab SHA512 d6bbe78484e1486ccfe006e3e1a83a8e5bb911594783f7c679652d2e39f7e067888d2267846f264d6665d060ef8389c17bf85f987c0f040398c169b196c6913b DIST misskey-assets-0179793ec891856d6f37a3be16ba4c22f67a81b5.tar.gz 40471635 BLAKE2B 5305b5b316aa9d27f860e0e2c86f55eeb4140fd76c9cc7a753f78f93c509a10237033ec2109d2e806605f302d3fc9e9b916d2967053a4bce9b2cdea14df5885b SHA512 b4de7d8ab43f27e14372bb7246be4b032b142f22913ceaaa01e7631a1f702ba77ccf25482038cf2341f7a0ae92d54a1200bb654cac1d409b1ddcc113513b3f16 diff --git a/www-apps/misskey/misskey-12.117.0.ebuild b/www-apps/misskey/misskey-12.117.0.ebuild new file mode 100644 index 0000000..5683294 --- /dev/null +++ b/www-apps/misskey/misskey-12.117.0.ebuild @@ -0,0 +1,151 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit optfeature savedconfig + +# NOTE: check for updates on each bump +MY_COMMIT_ASSETS="0179793ec891856d6f37a3be16ba4c22f67a81b5" + +DESCRIPTION="An interplanetary microblogging platform" +HOMEPAGE="https://misskey-hub.net/" +SRC_URI=" + https://github.com/misskey-dev/misskey/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/misskey-dev/assets/archive/${MY_COMMIT_ASSETS}.tar.gz -> ${PN}-assets-${MY_COMMIT_ASSETS}.tar.gz + https://tastytea.de/files/gentoo/${P}-deps.tar.xz +" + +# NOTE: to generate the deps archive: +# export YARN_CACHE_FOLDER="$(realpath ./packages-cache)" +# export CYPRESS_CACHE_FOLDER="$(realpath ./packages-cache)" +# export npm_config_cache="$(realpath ./packages-cache)" +# yarn install +# tar -caf ${P}-deps.tar.xz packages-cache +# unset YARN_CACHE_FOLDER CYPRESS_CACHE_FOLDER npm_config_cache + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="nginx +savedconfig source" + +REQUIRED_USE="savedconfig" + +RESTRICT="strip network-sandbox" + +COMMON_DEPEND=" + >=net-libs/nodejs-16:=[npm] + " + fi + + optfeature "thumbnail generation support" media-video/ffmpeg +} + +pkg_config() { + einfo "Initialising PostgreSQL database" + echo -n "password for misskey user: " + read MY_PASSWORD || die "Reading password failed" + echo "create database misskey; create user misskey with encrypted password '${MY_PASSWORD}'; grant all privileges on database misskey to misskey; \q" \ + | su --login --command psql postgres || die "database creation failed" + + su --shell /bin/bash --login --command \ + "cd misskey && yarn ${YARNFLAGS} run init" \ + misskey || die "database initialisation failed" + + ewarn "When you first start Misskey you will be asked to add an admin account via the web interface, and registrations are enabled." + ewarn "Do not expose the web interface to the public until after you configured your instance\!" +}