summaryrefslogtreecommitdiff
blob: e559cdc904543dd141d2bb4f7fb4eeb8f07a55bd (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/mythweb/mythweb-0.11.ebuild,v 1.2 2003/12/15 21:02:57 stuart Exp $

inherit webapp-apache

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"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

RDEPEND=">=dev-php/mod_php-4.2"

webapp-detect || NO_WEBSERVER=1

pkg_setup() {
	webapp-pkg_setup "${NO_WEBSERVER}"
	webapp-check-php mysql
	einfo "Installing ${PN} into ${HTTPD_ROOT}"
}

src_install() {
	webapp-mkdirs
	dodir "${HTTPD_ROOT}"
	cp -R "${S}" "${D}${HTTPD_ROOT}/${PN}"

	keepdir "${HTTPD_ROOT}/${PN}/"{php_sessions,image_cache}
	fowners "${HTTPD_USER}:${HTTPD_GROUP}" "${HTTPD_ROOT}/${PN}/"{php_sessions,image_cache}
	dodoc README
}

pkg_postinst() {
	einfo "You should modify ${HTTPD_ROOT}/${PN}/settings.php"
	einfo "to fit your needs."
	echo
}