/[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.9 - (hide annotations) (download)
Fri Mar 10 02:37:14 2023 UTC (19 months, 3 weeks ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-phpvirtualbox-5_2_1-4_el7_sme
Changes since 1.8: +3 -3 lines
fix spec create dirs

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

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