/[gentoo-x86]/app-emulation/phpvirtualbox/phpvirtualbox-4.1.7-r2.ebuild
Gentoo

Contents of /app-emulation/phpvirtualbox/phpvirtualbox-4.1.7-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Aug 17 18:25:03 2012 UTC (2 years, 4 months ago) by hwoarang
Branch: MAIN
Changes since 1.1: +9 -4 lines
install init script only if virtualbox{-bin} is present. Reword elog message. Bug #420991

(Portage version: 2.1.11.10/cvs/Linux x86_64)

1 hwoarang 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.2 # $Header: /var/cvsroot/gentoo-x86/app-emulation/phpvirtualbox/phpvirtualbox-4.1.7-r2.ebuild,v 1.1 2012/06/18 17:28:40 hwoarang Exp $
4 hwoarang 1.1
5     EAPI="2"
6    
7     inherit versionator eutils webapp depend.php
8    
9     MY_PV="$(replace_version_separator 2 '-')"
10     MY_P="${PN}-${MY_PV}"
11    
12     DESCRIPTION="Web-based administration for VirtualBox in PHP"
13     HOMEPAGE="http://phpvirtualbox.googlecode.com"
14     SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.zip"
15    
16     LICENSE="GPL-2"
17     KEYWORDS="~amd64 ~x86"
18     IUSE=""
19    
20     RDEPEND="
21     dev-lang/php[session,unicode,soap,gd]
22     "
23     DEPEND="app-arch/unzip"
24    
25     need_php_httpd
26    
27     src_install() {
28     webapp_src_preinst
29    
30     cd ${MY_P}
31    
32     dodoc CHANGELOG.txt LICENSE.txt README.txt || die
33     rm -f CHANGELOG.txt LICENSE.txt README.txt
34    
35     insinto "${MY_HTDOCSDIR}"
36     doins -r .
37    
38     webapp_configfile "${MY_HTDOCSDIR}"/config.php-example
39     webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example
40    
41     webapp_src_install
42 hwoarang 1.2 if has_version app-emulation/virtualbox[vboxwebsrv] || \
43     has_version app-emulation/virtualbox-bin[vboxwebsrv]
44     then
45     newinitd "${FILESDIR}"/vboxinit-initd vboxinit
46     fi
47 hwoarang 1.1 }
48    
49     pkg_postinst() {
50     webapp_pkg_postinst
51     elog "Local or remote virtualbox hosts must be compiled with"
52     elog "'vboxwebsrv' useflag and the respective init script"
53     elog "must be running to use this interface"
54     elog " /etc/init.d/vboxwebsrv start"
55     elog
56     elog "To enable the automatic startup mode feature uncomment the"
57     elog "following line in the config.php file:"
58     elog " var \$startStopConfig = true;"
59     elog
60     elog "You should also add the /etc/init.d/vboxinit script to the"
61     elog "default runlevel on the virtualbox host:"
62     elog "\`rc-update add vboxinit default\`"
63     elog "If the server is on a remote host, than the script must be"
64 hwoarang 1.2 elog "copied manually from"
65     elog "${FILESDIR}/vboxinit to /etc/init.d/vboxinit"
66     elog "on the remote host."
67 hwoarang 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20