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

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

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


Revision 1.10 - (hide annotations) (download)
Sun Mar 19 03:53:36 2023 UTC (20 months, 2 weeks ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-phpvirtualbox-5_2_1-5_el7_sme, HEAD
Changes since 1.9: +10 -2 lines
samba share patch bugs #12336 and #12337

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

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