%define name smeserver-phpvirtualbox %define version 5.2.1 %define release 4 %define rpmver 5.2.1 Summary: smserver rpm to install phpvirtualbox Name: %{name} Version: %{version} Release: %{release}%{?dist} Source: %{name}-%{version}.tar.gz License: GNU GPL version 2 URL: http://mirror.de-labrusse.fr Group: SMEserver/addon BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} BuildArchitectures: noarch BuildRequires: e-smith-devtools Requires: e-smith-release >= 10.0 Requires: php-soap Requires: phpvirtualbox = 5.2.1 Requires: smeserver-virtualbox = 5.2 Patch0: smeserver-phpvirtualbox-5.2.1-move_vbox_dir.patch Patch1: smeserver-phpvirtualbox-5.2.1-remove_vbox_passwd.patch Patch2: smeserver-phpvirtualbox-5.2.1-multiple_changes.patch AutoReqProv: no %description smserver rpm to install phpvirtualbox : An open source, AJAX implementation of the VirtualBox user interface written in PHP. As a modern web interface, it allows you to access and control remote VirtualBox instances. phpVirtualBox is designed to allow users to administer VirtualBox in a headless environment - mirroring the VirtualBox GUI through its web interface. phpvirtualbox version MUST align with VirtualBox version (i.e. VirtualBox-6.1 requires phpvirtualbox-6.1) %changelog * Tue Mar 07 2023 Trevor Batley 5.2.1-4 - add vbox password back into config.php - replace /etc/php-fpm.d/phpvirtualbox with /etc/php-fpm.d/www.conf fragment and expand during update - remove webauth config db item and add authType, with multiple values) - add support for BuiltIn, WebAuth (default), LDAP and AD authentication - rename config items User => Users, Group => userGroups and add adminUser - add basic default values for config.php as config db items (with same name) and allow entry of other config items - create /var/lib/php/phpvirtualbox directories (opcache, session, tmp) with www:www ownership and 0755 permissions - correct permissions on log files - add smb.conf fragment to allow vboxuser and any userGroups access to /opt/vbox (VMs & ISOs) directories - add restart of httpd-e-smith and smbd services on update - create template2expand directive for virtualbox update (which generates/saves new password) for /opt/phpvirtualbox/config.php * Thu Oct 20 2022 Trevor Batley 5.2.1-3 - remove vbox passwd from config.php * Wed Oct 19 2022 Trevor Batley 5.2.1-2 - vbox user home directory moved * Tue Oct 11 2022 Trevor Batley 5.2.1-1 - Initial import to sme10 - requires phpvirtualbox 5.2.1, smeserver-virtualbox 5.2 - upgrade to httpd 2.4 - use php74-php-fpm - bundle up patches and release new tarball * Thu Aug 06 2015 stephane de labrusse 5.0.0-1 - require to phpvirtualbox-5.0 * Sun May 18 2014 stephane de labrusse 4.3.1-3 - first release to sme9 - unixgroup removed from the contribs - fix ssl redirection * Wed Mar 19 2014 stephane de labrusse 4.3.1-1 - due to the bug correction of phpvirtualbox, this version give back the web authentication with migrate fragment update * Wed Jan 08 2014 JP Pialasse 4.3.0-10.sme - changing requires to phpvirtualbox = 4.3 * Mon Dec 30 2013 JP Pialasse 4.3.0-9.sme - renaming to import into buildsys * Fri Dec 13 2013 stephane de labrusse 4.3.0-8 - remove the web authentication for the buildin phpvirtualbox authentication * Sun Nov 10 2013 stephane de labrusse 4.3.0-7 - removing dependance to smeserver-virtualbox-4.3 * Tue Nov 05 2013 stephane de labrusse 4.3.0-6 - change name to match the phpvirtualbox version * Wed Oct 23 2013 stephane de labrusse 4.3.0-5 - Clean 92phpvirtualbox to force only the localnetwork - Add the plugin unixgroup (from pwauth) to allow unix groups to reach the apache server. - you can see http://code.google.com/p/pwauth/ for more informations * Sun Oct 20 2013 stephane de labrusse 4.3.0-4 - Force https protocol for phpvirtualbox * Sat Oct 19 2013 stephane de labrusse 4.3.0-3 - Initial release %prep %setup %patch0 -p1 %patch1 -p1 %patch2 -p1 %build perl createlinks %install rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --dir /opt/vbox 'attr(0755,vbox,vboxusers)' \ --dir /opt/vbox/ISOs 'attr(0774,vbox,vboxusers)' \ --dir /opt/vbox/VMs 'attr(0774,vbox,vboxusers)' \ --dir /var/log/php/phpvirtualbox 'attr(0755,www,www)' \ --dir /var/lib/php/phpvirtualbox 'attr(0755,www,www)' \ --dir /var/lib/php/phpvirtualbox/tmp 'attr(0755,www,www)' \ --dir /var/lib/php/phpvirtualbox/opcache 'attr(0755,www,www)' \ --dir /var/lib/php/phpvirtualbox/session 'attr(0755,www,www)' \ > %{name}-%{version}-filelist %clean cd .. rm -rf %{name}-%{version} %pre %preun %post %postun #uninstall if [ $1 = 0 ] ; then /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf /sbin/e-smith/systemctl restart httpd-e-smith fi %files -f %{name}-%{version}-filelist %defattr(-,root,root)