/[smecontribs]/rpms/smeserver-phpvirtualbox/contribs10/smeserver-phpvirtualbox.spec
ViewVC logotype

Diff of /rpms/smeserver-phpvirtualbox/contribs10/smeserver-phpvirtualbox.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by trevorb, Thu Oct 20 04:44:08 2022 UTC Revision 1.5 by trevorb, Tue Mar 7 04:38:51 2023 UTC
# Line 1  Line 1 
1  %define name smeserver-phpvirtualbox  %define name smeserver-phpvirtualbox
2  %define version 5.2.1  %define version 5.2.1
3  %define release 3  %define release 4
4  %define rpmver   5.2.1  %define rpmver   5.2.1
5  Summary: smserver rpm to install phpvirtualbox  Summary: smserver rpm to install phpvirtualbox
6  Name: %{name}  Name: %{name}
# Line 20  Requires: phpvirtualbox = 5.2.1 Line 20  Requires: phpvirtualbox = 5.2.1
20  Requires: smeserver-virtualbox = 5.2  Requires: smeserver-virtualbox = 5.2
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
24    
25  AutoReqProv: no  AutoReqProv: no
26  %description  %description
# Line 29  administer VirtualBox in a headless envi Line 30  administer VirtualBox in a headless envi
30  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)
31    
32  %changelog  %changelog
33    * 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  * Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3  * Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3
47  - remove vbox passwd from config.php  - remove vbox passwd from config.php
48    
# Line 75  phpvirtualbox version MUST align with Vi Line 89  phpvirtualbox version MUST align with Vi
89  %setup  %setup
90  %patch0 -p1  %patch0 -p1
91  %patch1 -p1  %patch1 -p1
92    %patch2 -p1
93    
94  %build  %build
95  perl createlinks  perl createlinks
# Line 83  perl createlinks Line 98  perl createlinks
98  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
99  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
100  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
101  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
102  echo "%doc COPYING"  >> %{name}-%{version}-filelist   --dir /opt/vbox 'attr(0755,vbox,vboxusers)' \
103     --dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \
104     --dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \
105     --dir /var/log/php/phpvirtualbox  'attr(0755,www,www)' \
106     --dir /var/lib/php/phpvirtualbox  'attr(0755,www,www)' \
107     --dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \
108     --dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \
109     --dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \
110     > %{name}-%{version}-filelist
111    
112  %clean  %clean
113  cd ..  cd ..
# Line 96  rm -rf %{name}-%{version} Line 119  rm -rf %{name}-%{version}
119    
120  %post  %post
121    
 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 "=============================================================="  
   
   
122  %postun  %postun
123  #uninstall  #uninstall
124  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed