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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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

1 # Copyright 1999-2013 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.2.4.ebuild,v 1.3 2013/02/16 11:56:04 pacho Exp $
4
5 EAPI="5"
6
7 inherit versionator eutils webapp depend.php readme.gentoo
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="https://sourceforge.net/projects/phpvirtualbox/"
14 SRC_URI="mirror://sourceforge/${PN}/${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 S="${WORKDIR}"/${MY_P}
26
27 need_php_httpd
28
29 DISABLE_AUTOFORMATTING="yes"
30 DOC_CONTENTS="
31 Local or remote virtualbox hosts must be compiled with
32 'vboxwebsrv' useflag and the respective init script
33 must be running to use this interface:
34 /etc/init.d/vboxwebsrv start
35
36 To enable the automatic startup mode feature uncomment the
37 following line in the config.php file:
38 var \$startStopConfig = true;
39
40 You should also add the /etc/init.d/vboxinit script to the
41 default runlevel on the virtualbox host:
42 \`rc-update add vboxinit default\`
43 If the server is on a remote host, than the script must be
44 copied manually from
45 '${FILESDIR}'/vboxinit-initd to
46 /etc/init.d/vboxinit on the remote host."
47
48 src_install() {
49 webapp_src_preinst
50
51 dodoc CHANGELOG.txt LICENSE.txt README.txt
52 rm -f CHANGELOG.txt LICENSE.txt README.txt
53
54 insinto "${MY_HTDOCSDIR}"
55 doins -r .
56
57 webapp_configfile "${MY_HTDOCSDIR}"/config.php-example
58 webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example
59
60 webapp_src_install
61 if has_version app-emulation/virtualbox[vboxwebsrv] || \
62 has_version app-emulation/virtualbox-bin[vboxwebsrv]
63 then
64 newinitd "${FILESDIR}"/vboxinit-initd vboxinit
65 fi
66
67 readme.gentoo_create_doc
68 }
69
70 pkg_postinst() {
71 webapp_pkg_postinst
72 readme.gentoo_print_elog
73 }

  ViewVC Help
Powered by ViewVC 1.1.20