| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/rutorrent/rutorrent-3.4-r1.ebuild,v 1.1 2012/06/11 10:21:46 maksbotan Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
|
| 7 |
inherit webapp eutils depend.php |
| 8 |
|
| 9 |
DESCRIPTION="ruTorrent is a front-end for the popular Bittorrent client rTorrent" |
| 10 |
HOMEPAGE="http://code.google.com/p/rutorrent/" |
| 11 |
SRC_URI=" |
| 12 |
http://rutorrent.googlecode.com/files/${P}.tar.gz |
| 13 |
http://rutorrent.googlecode.com/files/plugins-${PV}.tar.gz" |
| 14 |
|
| 15 |
LICENSE="GPL-2" |
| 16 |
KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
| 17 |
IUSE="" |
| 18 |
|
| 19 |
need_httpd_cgi |
| 20 |
need_php_httpd |
| 21 |
|
| 22 |
DEPEND=" |
| 23 |
|| ( dev-lang/php[xml,gd] dev-lang/php[xml,gd-external] ) |
| 24 |
" |
| 25 |
|
| 26 |
S="${WORKDIR}" |
| 27 |
|
| 28 |
pkg_setup() { |
| 29 |
webapp_pkg_setup |
| 30 |
} |
| 31 |
|
| 32 |
src_install() { |
| 33 |
webapp_src_preinst |
| 34 |
|
| 35 |
insinto "${MY_HTDOCSDIR}" |
| 36 |
mv plugins rutorrent |
| 37 |
cd rutorrent |
| 38 |
doins -r . |
| 39 |
|
| 40 |
chmod +x "${ED}${MY_HTDOCSDIR}"/plugins/*/*.sh \ |
| 41 |
"$ED${MY_HTDOCSDIR}"/php/test.sh || die "chmod failed" |
| 42 |
|
| 43 |
webapp_serverowned "${MY_HTDOCSDIR}"/share |
| 44 |
webapp_serverowned "${MY_HTDOCSDIR}"/share/settings |
| 45 |
webapp_serverowned "${MY_HTDOCSDIR}"/share/torrents |
| 46 |
webapp_serverowned "${MY_HTDOCSDIR}"/share/users |
| 47 |
|
| 48 |
webapp_configfile "${MY_HTDOCSDIR}"/conf/.htaccess |
| 49 |
webapp_configfile "${MY_HTDOCSDIR}"/conf/config.php |
| 50 |
webapp_configfile "${MY_HTDOCSDIR}"/conf/access.ini |
| 51 |
webapp_configfile "${MY_HTDOCSDIR}"/conf/plugins.ini |
| 52 |
webapp_configfile "${MY_HTDOCSDIR}"/share/.htaccess |
| 53 |
|
| 54 |
webapp_src_install |
| 55 |
} |