1 |
jpp |
1.1 |
%define name smeserver-phpvirtualbox |
2 |
trevorb |
1.2 |
%define version 5.2.1 |
3 |
trevorb |
1.5 |
%define release 4 |
4 |
trevorb |
1.2 |
%define rpmver 5.2.1 |
5 |
jpp |
1.1 |
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 |
trevorb |
1.2 |
Requires: e-smith-release >= 10.0 |
18 |
jpp |
1.1 |
Requires: php-soap |
19 |
trevorb |
1.2 |
Requires: phpvirtualbox = 5.2.1 |
20 |
|
|
Requires: smeserver-virtualbox = 5.2 |
21 |
trevorb |
1.3 |
Patch0: smeserver-phpvirtualbox-5.2.1-move_vbox_dir.patch |
22 |
trevorb |
1.4 |
Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch |
23 |
trevorb |
1.5 |
Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch |
24 |
jpp |
1.1 |
|
25 |
|
|
AutoReqProv: no |
26 |
|
|
%description |
27 |
|
|
smserver rpm to install phpvirtualbox : An open source, AJAX implementation of the VirtualBox user interface written in PHP. As a |
28 |
|
|
modern web interface, it allows you to access and control remote VirtualBox instances. phpVirtualBox is designed to allow users to |
29 |
|
|
administer VirtualBox in a headless environment - mirroring the VirtualBox GUI through its web interface. |
30 |
trevorb |
1.2 |
phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) |
31 |
jpp |
1.1 |
|
32 |
|
|
%changelog |
33 |
trevorb |
1.5 |
* Tue Mar 07 2023 Trevor Batley <trevor@batley.id.au> 5.2.1-4 |
34 |
|
|
- add vbox password back into config.php |
35 |
|
|
- replace /etc/php-fpm.d/phpvirtualbox with /etc/php-fpm.d/www.conf fragment and expand during update |
36 |
|
|
- remove webauth config db item and add authType, with multiple values) |
37 |
|
|
- add support for BuiltIn, WebAuth (default), LDAP and AD authentication |
38 |
|
|
- rename config items User => Users, Group => userGroups and add adminUser |
39 |
|
|
- add basic default values for config.php as config db items (with same name) and allow entry of other config items |
40 |
|
|
- create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions |
41 |
|
|
- correct permissions on log files |
42 |
|
|
- add smb.conf fragment to allow vboxuser and any userGroups access to /opt/vbox (VMs & ISOs) directories |
43 |
|
|
- add restart of httpd-e-smith and smbd services on update |
44 |
|
|
- create template2expand directive for virtualbox update (which generates/saves new password) for /opt/phpvirtualbox/config.php |
45 |
|
|
|
46 |
trevorb |
1.4 |
* Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3 |
47 |
|
|
- remove vbox passwd from config.php |
48 |
|
|
|
49 |
trevorb |
1.3 |
* Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-2 |
50 |
|
|
- vbox user home directory moved |
51 |
|
|
|
52 |
|
|
* Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-1 |
53 |
trevorb |
1.2 |
- Initial import to sme10 |
54 |
|
|
- requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2 |
55 |
|
|
- upgrade to httpd 2.4 |
56 |
|
|
- use php74-php-fpm |
57 |
|
|
- bundle up patches and release new tarball |
58 |
|
|
|
59 |
jpp |
1.1 |
* Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-1 |
60 |
|
|
- require to phpvirtualbox-5.0 |
61 |
|
|
|
62 |
|
|
* Sun May 18 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-3 |
63 |
|
|
- first release to sme9 |
64 |
|
|
- unixgroup removed from the contribs |
65 |
|
|
- fix ssl redirection |
66 |
|
|
|
67 |
|
|
* Wed Mar 19 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-1 |
68 |
|
|
- due to the bug correction of phpvirtualbox, this version give back the web authentication with migrate fragment update |
69 |
|
|
* Wed Jan 08 2014 JP Pialasse <tests@pialasse.com> 4.3.0-10.sme |
70 |
|
|
- changing requires to phpvirtualbox = 4.3 |
71 |
|
|
* Mon Dec 30 2013 JP Pialasse <tests@pialasse.com> 4.3.0-9.sme |
72 |
|
|
- renaming to import into buildsys |
73 |
|
|
* Fri Dec 13 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-8 |
74 |
|
|
- remove the web authentication for the buildin phpvirtualbox authentication |
75 |
|
|
* Sun Nov 10 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-7 |
76 |
|
|
- removing dependance to smeserver-virtualbox-4.3 |
77 |
|
|
* Tue Nov 05 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-6 |
78 |
|
|
- change name to match the phpvirtualbox version |
79 |
|
|
* Wed Oct 23 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-5 |
80 |
|
|
- Clean 92phpvirtualbox to force only the localnetwork |
81 |
|
|
- Add the plugin unixgroup (from pwauth) to allow unix groups to reach the apache server. |
82 |
|
|
- you can see http://code.google.com/p/pwauth/ for more informations |
83 |
|
|
* Sun Oct 20 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-4 |
84 |
|
|
- Force https protocol for phpvirtualbox |
85 |
|
|
* Sat Oct 19 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-3 |
86 |
|
|
- Initial release |
87 |
|
|
|
88 |
|
|
%prep |
89 |
|
|
%setup |
90 |
trevorb |
1.3 |
%patch0 -p1 |
91 |
trevorb |
1.4 |
%patch1 -p1 |
92 |
trevorb |
1.5 |
%patch2 -p1 |
93 |
trevorb |
1.4 |
|
94 |
jpp |
1.1 |
%build |
95 |
trevorb |
1.2 |
perl createlinks |
96 |
jpp |
1.1 |
|
97 |
|
|
%install |
98 |
|
|
rm -rf $RPM_BUILD_ROOT |
99 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
100 |
|
|
rm -f %{name}-%{version}-filelist |
101 |
trevorb |
1.6 |
mkdir -p /opt/vbox/{ISOs,VMs} |
102 |
|
|
mkdir -p /var/log/php/phpvirtualbox |
103 |
|
|
mkdir -p /var/lib/php/phpvirtualbox/{opcache,tmp,session} |
104 |
trevorb |
1.5 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
105 |
|
|
--dir /opt/vbox 'attr(0755,vbox,vboxusers)' \ |
106 |
|
|
--dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \ |
107 |
|
|
--dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \ |
108 |
|
|
--dir /var/log/php/phpvirtualbox 'attr(0755,www,www)' \ |
109 |
|
|
--dir /var/lib/php/phpvirtualbox 'attr(0755,www,www)' \ |
110 |
|
|
--dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \ |
111 |
|
|
--dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \ |
112 |
|
|
--dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \ |
113 |
|
|
> %{name}-%{version}-filelist |
114 |
jpp |
1.1 |
|
115 |
|
|
%clean |
116 |
|
|
cd .. |
117 |
|
|
rm -rf %{name}-%{version} |
118 |
|
|
|
119 |
|
|
%pre |
120 |
|
|
|
121 |
|
|
%preun |
122 |
|
|
|
123 |
|
|
%post |
124 |
|
|
|
125 |
|
|
%postun |
126 |
|
|
#uninstall |
127 |
|
|
if [ $1 = 0 ] ; then |
128 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
129 |
trevorb |
1.2 |
/sbin/e-smith/systemctl restart httpd-e-smith |
130 |
jpp |
1.1 |
fi |
131 |
|
|
%files -f %{name}-%{version}-filelist |
132 |
|
|
%defattr(-,root,root) |
133 |
|
|
|