/[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.2 by trevorb, Tue Oct 18 09:07:10 2022 UTC Revision 1.10 by trevorb, Sun Mar 19 03:53:36 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 1  %define release 5
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 18  Requires: e-smith-release >= 10.0 Line 18  Requires: e-smith-release >= 10.0
18  Requires: php-soap  Requires: php-soap
19  Requires: phpvirtualbox = 5.2.1  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
22    Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch
23    Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch
24    Patch3: smeserver-phpvirtualbox-5.2.1-samba_share.patch
25    
26  AutoReqProv: no  AutoReqProv: no
27  %description  %description
# Line 27  administer VirtualBox in a headless envi Line 31  administer VirtualBox in a headless envi
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 Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2-1  * Sun Mar 19 2023 Trevor batley <trevor@batley.id.au> 5.2.1-5
35    - fix permissions on /opt/vbox/ISOs directory for sharing via samba 0777 [bug #12336]
36    - fix smb.conf fragment to include Users [bug #12336]
37    - fix smb.conf fragment to properly include more than 1 group in userGroups [bug #12336]
38    - add phpvirtualbox samba config item to allow control of if, and who, has access [bug # 12337]
39    
40    * Fri Mar 10 2023 Trevor Batley <trevor@batley.id.au> 5.2.1-4
41    - add vbox password back into config.php
42    - replace /etc/php-fpm.d/phpvirtualbox with /etc/php-fpm.d/www.conf fragment and expand during update
43    - remove webauth config db item and add authType, with multiple values
44    - add support for BuiltIn, WebAuth (default), LDAP and AD authentication
45    - rename config items User => Users, Group => userGroups and add adminUser
46    - remove defaults for User and Group config items
47    - add basic default values for config.php as config db items (with same name) and allow entry of other config items
48    - create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions
49    - correct permissions on log files
50    - add smb.conf fragment to allow vboxuser and any userGroups access to /opt/vbox (VMs & ISOs) directories
51    - add restart of httpd-e-smith and smbd services on update
52    - create template2expand directive for virtualbox update (which generates/saves new password) for /opt/phpvirtualbox/config.php
53    
54    * Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3
55    - remove vbox passwd from config.php
56    
57    * Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-2
58    - vbox user home directory moved
59    
60    * Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-1
61  - Initial import to sme10  - Initial import to sme10
62  - requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2  - requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2
63  - upgrade to httpd 2.4  - upgrade to httpd 2.4
# Line 65  phpvirtualbox version MUST align with Vi Line 95  phpvirtualbox version MUST align with Vi
95    
96  %prep  %prep
97  %setup  %setup
98    %patch0 -p1
99    %patch1 -p1
100    %patch2 -p1
101    %patch3 -p1
102    
103  %build  %build
104  perl createlinks  perl createlinks
105    
# Line 72  perl createlinks Line 107  perl createlinks
107  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
108  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
109  rm -f %{name}-%{version}-filelist  rm -f %{name}-%{version}-filelist
110  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist  mkdir -p $RPM_BUILD_ROOT/opt/vbox/{ISOs,VMs}
111  echo "%doc COPYING"  >> %{name}-%{version}-filelist  mkdir -p $RPM_BUILD_ROOT/var/log/php/phpvirtualbox
112    mkdir -p $RPM_BUILD_ROOT/var/lib/php/phpvirtualbox/{opcache,tmp,session}
113    /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
114     --dir /opt/vbox 'attr(0755,vbox,vboxusers)' \
115     --dir /opt/vbox/ISOs 'attr(0777,vbox,vboxusers)' \
116     --dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \
117     --dir /var/log/php/phpvirtualbox  'attr(0755,www,www)' \
118     --dir /var/lib/php/phpvirtualbox  'attr(0755,www,www)' \
119     --dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \
120     --dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \
121     --dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \
122     > %{name}-%{version}-filelist
123    
124  %clean  %clean
125  cd ..  cd ..
# Line 85  rm -rf %{name}-%{version} Line 131  rm -rf %{name}-%{version}
131    
132  %post  %post
133    
 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 "=============================================================="  
   
   
134  %postun  %postun
135  #uninstall  #uninstall
136  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