diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-11 09:12:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-11 09:12:41 +0000 |
commit | 343a7272d559a21a0e0ed13cb743fabb2bfcc479 (patch) | |
tree | db03f20672a6244296ccc2aa27e70757937eb9f7 /www-apps/rutorrent/rutorrent-3.8-r1.ebuild | |
parent | 456dbeaab3e2f71f527eae542ab44d1e372b0655 (diff) |
gentoo resync : 11.01.2018
Diffstat (limited to 'www-apps/rutorrent/rutorrent-3.8-r1.ebuild')
-rw-r--r-- | www-apps/rutorrent/rutorrent-3.8-r1.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/www-apps/rutorrent/rutorrent-3.8-r1.ebuild b/www-apps/rutorrent/rutorrent-3.8-r1.ebuild new file mode 100644 index 000000000000..a45b892d7649 --- /dev/null +++ b/www-apps/rutorrent/rutorrent-3.8-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit webapp + +DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent" +HOMEPAGE="https://github.com/Novik/ruTorrent" +SRC_URI="https://github.com/Novik/ruTorrent/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="" + +need_httpd_cgi + +DEPEND=" + || ( dev-lang/php[xml,gd] dev-lang/php[xml,gd-external] ) +" +RDEPEND="virtual/httpd-php" + +S="${WORKDIR}/ruTorrent-${PV}" + +pkg_setup() { + webapp_pkg_setup +} + +src_prepare() { + default + find -name '\.gitignore' -type f -exec rm -rf {} \; + # The 3.8 release of ruTorrent includes an .htaccess file that defines a .htpasswd that doesn't exist + rm '.htaccess' +} + +src_install() { + webapp_src_preinst + + insinto "${MY_HTDOCSDIR}" + doins -r . + + chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \ + "$ED${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed" + + webapp_serverowned "${MY_HTDOCSDIR}"/share + webapp_serverowned "${MY_HTDOCSDIR}"/share/settings + webapp_serverowned "${MY_HTDOCSDIR}"/share/torrents + webapp_serverowned "${MY_HTDOCSDIR}"/share/users + + 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 +} |