/[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.7 - (hide annotations) (download)
Fri Mar 10 02:08:25 2023 UTC (20 months, 3 weeks ago) by trevorb
Branch: MAIN
Changes since 1.6: +5 -2 lines
remove defaults for User Group

1 jpp 1.1 %define name smeserver-phpvirtualbox
2 trevorb 1.2 %define version 5.2.1
3 trevorb 1.5 %define release 4
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.7 Patch3: smeserver-phpvirtualbox-5.2.1-remove_defaults.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.7 * Fri Mar 10 2023 Trevor Batley <trevor@batley.id.au> 5.2.1-4
35 trevorb 1.5 - 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
37 trevorb 1.7 - remove webauth config db item and add authType, with multiple values
38 trevorb 1.5 - add support for BuiltIn, WebAuth (default), LDAP and AD authentication
39     - rename config items User => Users, Group => userGroups and add adminUser
40 trevorb 1.7 - remove defaults for User and Group config items
41 trevorb 1.5 - 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
43     - correct permissions on log files
44     - add smb.conf fragment to allow vboxuser and any userGroups access to /opt/vbox (VMs & ISOs) directories
45     - add restart of httpd-e-smith and smbd services on update
46     - create template2expand directive for virtualbox update (which generates/saves new password) for /opt/phpvirtualbox/config.php
47    
48 trevorb 1.4 * Thu Oct 20 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-3
49     - remove vbox passwd from config.php
50    
51 trevorb 1.3 * Wed Oct 19 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-2
52     - vbox user home directory moved
53    
54     * Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2.1-1
55 trevorb 1.2 - Initial import to sme10
56     - requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2
57     - upgrade to httpd 2.4
58     - use php74-php-fpm
59     - bundle up patches and release new tarball
60    
61 jpp 1.1 * Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-1
62     - require to phpvirtualbox-5.0
63    
64     * Sun May 18 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-3
65     - first release to sme9
66     - unixgroup removed from the contribs
67     - fix ssl redirection
68    
69     * Wed Mar 19 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-1
70     - due to the bug correction of phpvirtualbox, this version give back the web authentication with migrate fragment update
71     * Wed Jan 08 2014 JP Pialasse <tests@pialasse.com> 4.3.0-10.sme
72     - changing requires to phpvirtualbox = 4.3
73     * Mon Dec 30 2013 JP Pialasse <tests@pialasse.com> 4.3.0-9.sme
74     - renaming to import into buildsys
75     * Fri Dec 13 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-8
76     - remove the web authentication for the buildin phpvirtualbox authentication
77     * Sun Nov 10 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-7
78     - removing dependance to smeserver-virtualbox-4.3
79     * Tue Nov 05 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-6
80     - change name to match the phpvirtualbox version
81     * Wed Oct 23 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-5
82     - Clean 92phpvirtualbox to force only the localnetwork
83     - Add the plugin unixgroup (from pwauth) to allow unix groups to reach the apache server.
84     - you can see http://code.google.com/p/pwauth/ for more informations
85     * Sun Oct 20 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-4
86     - Force https protocol for phpvirtualbox
87     * Sat Oct 19 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-3
88     - Initial release
89    
90     %prep
91     %setup
92 trevorb 1.3 %patch0 -p1
93 trevorb 1.4 %patch1 -p1
94 trevorb 1.5 %patch2 -p1
95 trevorb 1.7 %patch3 -p1
96 trevorb 1.4
97 jpp 1.1 %build
98 trevorb 1.2 perl createlinks
99 jpp 1.1
100     %install
101     rm -rf $RPM_BUILD_ROOT
102     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
103     rm -f %{name}-%{version}-filelist
104 trevorb 1.6 mkdir -p /opt/vbox/{ISOs,VMs}
105     mkdir -p /var/log/php/phpvirtualbox
106     mkdir -p /var/lib/php/phpvirtualbox/{opcache,tmp,session}
107 trevorb 1.5 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
108     --dir /opt/vbox 'attr(0755,vbox,vboxusers)' \
109     --dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \
110     --dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \
111     --dir /var/log/php/phpvirtualbox 'attr(0755,www,www)' \
112     --dir /var/lib/php/phpvirtualbox 'attr(0755,www,www)' \
113     --dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \
114     --dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \
115     --dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \
116     > %{name}-%{version}-filelist
117 jpp 1.1
118     %clean
119     cd ..
120     rm -rf %{name}-%{version}
121    
122     %pre
123    
124     %preun
125    
126     %post
127    
128     %postun
129     #uninstall
130     if [ $1 = 0 ] ; then
131     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
132 trevorb 1.2 /sbin/e-smith/systemctl restart httpd-e-smith
133 jpp 1.1 fi
134     %files -f %{name}-%{version}-filelist
135     %defattr(-,root,root)
136    

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