1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit versionator eutils webapp readme.gentoo
9 MY_PV="$(replace_version_separator 2 '-')"
12 DESCRIPTION="Web-based administration for VirtualBox in PHP"
13 HOMEPAGE="https://sourceforge.net/projects/phpvirtualbox/"
14 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
17 KEYWORDS="~amd64 ~x86"
21 dev-lang/php[session,unicode,soap,gd]
24 DEPEND="app-arch/unzip"
26 S="${WORKDIR}"/${MY_P}
28 DISABLE_AUTOFORMATTING="yes"
30 Local or remote virtualbox hosts must be compiled with
31 'vboxwebsrv' useflag and the respective init script
32 must be running to use this interface:
33 /etc/init.d/vboxwebsrv start
35 To enable the automatic startup mode feature uncomment the
36 following line in the config.php file:
37 var \$startStopConfig = true;
39 You should also add the /etc/init.d/vboxinit script to the
40 default runlevel on the virtualbox host:
41 \`rc-update add vboxinit default\`
42 If the server is on a remote host, than the script must be
44 '${FILESDIR}'/vboxinit-initd to
45 /etc/init.d/vboxinit on the remote host."
50 dodoc CHANGELOG.txt LICENSE.txt README.txt
51 rm -f CHANGELOG.txt LICENSE.txt README.txt
53 insinto "${MY_HTDOCSDIR}"
56 webapp_configfile "${MY_HTDOCSDIR}"/config.php-example
57 webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example
60 if has_version app-emulation/virtualbox[vboxwebsrv] || \
61 has_version app-emulation/virtualbox-bin[vboxwebsrv]
63 newinitd "${FILESDIR}"/vboxinit-initd vboxinit
66 readme.gentoo_create_doc
71 readme.gentoo_print_elog