diff options
Diffstat (limited to 'www-apps/mythweb/mythweb-0.16.ebuild')
-rw-r--r-- | www-apps/mythweb/mythweb-0.16.ebuild | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/www-apps/mythweb/mythweb-0.16.ebuild b/www-apps/mythweb/mythweb-0.16.ebuild index 2c6b6d32a626..ae8be9a40657 100644 --- a/www-apps/mythweb/mythweb-0.16.ebuild +++ b/www-apps/mythweb/mythweb-0.16.ebuild @@ -1,42 +1,40 @@ # Copyright 1999-2004 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.1 2004/09/10 20:47:45 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/mythweb/mythweb-0.16.ebuild,v 1.2 2004/09/10 23:27:13 aliz Exp $ -inherit webapp-apache +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" -SLOT="0" KEYWORDS="~x86 ~amd64" RDEPEND=">=dev-php/mod_php-4.2" pkg_setup() { - webapp-detect || NO_WEBSERVER=1 - einfo "Installing ${PN} into ${HTTPD_ROOT}" + 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 + + webapp_pkg_setup } src_install() { - webapp-mkdirs + webapp_src_preinst - dodoc README TODO ; rm -f README TODO + dodoc README TODO - dodir "${HTTPD_ROOT}" - cp -R "${S}" "${D}${HTTPD_ROOT}/${PN}" + cp -R [[:lower:]]* ${D}/${MY_HTDOCSDIR} - keepdir "${HTTPD_ROOT}/${PN}/"{php_sessions,image_cache} - fowners "${HTTPD_USER}:${HTTPD_GROUP}" "${HTTPD_ROOT}/${PN}/"{php_sessions,image_cache} + webapp_configfile ${MY_HTDOCSDIR}/config/conf.php + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt - # protect configfiles - echo "CONFIG_PROTECT=${HTTPD_ROOT}/${PN}/config" > ${T}/27mythweb - insinto /etc/env.d ; doins ${T}/27mythweb -} - -pkg_postinst() { - einfo "You should modify ${HTTPD_ROOT}/${PN}/config/conf.php" - einfo "to fit your needs." - echo + webapp_src_install } |