From 6ed517dd70bdfd9c1327489703ab079bb2a6e84b Mon Sep 17 00:00:00 2001 From: "Anna (cybertailor) Vyalkova" Date: Fri, 23 May 2025 16:41:39 +0500 Subject: [PATCH] net-misc/fedigroup: treeclean Signed-off-by: Anna (cybertailor) Vyalkova --- net-misc/fedigroup/Manifest | 2 - net-misc/fedigroup/fedigroup-1.0.6.ebuild | 39 ------------ net-misc/fedigroup/fedigroup-1.0.8.ebuild | 39 ------------ net-misc/fedigroup/files/fedigroup.confd | 5 -- net-misc/fedigroup/files/fedigroup.initd | 76 ----------------------- net-misc/fedigroup/metadata.xml | 9 --- profiles/package.mask | 7 --- 7 files changed, 177 deletions(-) delete mode 100644 net-misc/fedigroup/Manifest delete mode 100644 net-misc/fedigroup/fedigroup-1.0.6.ebuild delete mode 100644 net-misc/fedigroup/fedigroup-1.0.8.ebuild delete mode 100644 net-misc/fedigroup/files/fedigroup.confd delete mode 100644 net-misc/fedigroup/files/fedigroup.initd delete mode 100644 net-misc/fedigroup/metadata.xml diff --git a/net-misc/fedigroup/Manifest b/net-misc/fedigroup/Manifest deleted file mode 100644 index 477482fa4e..0000000000 --- a/net-misc/fedigroup/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST fedigroup.py-1.0.6.tar.gz 17909 BLAKE2B d4a9003d0fd06f3bb74777966b71618cb5283aa017ecf91ac182f8fb460fc028469e13aace678b4319714e555ede2c6f4aa7f16b449efb272bf9a6d441be423f SHA512 0481bd1de94d3d4cf2f5c57c078244a079ac3541393555bcb6b36db88457ed10505d065eeee63da222280e62ec14fb5c492b727da6f6495f1d91936c7b9ea53c -DIST fedigroup.py-1.0.8.tar.gz 17918 BLAKE2B 998c3fdde7492746158994147000354015fdc17887202bf099c50eab267ada34b78601a119254551ce2a398d6c85e43927668ee2a03ec5306251e6bc8f84c866 SHA512 f81b666e743232f614f0a6e7be3516a87be17c755ae19ca405eeb9c4130d2d26b25c7b4b6c7764e913dd54a2547cb07328debd228d86178516bd9608a2ed07cf diff --git a/net-misc/fedigroup/fedigroup-1.0.6.ebuild b/net-misc/fedigroup/fedigroup-1.0.6.ebuild deleted file mode 100644 index d86da64c68..0000000000 --- a/net-misc/fedigroup/fedigroup-1.0.6.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_11 ) -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_SINGLE_IMPL=1 -PYPI_PN="${PN}.py" -PYPI_NO_NORMALIZE=1 -inherit distutils-r1 pypi - -DESCRIPTION="Emulate group accounts on Mastodon/Pleroma" -HOMEPAGE=" - https://pypi.org/project/fedigroup.py/ - https://github.com/uanet-exception/fedigroup.py -" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - acct-user/fedigroup - $(python_gen_cond_dep ' - dev-python/mastodon-py[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - ') -" - -src_install() { - distutils-r1_src_install - - newinitd "${FILESDIR}"/fedigroup.initd ${PN} - newconfd "${FILESDIR}"/fedigroup.confd ${PN} - - diropts --owner fedigroup --group fedigroup - keepdir /var/lib/fedigroup -} diff --git a/net-misc/fedigroup/fedigroup-1.0.8.ebuild b/net-misc/fedigroup/fedigroup-1.0.8.ebuild deleted file mode 100644 index d86da64c68..0000000000 --- a/net-misc/fedigroup/fedigroup-1.0.8.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_11 ) -DISTUTILS_USE_PEP517=setuptools -DISTUTILS_SINGLE_IMPL=1 -PYPI_PN="${PN}.py" -PYPI_NO_NORMALIZE=1 -inherit distutils-r1 pypi - -DESCRIPTION="Emulate group accounts on Mastodon/Pleroma" -HOMEPAGE=" - https://pypi.org/project/fedigroup.py/ - https://github.com/uanet-exception/fedigroup.py -" - -LICENSE="GPL-3+" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND=" - acct-user/fedigroup - $(python_gen_cond_dep ' - dev-python/mastodon-py[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - ') -" - -src_install() { - distutils-r1_src_install - - newinitd "${FILESDIR}"/fedigroup.initd ${PN} - newconfd "${FILESDIR}"/fedigroup.confd ${PN} - - diropts --owner fedigroup --group fedigroup - keepdir /var/lib/fedigroup -} diff --git a/net-misc/fedigroup/files/fedigroup.confd b/net-misc/fedigroup/files/fedigroup.confd deleted file mode 100644 index fe8c789d72..0000000000 --- a/net-misc/fedigroup/files/fedigroup.confd +++ /dev/null @@ -1,5 +0,0 @@ -# Fedigroup bot name -#FEDIGROUP_BOT="${RC_SVCNAME#fedigroup.}" - -# Fedigroup configuration file -#FEDIGROUP_CONFIG="/etc/fedigroup.conf" diff --git a/net-misc/fedigroup/files/fedigroup.initd b/net-misc/fedigroup/files/fedigroup.initd deleted file mode 100644 index bc3674b3aa..0000000000 --- a/net-misc/fedigroup/files/fedigroup.initd +++ /dev/null @@ -1,76 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 -# shellcheck shell=sh disable=SC2034 - -: ${FEDIGROUP_BOT:=${RC_SVCNAME#fedigroup.}} -: ${FEDIGROUP_CONFIG:=/etc/fedigroup.conf} - -extra_commands="create remove list" -description_create="create a new bot" -description_remove="remove selected bot from config file" -description_list="list all bots from config file" - -command="/usr/bin/fedigroup.py" -command_args="run ${FEDIGROUP_BOT} -c ${FEDIGROUP_CONFIG}" -command_user="fedigroup:fedigroup" -command_background=yes -pidfile="/run/${RC_SVCNAME}.pid" -output_log="/var/log/${RC_SVCNAME}.log" -error_log="${output_log}" - -depend() { - need net -} - -fix_config_perms() { - checkpath -q -o fedigroup:fedigroup -m 0640 -f "${FEDIGROUP_CONFIG}" - checkpath -q -o fedigroup:fedigroup -f "${output_log}" - return $? -} - -start_pre() { - if [ "${FEDIGROUP_BOT}" = "${RC_SVCNAME}" ]; then - eerror "Missing FEDIGROUP_BOT variable" - return 1 - fi - - fix_config_perms || return 1 - - return 0 -} - -create() { - einfo "When asked, make sure savepoint file is created in the /var/lib/fedigroup directory" - printf "Enter the name of the bot to be created: " - read name - - fix_config_perms || return 1 - "${command}" create "${name}" -c "${FEDIGROUP_CONFIG}" || return 1 - - initd="/etc/init.d/fedigroup.${name}" - [ -f "${initd}" ] || - cp "/etc/init.d/fedigroup" "${initd}" - - einfo "Done! To start the bot, use the following command:" - einfo " # rc-service fedigroup.${name} start" -} - -remove() { - printf "Enter the name of the bot to be removed: " - read name - - fix_config_perms || return 1 - start-stop-daemon --exec "${command}" \ - -- remove "${name}" -c "${FEDIGROUP_CONFIG}" || return 1 - - initd="/etc/init.d/fedigroup.${name}" - [ -f "${initd}" ] && \ - einfo "Service file ${initd} needs to be removed manually" -} - -list() { - start-stop-daemon --exec "${command}" \ - -- list -c "${FEDIGROUP_CONFIG}" - return $? -} diff --git a/net-misc/fedigroup/metadata.xml b/net-misc/fedigroup/metadata.xml deleted file mode 100644 index 6c4d849395..0000000000 --- a/net-misc/fedigroup/metadata.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - fedigroup.py - uanet-exception/fedigroup.py - - diff --git a/profiles/package.mask b/profiles/package.mask index 960ded1610..1f518ac8f1 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -94,13 +94,6 @@ dev-ml/randomconv # Removal on 2025-05-21. dev-python/pytest-vcr -# Anna (cybertailor) Vyalkova (2025-04-21) -# Unmaintained upstream, not compatible with Mastodon.py v2. -# Removal on 2025-05-21. -net-misc/fedigroup -acct-user/fedigroup -acct-group/fedigroup - # Vivian Heisz (demize) (2025-04-20) # Depends on ~dev-ruby/prawn-2.34.0, which was removed in # ::gentoo, making this unable to build.