# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $$ EAPI="2" inherit eutils webapp depend.php MY_VER="4.0-7" DESCRIPTION="Web-based administration for VirtualBox in PHP" HOMEPAGE="http://phpvirtualbox.googlecode.com" SRC_URI="http://${PN}.googlecode.com/files/${PN}-${MY_VER}.zip" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=" dev-lang/php[session,unicode,soap,gd] >=app-emulation/virtualbox-bin-4.0[vboxwebsrv] " need_php_httpd pkg_setup() { webapp_pkg_setup } src_install() { webapp_src_preinst cd ${PN}-${MY_VER} dodoc CHANGELOG.txt LICENSE.txt README.txt || die rm -f CHANGELOG.txt LICENSE.txt README.txt insinto "${MY_HTDOCSDIR}" doins -r . webapp_configfile "${MY_HTDOCSDIR}"/config.php-example webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example webapp_src_install } pkg_postinst() { webapp_pkg_postinst elog "The vboxwebsrv-daemon must be running to use this interface:" elog " /etc/init.d/vboxwebsrv start" }