From 38e0684c7ab2f1278928272b75e9b495a4a4486f Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 28 Feb 2023 00:25:44 +0100 Subject: [PATCH] www-apps/misskey: drop 13.5.6-r1, 13.6.1 Signed-off-by: tastytea --- www-apps/misskey/Manifest | 4 - www-apps/misskey/misskey-13.5.6-r1.ebuild | 161 ---------------------- www-apps/misskey/misskey-13.6.1.ebuild | 161 ---------------------- 3 files changed, 326 deletions(-) delete mode 100644 www-apps/misskey/misskey-13.5.6-r1.ebuild delete mode 100644 www-apps/misskey/misskey-13.6.1.ebuild diff --git a/www-apps/misskey/Manifest b/www-apps/misskey/Manifest index fe96d93..549e7a5 100644 --- a/www-apps/misskey/Manifest +++ b/www-apps/misskey/Manifest @@ -1,7 +1,3 @@ -DIST misskey-13.5.6-deps.tar.xz 336399864 BLAKE2B b0c59354d1417003a5d13fa85efca8b478bb5f374313772efbd9d598133bb994db277b832ccb179733b2b0bd9ff5a463775d4de480f57b88ed9e092656024de1 SHA512 a7833e063f13fc136f0444ebc89f3eea7ef6df72eaf8a45d05f56c24f049cbcd6c177dc612f3a4a034b0d4ff99eb37257c00458a77ccb3d7b51dfbc494af95f5 -DIST misskey-13.5.6.tar.gz 20112087 BLAKE2B 0b8c5e58f0a02883219931a295de7eb9fb98c53263140a7fdb96cf26baaf450b6a1d56aee183897e926fc16ae79eaf3f9a1f11b1c73ef7e34e6c5b3891a53dcf SHA512 dc5f6cb7113ed8d005b68a7d7a1126532135f72b5c751d09eb0b9f43275685f7fb07d0f1d5f867870aee3b23c99c62d9b4fbe97d422910519ca064ce43ad4137 -DIST misskey-13.6.1-deps.tar.xz 336311716 BLAKE2B 3339e6eaa08153daf30914807f390037fc2538f8be1b59a28bf1f2e7b21ea0951e4579f55f3d1994e91b152f440090cae882a6a48c20c98b3c42f841aedde020 SHA512 b2e66f074c309e1108aa893abe0951670b4d81132e777c48db39076385914554f9acf36f8061088d64c8b1f29903bb2fea0fc7c0dff4c436a664728c6e83992b -DIST misskey-13.6.1.tar.gz 20098305 BLAKE2B db98436038b20a247dbf710123e0b7ebd3b48693aba53ec85c9a855cde8f54f472a3ac3f372fe3b5ac1e9536a5ef620d3baa337c731daa9dac89f8290aee8e62 SHA512 d197bcd49d6a539c45d06cb3d3128f8a5eb7e21b3fe97ded87a5a6bb10ec508cece4ab919e05a5d97ec98c4dee58dbb2291d7c5c3fa95f0dcd6a3192ed6b9b4d DIST misskey-13.7.5-deps.tar.zst 502919656 BLAKE2B b16df781133ea7d717f1fc883baa13341a3ff9e8b2ece89680676135f4db8fbb19474125d2d0d443dc79fac80c34c945c09477ae66f6210ce1a85ca4a3130194 SHA512 c865b3b1a055138f3b72ba54cf557e05a4114696e31c604a42b973bc9ce0ab55ebf4a5e1dab00efc712a2dfeef5f8c5cc2fac19f534073691a519f35b87ebbcd DIST misskey-13.7.5.tar.gz 20262523 BLAKE2B 0e8c23623c1fa98767fad488a71cc4cb10fd478af29b95f3e5f0e48fa703ab49b967729911f354f8b3c6f8bbe6daa03c23b88403df0266087442e8b6aeab2ef7 SHA512 d9ea30309b5c9c910454bafba147a6e2caca3980f07ff94ce273dcf9446de9d77a8f6cf808369e6c51808a976adfceb0058c3c0865fd0ca995a691de46c350c1 DIST misskey-13.8.1-deps.tar.zst 411317641 BLAKE2B 8df294a673419af99c957aa0a357bd4f36771243de76209890fec8bed334d0ddfa8194b213133594d3aced295de4045a899d74d279c81ae3dc349faccd93d254 SHA512 ed5d1a22dc24dea21637ae57efcca51bec66374063c84e5fa54cb6e901782bfdf4553a31565cf579edcf4c90e0ffc1eb9cebe5494993597eb83420fdb9d63bf1 diff --git a/www-apps/misskey/misskey-13.5.6-r1.ebuild b/www-apps/misskey/misskey-13.5.6-r1.ebuild deleted file mode 100644 index 264e5ed..0000000 --- a/www-apps/misskey/misskey-13.5.6-r1.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit optfeature savedconfig - -# NOTE: check for updates on each bump -MY_COMMIT_ASSETS="0179793ec891856d6f37a3be16ba4c22f67a81b5" -MY_COMMIT_EMOJIS="cae981eb4c5189ea9ea3230e83b876a5068df7d1" - -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://github.com/misskey-dev/emojis/archive/${MY_COMMIT_EMOJIS}.tar.gz -> ${PN}-emojis-${MY_COMMIT_EMOJIS}.tar.gz - https://tastytea.de/files/gentoo/${P}-deps.tar.xz -" - -# NOTE: to generate the deps archive: -# export CYPRESS_CACHE_FOLDER="$(realpath ./packages-cache)" -# export npm_config_cache="$(realpath ./packages-cache)" -# pnpm config set store-dir "$(realpath ./packages-cache)" -# pnpm install --frozen-lockfile -# tar -caf ${P}-deps.tar.xz packages-cache -# unset 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-18.13:=[npm] -" -BDEPEND=" - ${COMMON_DEPEND} - dev-lang/nasm - virtual/pkgconfig -" -RDEPEND=" - ${COMMON_DEPEND} - acct-user/misskey - >=dev-db/postgresql-15 - dev-db/redis - nginx? ( www-servers/nginx ) -" - -QA_PREBUILT=" - /opt/misskey/misskey/packages/backend/node_modules/msgpackr-extract/prebuilds/* - /opt/misskey/misskey/packages/client/node_modules/microtime/prebuilds/* -" - -pkg_setup() { - # check if pnpm from nodejs is installed - if ! type pnpm > /dev/null 2>&1; then - eerror "pnpm not found. It can be installed with 'corepack enable'" - fi -} - -src_unpack() { - default - mv --no-target-directory assets-${MY_COMMIT_ASSETS} ${P}/${PN}-assets \ - || die "Could not move assets" - mv --no-target-directory emojis-${MY_COMMIT_EMOJIS} ${P}/fluent-emojis \ - || die "Could not move emojis" - mv packages-cache "${T}"/ || die "Could not move packages cache" -} - -src_prepare() { - export CYPRESS_CACHE_FOLDER="${T}"/packages-cache - export npm_config_cache="${T}"/packages-cache - export PNPMFLAGS="--verbose" - pnpm config set cache "${T}"/packages-cache - pnpm config set store-dir "${T}"/packages-cache - - # use system node-gyp - PATH+=":/usr/lib64/node_modules/npm/bin/node-gyp-bin" - export npm_config_nodedir=/usr/include/node/ - - restore_config .config/default.yml - if [[ ! -f .config/default.yml ]]; then - eerror "Edit .config/example.yml and save it to the location mentioned above" - die "No config file found" - fi - - default -} - -src_compile() { - pnpm ${PNPMFLAGS} install --frozen-lockfile || die "dependency installation failed" - NODE_ENV=production pnpm ${PNPMFLAGS} run build || die "build failed" -} - -src_install() { - insinto opt/misskey/misskey - insopts -o misskey -g misskey - if use source; then - doins -r . - else - doins -r package.json .node-version .config built node_modules packages \ - fluent-emojis pnpm-workspace.yaml pnpm-lock.yaml - fi - - # insopts doesn't affect directories - chown --recursive misskey:misskey "${ED}"/opt/misskey/misskey - chmod o= "${ED}"/opt/misskey/misskey - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - if use nginx; then - sed -i 's/use logger$/use logger nginx/' "${ED}"/etc/init.d/${PN} \ - || die "Could not modify OpenRC init script" - fi - - einstalldocs -} - -pkg_preinst() { - # Apparently Misskey creates files at runtime that can interfere - # after an upgrade. Normally you would run 'yarn cleanall'. - einfo "Cleaning up Misskey directory …" - su --shell /bin/bash --login --command \ - "rm -rf misskey/{built,node_modules} && rm -rf misskey/packages/{backend,client,sw}/{built,node_modules}" \ - misskey || die "cleanup failed" -} - -pkg_postinst() { - # Only run migrations if database exists - if su --command "psql misskey -c ''" postgres; then - einfo "Running migration…" - su --shell /bin/bash --login --command \ - "cd misskey && pnpm run migrate" misskey || die "migration failed" - else - elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" - fi - - if use nginx; then - einfo "An nginx example config can be found at " - fi - - optfeature "thumbnail generation support" media-video/ffmpeg -} - -pkg_config() { - einfo "Initialising PostgreSQL database" - echo -n "password for misskey user: " - read -r MY_PASSWORD || die "Reading password failed" - echo "create database misskey with encoding = 'UTF8'; create user misskey with encrypted password '${MY_PASSWORD}'; grant all privileges on database misskey to misskey; \q" \ - | su --command psql postgres || die "database creation failed" - - su --shell /bin/bash --login --command \ - "cd misskey && pnpm 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\!" -} diff --git a/www-apps/misskey/misskey-13.6.1.ebuild b/www-apps/misskey/misskey-13.6.1.ebuild deleted file mode 100644 index 264e5ed..0000000 --- a/www-apps/misskey/misskey-13.6.1.ebuild +++ /dev/null @@ -1,161 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit optfeature savedconfig - -# NOTE: check for updates on each bump -MY_COMMIT_ASSETS="0179793ec891856d6f37a3be16ba4c22f67a81b5" -MY_COMMIT_EMOJIS="cae981eb4c5189ea9ea3230e83b876a5068df7d1" - -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://github.com/misskey-dev/emojis/archive/${MY_COMMIT_EMOJIS}.tar.gz -> ${PN}-emojis-${MY_COMMIT_EMOJIS}.tar.gz - https://tastytea.de/files/gentoo/${P}-deps.tar.xz -" - -# NOTE: to generate the deps archive: -# export CYPRESS_CACHE_FOLDER="$(realpath ./packages-cache)" -# export npm_config_cache="$(realpath ./packages-cache)" -# pnpm config set store-dir "$(realpath ./packages-cache)" -# pnpm install --frozen-lockfile -# tar -caf ${P}-deps.tar.xz packages-cache -# unset 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-18.13:=[npm] -" -BDEPEND=" - ${COMMON_DEPEND} - dev-lang/nasm - virtual/pkgconfig -" -RDEPEND=" - ${COMMON_DEPEND} - acct-user/misskey - >=dev-db/postgresql-15 - dev-db/redis - nginx? ( www-servers/nginx ) -" - -QA_PREBUILT=" - /opt/misskey/misskey/packages/backend/node_modules/msgpackr-extract/prebuilds/* - /opt/misskey/misskey/packages/client/node_modules/microtime/prebuilds/* -" - -pkg_setup() { - # check if pnpm from nodejs is installed - if ! type pnpm > /dev/null 2>&1; then - eerror "pnpm not found. It can be installed with 'corepack enable'" - fi -} - -src_unpack() { - default - mv --no-target-directory assets-${MY_COMMIT_ASSETS} ${P}/${PN}-assets \ - || die "Could not move assets" - mv --no-target-directory emojis-${MY_COMMIT_EMOJIS} ${P}/fluent-emojis \ - || die "Could not move emojis" - mv packages-cache "${T}"/ || die "Could not move packages cache" -} - -src_prepare() { - export CYPRESS_CACHE_FOLDER="${T}"/packages-cache - export npm_config_cache="${T}"/packages-cache - export PNPMFLAGS="--verbose" - pnpm config set cache "${T}"/packages-cache - pnpm config set store-dir "${T}"/packages-cache - - # use system node-gyp - PATH+=":/usr/lib64/node_modules/npm/bin/node-gyp-bin" - export npm_config_nodedir=/usr/include/node/ - - restore_config .config/default.yml - if [[ ! -f .config/default.yml ]]; then - eerror "Edit .config/example.yml and save it to the location mentioned above" - die "No config file found" - fi - - default -} - -src_compile() { - pnpm ${PNPMFLAGS} install --frozen-lockfile || die "dependency installation failed" - NODE_ENV=production pnpm ${PNPMFLAGS} run build || die "build failed" -} - -src_install() { - insinto opt/misskey/misskey - insopts -o misskey -g misskey - if use source; then - doins -r . - else - doins -r package.json .node-version .config built node_modules packages \ - fluent-emojis pnpm-workspace.yaml pnpm-lock.yaml - fi - - # insopts doesn't affect directories - chown --recursive misskey:misskey "${ED}"/opt/misskey/misskey - chmod o= "${ED}"/opt/misskey/misskey - - newinitd "${FILESDIR}"/${PN}.initd ${PN} - if use nginx; then - sed -i 's/use logger$/use logger nginx/' "${ED}"/etc/init.d/${PN} \ - || die "Could not modify OpenRC init script" - fi - - einstalldocs -} - -pkg_preinst() { - # Apparently Misskey creates files at runtime that can interfere - # after an upgrade. Normally you would run 'yarn cleanall'. - einfo "Cleaning up Misskey directory …" - su --shell /bin/bash --login --command \ - "rm -rf misskey/{built,node_modules} && rm -rf misskey/packages/{backend,client,sw}/{built,node_modules}" \ - misskey || die "cleanup failed" -} - -pkg_postinst() { - # Only run migrations if database exists - if su --command "psql misskey -c ''" postgres; then - einfo "Running migration…" - su --shell /bin/bash --login --command \ - "cd misskey && pnpm run migrate" misskey || die "migration failed" - else - elog "Run emerge --config ${CATEGORY}/${PN} to initialise the PostgreSQL database" - fi - - if use nginx; then - einfo "An nginx example config can be found at " - fi - - optfeature "thumbnail generation support" media-video/ffmpeg -} - -pkg_config() { - einfo "Initialising PostgreSQL database" - echo -n "password for misskey user: " - read -r MY_PASSWORD || die "Reading password failed" - echo "create database misskey with encoding = 'UTF8'; create user misskey with encrypted password '${MY_PASSWORD}'; grant all privileges on database misskey to misskey; \q" \ - | su --command psql postgres || die "database creation failed" - - su --shell /bin/bash --login --command \ - "cd misskey && pnpm 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\!" -}