www-apps/rutorrent: add 5.2.10

Signed-off-by: Henning Schild <henning@hennsch.de>
Part-of: https://github.com/gentoo/gentoo/pull/42700
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Henning Schild 2025-06-22 22:02:07 +02:00 committed by Viorel Munteanu
parent d0a1ff2366
commit 4b90336cd8
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0
2 changed files with 82 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST rutorrent-5.2.10.tar.gz 2746761 BLAKE2B 367ad07e2a648e02682e093154bf7015ac66518d07a501a785851755450495d1abdba2fb2c531307ee7a95259a12927f30f9b64633cbd917bd06fa648c0589fe SHA512 4c6be1d2bca65f13aa4ea69cadfd5c0f0cbad8d3c14cd19aafaebce269a38169ddcee263379fb8381a3c46638d7ef652e7d4b95fe2a921952c7dff05538eeab4
DIST rutorrent-5.2.8.tar.gz 2746565 BLAKE2B 38fc28b49687518bc6747b8fc76eea5e9228af590d42ff7267fe7fbdacef891ae5035ee7271d4a8b7a83228bcb57b5aeef0d6f78992c159495618e41daff1ae3 SHA512 b66da9c91effc2ba76964cc6c9ad09d70db0c86c2d8e8f2a3459a4ca1389c4ee639be2c008e567064a9acbbda517310c3435b6eb375adb5ae21e4fd2ab80b6e4
DIST rutorrent-5.2.9.tar.gz 2746539 BLAKE2B 0898538e1553b5edabec1b12ef0db1363c452e955c6c0a35897e1748a9e06cfcdbf1aad164940f3ceafffc701f04861fec96d2223390d79ff493e44d30ede3ad SHA512 2637d050c1c5d0fdc78fa5aabf11dc1c63d61d23984572b68e1a819af07e1216fb362e3063e91253821777528947cbbff27b7a3806cea742800f4113458b4bf0

View File

@ -0,0 +1,81 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit webapp optfeature
DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent"
HOMEPAGE="https://github.com/Novik/ruTorrent"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Novik/ruTorrent.git"
else
SRC_URI="https://github.com/Novik/ruTorrent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~ppc ~x86"
S="${WORKDIR}/ruTorrent-${PV}"
fi
LICENSE="GPL-2+ MIT"
RDEPEND="
dev-lang/php[xml,gd]
virtual/httpd-php
"
need_httpd_cgi
pkg_setup() {
webapp_pkg_setup
}
src_prepare() {
rm -r .github || die
rm -r .vscode || die
rm -r tests || die
find . \( -name .gitignore -o -name .gitmodules \) -type f -delete || die
if [[ ${PV} == 9999 ]]; then
rm -r .git .gitattributes || die
fi
default
}
src_install() {
webapp_src_preinst
local docs="LICENSE.md README.md htaccess-example"
dodoc ${docs}
rm ${docs} || die
insinto "${MY_HTDOCSDIR}"
doins -r .
# can not use fperms beacuse of globbing
chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \
"${ED}${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed"
keepdir "${MY_HTDOCSDIR}"/conf/users
keepdir "${MY_HTDOCSDIR}"/share/settings
keepdir "${MY_HTDOCSDIR}"/share/torrents
keepdir "${MY_HTDOCSDIR}"/share/users
webapp_serverowned -R "${MY_HTDOCSDIR}"/conf
webapp_serverowned -R "${MY_HTDOCSDIR}"/share
webapp_configfile "${MY_HTDOCSDIR}"/conf/.htaccess
webapp_configfile "${MY_HTDOCSDIR}"/conf/config.php
webapp_configfile "${MY_HTDOCSDIR}"/conf/access.ini
webapp_configfile "${MY_HTDOCSDIR}"/conf/plugins.ini
webapp_configfile "${MY_HTDOCSDIR}"/share/.htaccess
webapp_src_install
}
pkg_postinst() {
webapp_pkg_postinst
optfeature "Show audio file spectogram" media-sound/sox
optfeature "Display media file information" media-video/mediainfo
optfeature "Scrape Cloudflare based sites" dev-python/cloudscraper
}