1 |
%define name smeserver-phpvirtualbox |
2 |
%define version 5.2.1 |
3 |
%define release 3 |
4 |
%define rpmver 5.2.1 |
5 |
Summary: smserver rpm to install phpvirtualbox |
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release}%{?dist} |
9 |
Source: %{name}-%{version}.tar.gz |
10 |
License: GNU GPL version 2 |
11 |
URL: http://mirror.de-labrusse.fr |
12 |
Group: SMEserver/addon |
13 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
14 |
Prefix: %{_prefix} |
15 |
BuildArchitectures: noarch |
16 |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 10.0 |
18 |
Requires: php-soap |
19 |
Requires: phpvirtualbox = 5.2.1 |
20 |
Requires: smeserver-virtualbox = 5.2 |
21 |
Patch0: smeserver-phpvirtualbox-5.2.1-move_vbox_dir.patch |
22 |
Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch |
23 |
|
24 |
AutoReqProv: no |
25 |
%description |
26 |
smserver rpm to install phpvirtualbox : An open source, AJAX implementation of the VirtualBox user interface written in PHP. As a |
27 |
modern web interface, it allows you to access and control remote VirtualBox instances. phpVirtualBox is designed to allow users to |
28 |
administer VirtualBox in a headless environment - mirroring the VirtualBox GUI through its web interface. |
29 |
phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) |
30 |
|
31 |
%changelog |
32 |
* Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3 |
33 |
- remove vbox passwd from config.php |
34 |
|
35 |
* Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-2 |
36 |
- vbox user home directory moved |
37 |
|
38 |
* Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-1 |
39 |
- Initial import to sme10 |
40 |
- requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2 |
41 |
- upgrade to httpd 2.4 |
42 |
- use php74-php-fpm |
43 |
- bundle up patches and release new tarball |
44 |
|
45 |
* Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-1 |
46 |
- require to phpvirtualbox-5.0 |
47 |
|
48 |
* Sun May 18 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-3 |
49 |
- first release to sme9 |
50 |
- unixgroup removed from the contribs |
51 |
- fix ssl redirection |
52 |
|
53 |
* Wed Mar 19 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-1 |
54 |
- due to the bug correction of phpvirtualbox, this version give back the web authentication with migrate fragment update |
55 |
* Wed Jan 08 2014 JP Pialasse <tests@pialasse.com> 4.3.0-10.sme |
56 |
- changing requires to phpvirtualbox = 4.3 |
57 |
* Mon Dec 30 2013 JP Pialasse <tests@pialasse.com> 4.3.0-9.sme |
58 |
- renaming to import into buildsys |
59 |
* Fri Dec 13 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-8 |
60 |
- remove the web authentication for the buildin phpvirtualbox authentication |
61 |
* Sun Nov 10 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-7 |
62 |
- removing dependance to smeserver-virtualbox-4.3 |
63 |
* Tue Nov 05 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-6 |
64 |
- change name to match the phpvirtualbox version |
65 |
* Wed Oct 23 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-5 |
66 |
- Clean 92phpvirtualbox to force only the localnetwork |
67 |
- Add the plugin unixgroup (from pwauth) to allow unix groups to reach the apache server. |
68 |
- you can see http://code.google.com/p/pwauth/ for more informations |
69 |
* Sun Oct 20 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-4 |
70 |
- Force https protocol for phpvirtualbox |
71 |
* Sat Oct 19 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-3 |
72 |
- Initial release |
73 |
|
74 |
%prep |
75 |
%setup |
76 |
%patch0 -p1 |
77 |
%patch1 -p1 |
78 |
|
79 |
%build |
80 |
perl createlinks |
81 |
|
82 |
%install |
83 |
rm -rf $RPM_BUILD_ROOT |
84 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
85 |
rm -f %{name}-%{version}-filelist |
86 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
87 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
88 |
|
89 |
%clean |
90 |
cd .. |
91 |
rm -rf %{name}-%{version} |
92 |
|
93 |
%pre |
94 |
|
95 |
%preun |
96 |
|
97 |
%post |
98 |
|
99 |
echo "==============================================================" |
100 |
echo " Please do not forget to install the extension pack " |
101 |
echo " You need it to activate the virtualbox RDP server" |
102 |
echo " And many features, see this page to manage it by CL" |
103 |
echo " " |
104 |
echo " https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack" |
105 |
echo " " |
106 |
echo " The download page : https://www.virtualbox.org/wiki/Downloads" |
107 |
echo "==============================================================" |
108 |
|
109 |
|
110 |
%postun |
111 |
#uninstall |
112 |
if [ $1 = 0 ] ; then |
113 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
114 |
/sbin/e-smith/systemctl restart httpd-e-smith |
115 |
fi |
116 |
%files -f %{name}-%{version}-filelist |
117 |
%defattr(-,root,root) |
118 |
|