blob: ab33217fe18bfdfd61272e860184b5a9e709e3c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/mythweb/mythweb-0.16.ebuild,v 1.7 2005/01/18 20:19:44 cardoe Exp $
inherit webapp
DESCRIPTION="PHP scripts intended to manage MythTV from a web browser."
HOMEPAGE="http://www.mythtv.org/"
SRC_URI="http://www.mythtv.org/mc/${P}.tar.bz2"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="x86 ~amd64"
RDEPEND=">=dev-php/mod_php-4.2"
pkg_setup() {
webapp_pkg_setup
if has_version \>=dev-php/mod_php-5 ; then
local modphp_use="$(</var/db/pkg/`best_version =dev-php/mod_php`/USE)"
if ! has session ${modphp_use} ; then
eerror "mod_php is missing session support. Please add"
eerror "'session' to your USE flags, and re-emerge mod_php and php."
die "mod_php needs session support"
fi
fi
}
src_install() {
webapp_src_preinst
dodoc README TODO
keepdir ${MY_HTDOCSDIR}/video_dir
keepdir ${MY_HTDOCSDIR}/image_cache
keepdir ${MY_HTDOCSDIR}/php_sessions
cp -R [[:lower:]]* .htaccess ${D}${MY_HTDOCSDIR}
webapp_serverowned ${MY_HTDOCSDIR}/video_dir
webapp_serverowned ${MY_HTDOCSDIR}/image_cache
webapp_serverowned ${MY_HTDOCSDIR}/php_sessions
webapp_configfile ${MY_HTDOCSDIR}/config/conf.php
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_src_install
}
|