commit: 09b524bce56056dca594abe3057e46d55e032ec8 Author: Henning Schild <henning <AT> hennsch <DOT> de> AuthorDate: Mon May 19 20:07:21 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 21 21:13:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09b524bc
www-apps/rutorrent: add 5.2.5 Signed-off-by: Henning Schild <henning <AT> hennsch.de> Part-of: https://github.com/gentoo/gentoo/pull/42162 Signed-off-by: Sam James <sam <AT> gentoo.org> www-apps/rutorrent/Manifest | 1 + www-apps/rutorrent/rutorrent-5.2.5.ebuild | 71 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/www-apps/rutorrent/Manifest b/www-apps/rutorrent/Manifest index 732e3b9b94bd..fb61a70c15b2 100644 --- a/www-apps/rutorrent/Manifest +++ b/www-apps/rutorrent/Manifest @@ -1,3 +1,4 @@ DIST rutorrent-4.3.10.tar.gz 2378291 BLAKE2B 2e676024e4b8fdec2a3e8b52715348dc7f4ae38adbdffb69e4f22b711d02eb49ce4de30e5e30e6a620819c39a6576c14b4fade6bc3b52a9212f1a96b23d96b99 SHA512 34a8f4b0bca721deb1d1fd017eed3cc722a785acafe2ca99ee56691028fce1fd92d069f69e2a4be18bef059c4c3f8a9d5eea54b86b9f6ed81401526337d7c856 DIST rutorrent-5.2.0.tar.gz 2744186 BLAKE2B 29fe4a86681454c5450de20f77d6944d1a7de75a258898fb27cf968cb54e49defc6d8a7337e87fc2e5268a697a249532f73b64bed8d1fd2b82e158fe9df9140f SHA512 ecd5d51fce3b89f8bb3def9b55922402a728cee6b63a16821f6a922aa14816e899db15d9a892faf214b920f653746d9ae6c38ab99ba715c575fd6d0b9ede6bae DIST rutorrent-5.2.4.tar.gz 2744398 BLAKE2B fa3755a252f0e91689fa6a0dc3396de23e30d3e8202dc8ce81be8d1a4194d67fb3f5b2134e66c696d6b6df1f53288059c66e3f042cf1c16d03fb7f49b4aedcdf SHA512 4b60550c76339fe353e7632836c1e92c5570ad6354b6309fc56620d80695239f203469008fc8e4dada7dd3fc28b2da8e98eeaeecdebc649f342aafdcef38a109 +DIST rutorrent-5.2.5.tar.gz 2744458 BLAKE2B 427b08a0a5c7ff680d8830153d46d7ff614171d34c1fb88d4acae9dce5651c22f04c843a8dfd510338ad1928dfe939e1f3aed99122152774a4063eeaf85241ab SHA512 1dfbb1bf52d4f950b4cf22cf4a7190f5c52be4d60518492183e04370e1e867d6a9d82ab7c103f6260e09b6adb64cc0c75d2a72e371623a1c1238c0ff56f1580f diff --git a/www-apps/rutorrent/rutorrent-5.2.5.ebuild b/www-apps/rutorrent/rutorrent-5.2.5.ebuild new file mode 100644 index 000000000000..4d1d469d1e5c --- /dev/null +++ b/www-apps/rutorrent/rutorrent-5.2.5.ebuild @@ -0,0 +1,71 @@ +# 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_install() { + webapp_src_preinst + + rm -r .github || die + find . \( -name .gitignore -o -name .gitmodules \) -type f -delete || die + if [[ ${PV} == 9999 ]]; then + rm -r .git .gitattributes || die + fi + + 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 +}