commit:     891d272140af7e0e9603155766179b3f489de474
Author:     Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Thu Apr 27 20:06:36 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri Apr 28 08:26:26 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=891d2721

www-apps/rutorrent: bump version to 4.1.3

Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 www-apps/rutorrent/Manifest               |  1 +
 www-apps/rutorrent/rutorrent-4.1.3.ebuild | 71 +++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/www-apps/rutorrent/Manifest b/www-apps/rutorrent/Manifest
index 6bf0b44d72be..bbf5af16bff6 100644
--- a/www-apps/rutorrent/Manifest
+++ b/www-apps/rutorrent/Manifest
@@ -1 +1,2 @@
 DIST rutorrent-4.0.2.tar.gz 2221825 BLAKE2B 
96867dbd818949388dedbfeee80ae85d22c9f3b04636d66797a96fc7b1de7541128445a989f642d711bd93aaf0840b56fe4e7bb7f29a02d122d939039eeff835
 SHA512 
f1f3cf7712246c02c73753e5ec8c3b5c0af4797699adeabc59822c165d06d7291d50a2d065b2d729273f907e1ec288391b1f02bc733a2b40d3e818a2de983528
+DIST rutorrent-4.1.3.tar.gz 2248878 BLAKE2B 
08c5a4580fbc1873b64e211cce5d0f2a92daa90bfdbc7900c7a4cfb24e5d2202afb87f6809e36191f8cbc08fd7a037eb63a4609e7c3c07d301b19a5cb2c28dc7
 SHA512 
c9f941bddc9759de1b183bfb9bb9eb91e91477409fc475f4585cdd90d24aeefe5e56aefa6ae45ed84bee369b4cc51f5bca64b07f8624d48246b6bc82aaaee9fb

diff --git a/www-apps/rutorrent/rutorrent-4.1.3.ebuild 
b/www-apps/rutorrent/rutorrent-4.1.3.ebuild
new file mode 100644
index 000000000000..f7dbb6ae40d3
--- /dev/null
+++ b/www-apps/rutorrent/rutorrent-4.1.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2023 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="~alpha ~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
+}

Reply via email to