www-apps/rutorrent: add 5.3.21

Signed-off-by: Henning Schild <henning@hennsch.de>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/2331
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Henning Schild
2026-11-06 04:33:46 +00:00
committed by Sam James
parent c62536ccdf
commit 41bd516bf1
2 changed files with 83 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST rutorrent-5.3.19.tar.gz 4307645 BLAKE2B 3c87e5be92f8b6590320487f3764328ee37615a24a3fbe4e94ce12a799ed13bcac328d1c77afbf941fdcd5e089822379ff3647155b0e3f5ea23eeed84c626b92 SHA512 1ba4bab85c08a22acb39db6ee0a40d3b2fc557b4e28b06e78edf62521e03eeda296b97e8a8857497d7ec448defe2e708a7b6643d6c7b726260de08af23916124
DIST rutorrent-5.3.20.tar.gz 4365964 BLAKE2B 29b6e032729d939f8e7190b84ffa66c8fb031052fb43384f0808f2a0a959e34427556f0b48738901438a08f692f60cdc54140a9107aa940aea1af5cfea843694 SHA512 f4111ad94e2b60b9901b75a6d66f7d16e28145e0c835b295017cf440880197e59c60699bcac274721802acc69010db50ccc7abee80d21ef5870aff5a8c8acdf8
DIST rutorrent-5.3.21.tar.gz 4396893 BLAKE2B 9ee1b00c85cbda5b905ed9d86571d536edf29af1b536fef653e8155d28c4f3a98706c076168974c11a88507a2704d0069df939e6a4ebc6feb619a72a1d5a8c1a SHA512 03c51e86266bb793b90ffde98e1d14b745ebe3386e610b5daa0fab02aec1878989037f8da20b234a35a80dc278dc758608ab00049f3e8e9da1b02a6b8479dd05
@@ -0,0 +1,82 @@
# Copyright 1999-2026 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_BRANCH="develop"
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
}