commit: 3cd781ed6f59a5215874664e54aaa0c07567d8f5 Author: Henning Schild <henning <AT> hennsch <DOT> de> AuthorDate: Sun Jun 15 16:05:14 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jun 15 23:31:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cd781ed
www-apps/rutorrent: add 5.2.9 Signed-off-by: Henning Schild <henning <AT> hennsch.de> Part-of: https://github.com/gentoo/gentoo/pull/42609 Signed-off-by: Sam James <sam <AT> gentoo.org> www-apps/rutorrent/Manifest | 1 + www-apps/rutorrent/rutorrent-5.2.9.ebuild | 71 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/www-apps/rutorrent/Manifest b/www-apps/rutorrent/Manifest index b7982b1ca28f..3add7590ebe3 100644 --- a/www-apps/rutorrent/Manifest +++ b/www-apps/rutorrent/Manifest @@ -1,2 +1,3 @@ DIST rutorrent-5.2.6.tar.gz 2746482 BLAKE2B 90a9e9e4ef39158494c68540f0b8b2387ee7dad406603bd3f2a1e42bfb157b2e68b92ace944c86a98554a0919eeb8d073b496eb28451a462e85090344cb67096 SHA512 d119f8336768ebbded66ae19d6b3af5cad098d53954f62436f0ae75da84c755ccf60dcc5d4f969dca2cf3312b491e6d44c81c5f1833c67301e5a701ac6ad06be DIST rutorrent-5.2.8.tar.gz 2746565 BLAKE2B 38fc28b49687518bc6747b8fc76eea5e9228af590d42ff7267fe7fbdacef891ae5035ee7271d4a8b7a83228bcb57b5aeef0d6f78992c159495618e41daff1ae3 SHA512 b66da9c91effc2ba76964cc6c9ad09d70db0c86c2d8e8f2a3459a4ca1389c4ee639be2c008e567064a9acbbda517310c3435b6eb375adb5ae21e4fd2ab80b6e4 +DIST rutorrent-5.2.9.tar.gz 2746539 BLAKE2B 0898538e1553b5edabec1b12ef0db1363c452e955c6c0a35897e1748a9e06cfcdbf1aad164940f3ceafffc701f04861fec96d2223390d79ff493e44d30ede3ad SHA512 2637d050c1c5d0fdc78fa5aabf11dc1c63d61d23984572b68e1a819af07e1216fb362e3063e91253821777528947cbbff27b7a3806cea742800f4113458b4bf0 diff --git a/www-apps/rutorrent/rutorrent-5.2.9.ebuild b/www-apps/rutorrent/rutorrent-5.2.9.ebuild new file mode 100644 index 000000000000..4d1d469d1e5c --- /dev/null +++ b/www-apps/rutorrent/rutorrent-5.2.9.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 +}
