1 |
%define name smeserver-phpvirtualbox |
%define name smeserver-phpvirtualbox |
2 |
%define version 5.0.0 |
%define version 5.2.1 |
3 |
%define release 1 |
%define release 4 |
4 |
%define rpmver 5.0.0 |
%define rpmver 5.2.1 |
5 |
Summary: smserver rpm to install phpvirtualbox |
Summary: smserver rpm to install phpvirtualbox |
6 |
Name: %{name} |
Name: %{name} |
7 |
Version: %{version} |
Version: %{version} |
12 |
Group: SMEserver/addon |
Group: SMEserver/addon |
13 |
BuildRoot: %{_tmppath}/%{name}-buildroot |
BuildRoot: %{_tmppath}/%{name}-buildroot |
14 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
|
#Patch0: smeserver-phpvirtualbox-force-https.patch |
|
|
#Patch1: smeserver-phpvirtualbox-unix-group.patch |
|
|
#Patch2: smeserver-phpvirtualbox-4.3.0-remove-webauth.patch |
|
|
#Patch3: smeserver-phpvirtualbox-4.3.0-add_webauth_migrate_fragment.patch |
|
15 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
16 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 8.0 |
Requires: e-smith-release >= 10.0 |
18 |
Requires: php-soap |
Requires: php-soap |
19 |
Requires: phpvirtualbox-5.0 |
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 |
|
Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch |
24 |
|
|
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
%description |
%description |
27 |
smserver rpm to install phpvirtualbox : An open source, AJAX implementation of the VirtualBox user interface written in PHP. As a |
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 |
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. |
administer VirtualBox in a headless environment - mirroring the VirtualBox GUI through its web interface. |
30 |
|
phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Fri Mar 10 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 |
|
- remove defaults for User and Group config items |
40 |
|
- add basic default values for config.php as config db items (with same name) and allow entry of other config items |
41 |
|
- create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions |
42 |
|
- correct permissions on log files |
43 |
|
- add smb.conf fragment to allow vboxuser and any userGroups access to /opt/vbox (VMs & ISOs) directories |
44 |
|
- add restart of httpd-e-smith and smbd services on update |
45 |
|
- create template2expand directive for virtualbox update (which generates/saves new password) for /opt/phpvirtualbox/config.php |
46 |
|
|
47 |
|
* Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3 |
48 |
|
- remove vbox passwd from config.php |
49 |
|
|
50 |
|
* Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-2 |
51 |
|
- vbox user home directory moved |
52 |
|
|
53 |
|
* Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-1 |
54 |
|
- Initial import to sme10 |
55 |
|
- requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2 |
56 |
|
- upgrade to httpd 2.4 |
57 |
|
- use php74-php-fpm |
58 |
|
- bundle up patches and release new tarball |
59 |
|
|
60 |
* Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-1 |
* Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-1 |
61 |
- require to phpvirtualbox-5.0 |
- require to phpvirtualbox-5.0 |
62 |
|
|
88 |
|
|
89 |
%prep |
%prep |
90 |
%setup |
%setup |
91 |
#%patch0 -p1 |
%patch0 -p1 |
92 |
#%patch1 -p1 |
%patch1 -p1 |
93 |
#%patch2 -p1 |
%patch2 -p1 |
94 |
#%patch3 -p1 |
|
95 |
%build |
%build |
96 |
#perl createlinks |
perl createlinks |
97 |
|
|
98 |
%install |
%install |
99 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
100 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
101 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
102 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
mkdir -p $RPM_BUILD_ROOT/opt/vbox/{ISOs,VMs} |
103 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
mkdir -p $RPM_BUILD_ROOT/var/log/php/phpvirtualbox |
104 |
|
mkdir -p $RPM_BUILD_ROOT/var/lib/php/phpvirtualbox/{opcache,tmp,session} |
105 |
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
106 |
|
--dir /opt/vbox 'attr(0755,vbox,vboxusers)' \ |
107 |
|
--dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \ |
108 |
|
--dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \ |
109 |
|
--dir /var/log/php/phpvirtualbox 'attr(0755,www,www)' \ |
110 |
|
--dir /var/lib/php/phpvirtualbox 'attr(0755,www,www)' \ |
111 |
|
--dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \ |
112 |
|
--dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \ |
113 |
|
--dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \ |
114 |
|
> %{name}-%{version}-filelist |
115 |
|
|
116 |
%clean |
%clean |
117 |
cd .. |
cd .. |
123 |
|
|
124 |
%post |
%post |
125 |
|
|
|
echo "==============================================================" |
|
|
echo " Please do not forget to install the extension pack " |
|
|
echo " You need it to activate the virtualbox RDP server" |
|
|
echo " And many features, see this page to manage it by CL" |
|
|
echo " " |
|
|
echo " https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack" |
|
|
echo " " |
|
|
echo " The download page : https://www.virtualbox.org/wiki/Downloads" |
|
|
echo "==============================================================" |
|
|
|
|
|
|
|
126 |
%postun |
%postun |
127 |
#uninstall |
#uninstall |
128 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
129 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
130 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/sbin/e-smith/systemctl restart httpd-e-smith |
131 |
fi |
fi |
132 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
133 |
%defattr(-,root,root) |
%defattr(-,root,root) |