mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
www-apps/rutorrent: add 5.2.8
Signed-off-by: Henning Schild <henning@hennsch.de> Part-of: https://github.com/gentoo/gentoo/pull/42390 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
committed by
Viorel Munteanu
parent
408c1c3e5c
commit
5fe573d0e2
@@ -1,2 +1,3 @@
|
||||
DIST rutorrent-5.2.5.tar.gz 2744458 BLAKE2B 427b08a0a5c7ff680d8830153d46d7ff614171d34c1fb88d4acae9dce5651c22f04c843a8dfd510338ad1928dfe939e1f3aed99122152774a4063eeaf85241ab SHA512 1dfbb1bf52d4f950b4cf22cf4a7190f5c52be4d60518492183e04370e1e867d6a9d82ab7c103f6260e09b6adb64cc0c75d2a72e371623a1c1238c0ff56f1580f
|
||||
DIST rutorrent-5.2.6.tar.gz 2746482 BLAKE2B 90a9e9e4ef39158494c68540f0b8b2387ee7dad406603bd3f2a1e42bfb157b2e68b92ace944c86a98554a0919eeb8d073b496eb28451a462e85090344cb67096 SHA512 d119f8336768ebbded66ae19d6b3af5cad098d53954f62436f0ae75da84c755ccf60dcc5d4f969dca2cf3312b491e6d44c81c5f1833c67301e5a701ac6ad06be
|
||||
DIST rutorrent-5.2.8.tar.gz 2746565 BLAKE2B 38fc28b49687518bc6747b8fc76eea5e9228af590d42ff7267fe7fbdacef891ae5035ee7271d4a8b7a83228bcb57b5aeef0d6f78992c159495618e41daff1ae3 SHA512 b66da9c91effc2ba76964cc6c9ad09d70db0c86c2d8e8f2a3459a4ca1389c4ee639be2c008e567064a9acbbda517310c3435b6eb375adb5ae21e4fd2ab80b6e4
|
||||
|
||||
71
www-apps/rutorrent/rutorrent-5.2.8.ebuild
Normal file
71
www-apps/rutorrent/rutorrent-5.2.8.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user