net-misc/fedigroup: treeclean

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-05-23 16:41:39 +05:00
parent 86db7dee95
commit 6ed517dd70
7 changed files with 0 additions and 177 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -1,5 +0,0 @@
# Fedigroup bot name
#FEDIGROUP_BOT="${RC_SVCNAME#fedigroup.}"
# Fedigroup configuration file
#FEDIGROUP_CONFIG="/etc/fedigroup.conf"

View File

@@ -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 $?
}

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="pypi">fedigroup.py</remote-id>
<remote-id type="github">uanet-exception/fedigroup.py</remote-id>
</upstream>
</pkgmetadata>