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

Contents of /app-emulation/phpvirtualbox/phpvirtualbox-4.1.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed Sep 11 20:29:44 2013 UTC (6 years, 8 months ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Update HOMEPAGE. Version bump. Bug #482598

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 hwoarang 1.2 # Copyright 1999-2013 Gentoo Foundation
2 hwoarang 1.1 # 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.11.ebuild,v 1.1 2012/10/10 20:15:35 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 hwoarang 1.2 HOMEPAGE="https://sourceforge.net/projects/phpvirtualbox/"
14 hwoarang 1.1 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     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     }
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     elog "copied manually from"
65     elog "${FILESDIR}/vboxinit-initd to /etc/init.d/vboxinit"
66     elog "on the remote host."
67     }

  ViewVC Help
Powered by ViewVC 1.1.20