21 |
Patch0: smeserver-phpvirtualbox-5.2.1-move_vbox_dir.patch |
Patch0: smeserver-phpvirtualbox-5.2.1-move_vbox_dir.patch |
22 |
Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch |
Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch |
23 |
Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch |
Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch |
24 |
|
Patch3: smeserver-phpvirtualbox-5.2.1-remove_defaults.patch |
25 |
|
|
26 |
AutoReqProv: no |
AutoReqProv: no |
27 |
%description |
%description |
31 |
phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) |
phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
* Tue Mar 07 2023 Trevor Batley <trevor@batley.id.au> 5.2.1-4 |
* Fri Mar 10 2023 Trevor Batley <trevor@batley.id.au> 5.2.1-4 |
35 |
- add vbox password back into config.php |
- add vbox password back into config.php |
36 |
- replace /etc/php-fpm.d/phpvirtualbox with /etc/php-fpm.d/www.conf fragment and expand during update |
- replace /etc/php-fpm.d/phpvirtualbox with /etc/php-fpm.d/www.conf fragment and expand during update |
37 |
- remove webauth config db item and add authType, with multiple values) |
- remove webauth config db item and add authType, with multiple values |
38 |
- add support for BuiltIn, WebAuth (default), LDAP and AD authentication |
- add support for BuiltIn, WebAuth (default), LDAP and AD authentication |
39 |
- rename config items User => Users, Group => userGroups and add adminUser |
- rename config items User => Users, Group => userGroups and add adminUser |
40 |
|
- remove defaults for User and Group config items |
41 |
- add basic default values for config.php as config db items (with same name) and allow entry of other config items |
- add basic default values for config.php as config db items (with same name) and allow entry of other config items |
42 |
- create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions |
- create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions |
43 |
- correct permissions on log files |
- correct permissions on log files |
92 |
%patch0 -p1 |
%patch0 -p1 |
93 |
%patch1 -p1 |
%patch1 -p1 |
94 |
%patch2 -p1 |
%patch2 -p1 |
95 |
|
%patch3 -p1 |
96 |
|
|
97 |
%build |
%build |
98 |
perl createlinks |
perl createlinks |
101 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
102 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
103 |
rm -f %{name}-%{version}-filelist |
rm -f %{name}-%{version}-filelist |
104 |
|
mkdir -p /opt/vbox/{ISOs,VMs} |
105 |
|
mkdir -p /var/log/php/phpvirtualbox |
106 |
|
mkdir -p /var/lib/php/phpvirtualbox/{opcache,tmp,session} |
107 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
108 |
--dir /opt/vbox 'attr(0755,vbox,vboxusers)' \ |
--dir /opt/vbox 'attr(0755,vbox,vboxusers)' \ |
109 |
--dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \ |
--dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \ |