Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/phpvirtualbox/files/, app-emulation/phpvirtualbox/
Date: Wed, 23 Jan 2019 18:02:55
Message-Id: 1548266550.13062a7216fe1d58ad866f37310b76decd333e87.grknight@gentoo
1 commit: 13062a7216fe1d58ad866f37310b76decd333e87
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 23 17:56:57 2019 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 23 18:02:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13062a72
7
8 app-emulation/phpvirtualbox: Version bump to 5.2.1
9
10 Non-maintainer commit
11 Includes fixes and PHP 7.1 support
12
13 Closes: https://bugs.gentoo.org/651186
14 Package-Manager: Portage-2.3.58, Repoman-2.3.12
15 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
16
17 app-emulation/phpvirtualbox/Manifest | 1 +
18 app-emulation/phpvirtualbox/files/README.gentoo | 16 ++++++
19 .../phpvirtualbox/phpvirtualbox-5.2.1.ebuild | 57 ++++++++++++++++++++++
20 3 files changed, 74 insertions(+)
21
22 diff --git a/app-emulation/phpvirtualbox/Manifest b/app-emulation/phpvirtualbox/Manifest
23 index ede7ee5154a..c259166e99c 100644
24 --- a/app-emulation/phpvirtualbox/Manifest
25 +++ b/app-emulation/phpvirtualbox/Manifest
26 @@ -2,3 +2,4 @@ DIST phpvirtualbox-4.2-7.zip 3425805 BLAKE2B c5e9bb629b346af378ee585b940c2f41cef
27 DIST phpvirtualbox-4.3-0.zip 4231805 BLAKE2B 8f9c995c3c7112b6ec73a49b322f210ae2befcd711ac9459ea0eea9a7216c2e3322489ada69a91940af76a276a8c053384e0632b209250c7b3ca37291a574e57 SHA512 fd49a6a4c79d75f37fd40d74743f295a148548373ab046cf1f31ef7b982008ea6b9d2838cdad2dc37a1d266ed630cd2ddb7f7423ea62af1e0f8f9f76a12c0e9d
28 DIST phpvirtualbox-5.0-3.zip 4092132 BLAKE2B c781b9d49ed20fb2748a7aa7d8685d5f2c10ba72268e6bbdb53a041873c6390605376a09bc4a7cfd5cca3de9d3045c60a2e515668ba1d5f49b623aee9e5cf568 SHA512 b632ff3be2028bd011ce27b580996638dfc89e09350c459f16bd1c8c5c3eefbab93f42d7facfb99279eb2ee1c6a38854ea999654ca2090a39c7bfa0afa7fe2d5
29 DIST phpvirtualbox-5.0-5.zip 4093766 BLAKE2B 77c453a2d43558ae3db23c3b2b20d08b713731c5444c7613a2018edef77774e97d8dc25345606520df10df7802d86efedf38d73670ec0dacb48606e4785ed0cd SHA512 5478e4a5eb74786eb409a87e7c962c80df558655342f541dddceb7e4cf153a4e5f0bda9b83c2a8a921326f6210c2c3bd344c4a9ce30547f25acce5966c4d6135
30 +DIST phpvirtualbox-5.2-1.tar.gz 3882921 BLAKE2B 6eb76d3f4372bbd83648f4c1b1f37ec7478a1818e7dcef345bddf603d9ae51314f6fd0a448b42d7434389a364e4c8e177f4b13936f50c6c30a58e00aa0b714e7 SHA512 6805f58a3abdfdac9bb34170d3980ba3fae1118526bbb587b67a55032cc2c25923bf2d7bec01ed60439b3070f2e0668079f73e41ca29d18dd9e24abe3219830c
31
32 diff --git a/app-emulation/phpvirtualbox/files/README.gentoo b/app-emulation/phpvirtualbox/files/README.gentoo
33 new file mode 100644
34 index 00000000000..45699ef72f0
35 --- /dev/null
36 +++ b/app-emulation/phpvirtualbox/files/README.gentoo
37 @@ -0,0 +1,16 @@
38 +Local or remote virtualbox hosts must be compiled with
39 +'vboxwebsrv' useflag and the respective init script
40 +must be running to use this interface:
41 +/etc/init.d/vboxwebsrv start
42 +
43 +To enable the automatic startup mode feature uncomment the
44 +following line in the config.php file:
45 +var $startStopConfig = true;
46 +
47 +You should also add the /etc/init.d/vboxinit-@@SLOT@@ script to the
48 +default runlevel on the virtualbox host:
49 +`rc-update add vboxinit-@@SLOT@@ default`
50 +If the server is on a remote host, than the script must be
51 +copied manually from
52 +@@FILESDIR@@/vboxinit-initd to
53 +/etc/init.d/vboxinit on the remote host.
54
55 diff --git a/app-emulation/phpvirtualbox/phpvirtualbox-5.2.1.ebuild b/app-emulation/phpvirtualbox/phpvirtualbox-5.2.1.ebuild
56 new file mode 100644
57 index 00000000000..4738dfe6851
58 --- /dev/null
59 +++ b/app-emulation/phpvirtualbox/phpvirtualbox-5.2.1.ebuild
60 @@ -0,0 +1,57 @@
61 +# Copyright 1999-2019 Gentoo Authors
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI=6
65 +
66 +inherit eapi7-ver webapp readme.gentoo-r1
67 +
68 +MY_PV="$(ver_rs 2 '-')"
69 +MY_P="${PN}-${MY_PV}"
70 +
71 +DESCRIPTION="Web-based administration for VirtualBox in PHP"
72 +HOMEPAGE="https://sourceforge.net/projects/phpvirtualbox/"
73 +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
74 +
75 +LICENSE="GPL-3"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE=""
78 +
79 +RDEPEND="
80 + dev-lang/php:*[gd,session,soap,unicode]
81 + virtual/httpd-php:*
82 +"
83 +
84 +S="${WORKDIR}/${MY_P}"
85 +
86 +src_install() {
87 +
88 + local DISABLE_AUTOFORMATTING="true"
89 + local DOC_CONTENTS=$(sed -e "s;@@FILESDIR@@;${FILESDIR};" \
90 + -e "s;@@SLOT@@;${SLOT};" "${FILESDIR}/README.gentoo")
91 +
92 + webapp_src_preinst
93 +
94 + dodoc CHANGELOG.txt README.md
95 + rm -f CHANGELOG.txt LICENSE.txt README.md
96 +
97 + insinto "${MY_HTDOCSDIR}"
98 + doins -r .
99 +
100 + webapp_configfile "${MY_HTDOCSDIR}"/config.php-example
101 + webapp_serverowned "${MY_HTDOCSDIR}"/config.php-example
102 +
103 + webapp_src_install
104 + if has_version app-emulation/virtualbox[vboxwebsrv] || \
105 + has_version app-emulation/virtualbox-bin[vboxwebsrv]
106 + then
107 + newinitd "${FILESDIR}"/vboxinit-initd vboxinit-${SLOT}
108 + fi
109 +
110 + readme.gentoo_create_doc
111 +
112 +}
113 +
114 +pkg_postinst() {
115 + webapp_pkg_postinst
116 + readme.gentoo_print_elog
117 +}