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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 18 17:28:40 2012 UTC (7 years, 11 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Revbump for improved init script. Bug #420991, comment #17

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emulation/phpvirtualbox/phpvirtualbox-4.1.7-r1.ebuild,v 1.1 2012/06/17 09:17:36 hwoarang Exp $
4
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
43 newinitd "${FILESDIR}"/vboxinit-initd vboxinit
44 }
45
46 pkg_postinst() {
47 webapp_pkg_postinst
48 elog "Local or remote virtualbox hosts must be compiled with"
49 elog "'vboxwebsrv' useflag and the respective init script"
50 elog "must be running to use this interface"
51 elog " /etc/init.d/vboxwebsrv start"
52 elog
53 elog "To enable the automatic startup mode feature uncomment the"
54 elog "following line in the config.php file:"
55 elog " var \$startStopConfig = true;"
56 elog
57 elog "You should also add the /etc/init.d/vboxinit script to the"
58 elog "default runlevel on the virtualbox host:"
59 elog "\`rc-update add vboxinit default\`"
60 elog "If the server is on a remote host, than the script must be"
61 elog "copied manually."
62 }

  ViewVC Help
Powered by ViewVC 1.1.20