|
|
@ -17,42 +17,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if "@BUILD_FLAVOR@" == "kmp"
|
|
|
|
%if "@BUILD_FLAVOR@" == "kmp"
|
|
|
|
### macros for virtualbox-kmp ###
|
|
|
|
# macros for virtualbox-kmp
|
|
|
|
%define main_package 0
|
|
|
|
%define main_package 0
|
|
|
|
%define kmp_package 1
|
|
|
|
%define kmp_package 1
|
|
|
|
%if 0%{?suse_version} > 1600
|
|
|
|
%if 0%{?suse_version} > 1600
|
|
|
|
%define kmp_longterm 1
|
|
|
|
%define kmp_longterm 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%define name_suffix kmp
|
|
|
|
%define name_suffix kmp
|
|
|
|
%define dash -
|
|
|
|
%define dash -
|
|
|
|
%define package_summary Kernel modules for VirtualBox
|
|
|
|
%define package_summary Kernel modules for VirtualBox
|
|
|
|
%if %{undefined kernel_module_directory}
|
|
|
|
%if %{undefined kernel_module_directory}
|
|
|
|
%define kernel_module_directory /lib/modules
|
|
|
|
%define kernel_module_directory /lib/modules
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
### macros for virtualbox main package ###
|
|
|
|
# macros for virtualbox main package ###
|
|
|
|
%define main_package 1
|
|
|
|
%define main_package 1
|
|
|
|
%define kmp_package 0
|
|
|
|
%define kmp_package 0
|
|
|
|
%define package_summary VirtualBox is an Emulator
|
|
|
|
%define package_summary VirtualBox is an Emulator
|
|
|
|
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
|
|
|
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
# Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%if !%{defined _fillupdir}
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if ! %{defined _distconfdir}
|
|
|
|
%if ! %{defined _distconfdir}
|
|
|
|
%define _distconfdir %{_sysconfdir}
|
|
|
|
%define _distconfdir %{_sysconfdir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp
|
|
|
|
# Do not provide libGL.so symbols - they are owned by Mesa already and
|
|
|
|
%global __provides_exclude ^libE?GL.so.1.*$
|
|
|
|
# this could potentially confuse rpm/zypp
|
|
|
|
# With 32-bit builds, the job limit cannot be larger than 2, otherwise the build runs out of memory.
|
|
|
|
%global __provides_exclude ^libE?GL.so.1.*$
|
|
|
|
# For 64-bit builds, no memory limit is reached when more jobs are run, but the builds crash with strange errors.
|
|
|
|
# With 32-bit builds, the job limit cannot be larger than 2, otherwise
|
|
|
|
# For the above reasons, limit the number of jobs to 2.
|
|
|
|
# the build runs out of memory.
|
|
|
|
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
|
|
|
# For 64-bit builds, no memory limit is reached when more jobs are run,
|
|
|
|
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
|
|
|
# but the builds crash with strange errors.
|
|
|
|
|
|
|
|
# For the above reasons, limit the number of jobs to 2.
|
|
|
|
|
|
|
|
%define _vbox_instdir %{_prefix}/lib/virtualbox
|
|
|
|
|
|
|
|
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
|
|
|
|
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
|
|
|
|
Name: virtualbox%{?dash}%{?name_suffix}
|
|
|
|
Name: virtualbox%{?dash}%{?name_suffix}
|
|
|
|
Version: 7.0.20
|
|
|
|
Version: 7.1.4
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
Summary: %{package_summary}
|
|
|
|
Summary: %{package_summary}
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
License: GPL-3.0-or-later
|
|
|
@ -67,11 +70,10 @@ URL: https://www.virtualbox.org/
|
|
|
|
# script virtualbox-patch-source.sh will do the job :)
|
|
|
|
# script virtualbox-patch-source.sh will do the job :)
|
|
|
|
# WARNING: This is not a comment, but the real command to repack source
|
|
|
|
# WARNING: This is not a comment, but the real command to repack source
|
|
|
|
#%%(bash %%{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%%{version}.tar.bz2)
|
|
|
|
#%%(bash %%{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%%{version}.tar.bz2)
|
|
|
|
Source0: VirtualBox-%{version}-patched.tar.bz2
|
|
|
|
Source0: VirtualBox-%{version}-patched.tpxz
|
|
|
|
Source1: UserManual.pdf
|
|
|
|
Source1: UserManual.pdf
|
|
|
|
Source3: virtualbox-60-vboxguest.rules
|
|
|
|
Source3: virtualbox-60-vboxguest.rules
|
|
|
|
Source4: virtualbox-default.virtualbox
|
|
|
|
Source4: virtualbox-default.virtualbox
|
|
|
|
Source5: virtualbox-kmp-files
|
|
|
|
|
|
|
|
Source7: virtualbox-kmp-preamble
|
|
|
|
Source7: virtualbox-kmp-preamble
|
|
|
|
Source8: update-extpack.sh
|
|
|
|
Source8: update-extpack.sh
|
|
|
|
Source9: virtualbox-wrapper.sh
|
|
|
|
Source9: virtualbox-wrapper.sh
|
|
|
@ -113,6 +115,8 @@ Patch8: turn_off_cloud_net.patch
|
|
|
|
Patch9: vbox-usb-warning.diff
|
|
|
|
Patch9: vbox-usb-warning.diff
|
|
|
|
# Patch for 15.5
|
|
|
|
# Patch for 15.5
|
|
|
|
Patch10: fix_for_leap15.5.patch
|
|
|
|
Patch10: fix_for_leap15.5.patch
|
|
|
|
|
|
|
|
Patch11: cxx17.patch
|
|
|
|
|
|
|
|
Patch12: host-source.patch
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
|
|
|
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
|
|
|
BuildRequires: %{kernel_module_package_buildreqs}
|
|
|
|
BuildRequires: %{kernel_module_package_buildreqs}
|
|
|
@ -122,9 +126,14 @@ BuildRequires: kernel-syms-longterm
|
|
|
|
BuildRequires: acpica
|
|
|
|
BuildRequires: acpica
|
|
|
|
BuildRequires: cmake-full
|
|
|
|
BuildRequires: cmake-full
|
|
|
|
BuildRequires: dwarves
|
|
|
|
BuildRequires: dwarves
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} >= 1600
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: kbuild >= 0.1.9998svn3101
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: gcc12
|
|
|
|
|
|
|
|
BuildRequires: gcc12-c++
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: kbuild >= 0.1.9998+svn3613
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
@ -148,7 +157,7 @@ BuildRequires: dmidecode
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: e2fsprogs-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRequires: glibc-devel-static
|
|
|
|
BuildRequires: glslang-devel
|
|
|
|
BuildRequires: glslang-devel >= 11.5
|
|
|
|
BuildRequires: gsoap-devel >= 2.8.50
|
|
|
|
BuildRequires: gsoap-devel >= 2.8.50
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
|
|
|
#BuildRequires: libSDL2-2_0-0
|
|
|
|
#BuildRequires: libSDL2-2_0-0
|
|
|
@ -156,11 +165,6 @@ BuildRequires: libelf-devel
|
|
|
|
BuildRequires: libidl-devel
|
|
|
|
BuildRequires: libidl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: libopus-devel
|
|
|
|
BuildRequires: libopus-devel
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
|
|
|
|
|
|
|
BuildRequires: libqt5-qtbase-devel
|
|
|
|
|
|
|
|
BuildRequires: libqt5-qttools-devel
|
|
|
|
|
|
|
|
BuildRequires: libqt5-qtx11extras-devel
|
|
|
|
|
|
|
|
BuildRequires: libtpms-devel
|
|
|
|
BuildRequires: libtpms-devel
|
|
|
|
BuildRequires: libvpx-devel
|
|
|
|
BuildRequires: libvpx-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
@ -170,6 +174,7 @@ BuildRequires: lzfse-devel
|
|
|
|
BuildRequires: pulseaudio-devel
|
|
|
|
BuildRequires: pulseaudio-devel
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
BuildRequires: qt6-tools-linguist
|
|
|
|
BuildRequires: rpm
|
|
|
|
BuildRequires: rpm
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
@ -177,6 +182,16 @@ BuildRequires: sysuser-tools
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: which
|
|
|
|
BuildRequires: which
|
|
|
|
BuildRequires: xorg-x11-server
|
|
|
|
BuildRequires: xorg-x11-server
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Core)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6DBus)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Gui)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Help)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Network)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6PrintSupport)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Sql)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6StateMachine)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Widgets)
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(Qt6Xml)
|
|
|
|
BuildRequires: pkgconfig(fontsproto)
|
|
|
|
BuildRequires: pkgconfig(fontsproto)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(glx)
|
|
|
|
BuildRequires: pkgconfig(glx)
|
|
|
@ -203,7 +218,12 @@ BuildRequires: pkgconfig(xproto)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
BuildRequires: pkgconfig(xrandr)
|
|
|
|
Requires: %{name}-kmp = %{version}
|
|
|
|
Requires: %{name}-kmp = %{version}
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): permissions
|
|
|
|
Requires(post): permissions
|
|
|
|
|
|
|
|
Requires(verify): permissions
|
|
|
|
|
|
|
|
Conflicts: %{name}-qt < %{version}
|
|
|
|
|
|
|
|
Conflicts: %{name}-qt > %{version}
|
|
|
|
|
|
|
|
Conflicts: %{name}-websrv < %{version}
|
|
|
|
|
|
|
|
Conflicts: %{name}-websrv > %{version}
|
|
|
|
Recommends: %{name}-gui = %{version}
|
|
|
|
Recommends: %{name}-gui = %{version}
|
|
|
|
# package i4l-vbox from source package i4l-base shares the directory /etc/vbox
|
|
|
|
# package i4l-vbox from source package i4l-base shares the directory /etc/vbox
|
|
|
|
# with us, but with different owner.
|
|
|
|
# with us, but with different owner.
|
|
|
@ -219,8 +239,13 @@ BuildRequires: libboost_headers-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%ifarch amd64 x86_64 ia32e em64t
|
|
|
|
%ifarch amd64 x86_64 ia32e em64t
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} >= 1600
|
|
|
|
BuildRequires: gcc-32bit
|
|
|
|
BuildRequires: gcc-32bit
|
|
|
|
BuildRequires: gcc-c++-32bit
|
|
|
|
BuildRequires: gcc-c++-32bit
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: gcc12-32bit
|
|
|
|
|
|
|
|
BuildRequires: gcc12-c++-32bit
|
|
|
|
|
|
|
|
%endif
|
|
|
|
BuildRequires: xorg-x11-libX11-devel-32bit
|
|
|
|
BuildRequires: xorg-x11-libX11-devel-32bit
|
|
|
|
BuildRequires: xorg-x11-libXext-devel-32bit
|
|
|
|
BuildRequires: xorg-x11-libXext-devel-32bit
|
|
|
|
BuildRequires: xorg-x11-libXmu-devel-32bit
|
|
|
|
BuildRequires: xorg-x11-libXmu-devel-32bit
|
|
|
@ -239,7 +264,7 @@ BuildRequires: libpulse-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
Requires: ca-certificates
|
|
|
|
Requires: ca-certificates
|
|
|
|
Requires: openSUSE-signkey-cert
|
|
|
|
Requires: openSUSE-signkey-cert
|
|
|
|
%kernel_module_package -p %{SOURCE7} -n virtualbox -f %{SOURCE5} -x kdump um xen pae xenpae pv
|
|
|
|
%kernel_module_package -p %{SOURCE7} -n virtualbox -x kdump um xen pae xenpae pv
|
|
|
|
# end of kmp_package
|
|
|
|
# end of kmp_package
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
### Description and subpackages of virtualbox main package ###
|
|
|
|
### Description and subpackages of virtualbox main package ###
|
|
|
@ -256,7 +281,9 @@ the terms of the GNU Public License (GPL).
|
|
|
|
Summary: Qt GUI part for %{name}
|
|
|
|
Summary: Qt GUI part for %{name}
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Group: System/Emulators/PC
|
|
|
|
Requires(pre): %{name} = %{version}
|
|
|
|
Requires(pre): %{name} = %{version}
|
|
|
|
Requires(pre): permissions
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
Requires(post): permissions
|
|
|
|
|
|
|
|
Requires(verify): permissions
|
|
|
|
Provides: %{name}-gui = %{version}
|
|
|
|
Provides: %{name}-gui = %{version}
|
|
|
|
#this is needed during update to trigger installing qt subpackage
|
|
|
|
#this is needed during update to trigger installing qt subpackage
|
|
|
|
#http://en.opensuse.org/openSUSE:Upgrade_dependencies_explanation#Splitting_and_Merging
|
|
|
|
#http://en.opensuse.org/openSUSE:Upgrade_dependencies_explanation#Splitting_and_Merging
|
|
|
@ -376,11 +403,9 @@ Requires: %{name} = %{version}
|
|
|
|
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
|
|
|
|
Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer
|
|
|
|
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
|
|
|
|
protocol (RFB) to remotely control another computer. When this optional feature is desired, it is installed
|
|
|
|
as an "extpack" for VirtualBox. The implementation is licensed under GPL.
|
|
|
|
as an "extpack" for VirtualBox. The implementation is licensed under GPL.
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
# main_package
|
|
|
|
# main_package
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
### Description of virtualbox-kmp ###
|
|
|
|
|
|
|
|
%if %{kmp_package}
|
|
|
|
%if %{kmp_package}
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
|
|
|
|
This package contains the kernel-modules that VirtualBox uses to create or run virtual machines.
|
|
|
@ -388,17 +413,7 @@ This package contains the kernel-modules that VirtualBox uses to create or run v
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n VirtualBox-%{version}
|
|
|
|
%autosetup -n VirtualBox-%{version} -p1
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
|
|
|
%patch -P 2 -p1
|
|
|
|
|
|
|
|
%patch -P 3 -p1
|
|
|
|
|
|
|
|
%patch -P 4 -p1
|
|
|
|
|
|
|
|
%patch -P 5 -p1
|
|
|
|
|
|
|
|
%patch -P 6 -p1
|
|
|
|
|
|
|
|
%patch -P 7 -p1
|
|
|
|
|
|
|
|
%patch -P 8 -p1
|
|
|
|
|
|
|
|
%patch -P 9 -p1
|
|
|
|
|
|
|
|
%patch -P 10 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Documents for virtualbox main package ###
|
|
|
|
### Documents for virtualbox main package ###
|
|
|
|
%if %{main_package}
|
|
|
|
%if %{main_package}
|
|
|
@ -419,13 +434,20 @@ sed -i 's:include/drm:%{_prefix}/src/linux/include/drm:' src/VBox/Additions/linu
|
|
|
|
### %%build, %%install, and %%file sections for virtualbox ###
|
|
|
|
### %%build, %%install, and %%file sections for virtualbox ###
|
|
|
|
%if %{main_package}
|
|
|
|
%if %{main_package}
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1600
|
|
|
|
|
|
|
|
# kmk is annoying, does not respond to CXX=g++-12 ...
|
|
|
|
|
|
|
|
mkdir tc
|
|
|
|
|
|
|
|
export PATH="$PWD/tc:$PATH"
|
|
|
|
|
|
|
|
ln -s /usr/bin/gcc-12 tc/gcc
|
|
|
|
|
|
|
|
ln -s /usr/bin/g++-12 tc/g++
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# Disable LTO - Link Time Optimization
|
|
|
|
# Disable LTO - Link Time Optimization
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
#ensure we don't ever use them
|
|
|
|
#ensure we don't ever use them
|
|
|
|
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
|
|
|
|
rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*}
|
|
|
|
|
|
|
|
|
|
|
|
# --disable-kmods don't build Linux kernel modules - but use SUSE specific way see few lines under
|
|
|
|
# --disable-kmods don't build Linux kernel modules - but use SUSE specific way see few lines under
|
|
|
|
# NOT an autoconf ceonfigure macro
|
|
|
|
# NOT an autoconf configure script
|
|
|
|
./configure \
|
|
|
|
./configure \
|
|
|
|
--enable-vnc \
|
|
|
|
--enable-vnc \
|
|
|
|
--enable-vde \
|
|
|
|
--enable-vde \
|
|
|
@ -475,34 +497,32 @@ EOF
|
|
|
|
%sysusers_generate_pre vbox-guest-tools.conf vbox-guest-tools vbox-guest-tools.conf
|
|
|
|
%sysusers_generate_pre vbox-guest-tools.conf vbox-guest-tools vbox-guest-tools.conf
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
#################################
|
|
|
|
|
|
|
|
echo "create directory structure"
|
|
|
|
echo "create directory structure"
|
|
|
|
#################################
|
|
|
|
mkdir -p \
|
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
|
|
|
%{buildroot}%{_sbindir} \
|
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/lib
|
|
|
|
%{buildroot}%{_prefix}/lib \
|
|
|
|
install -d -m 755 %{buildroot}%{_bindir}
|
|
|
|
%{buildroot}%{_bindir} \
|
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
|
|
|
%{buildroot}%{_sbindir} \
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/virtualbox/nls
|
|
|
|
%{buildroot}%{_datadir}/virtualbox/nls \
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/virtualbox/UnattendedTemplates
|
|
|
|
%{buildroot}%{_datadir}/virtualbox/UnattendedTemplates \
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
|
|
|
|
%{buildroot}%{_datadir}/pixmaps \
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/applications
|
|
|
|
%{buildroot}%{_datadir}/applications \
|
|
|
|
install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|
|
|
%{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom \
|
|
|
|
install -d -m 755 %{buildroot}%{_vbox_instdir}/components
|
|
|
|
%{buildroot}%{_vbox_instdir}/components \
|
|
|
|
install -d -m 755 %{buildroot}%{_libdir}/dri
|
|
|
|
%{buildroot}%{_libdir}/dri \
|
|
|
|
install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/drivers
|
|
|
|
%{buildroot}%{_libdir}/xorg/modules/drivers \
|
|
|
|
install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/input
|
|
|
|
%{buildroot}%{_libdir}/xorg/modules/input \
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/default
|
|
|
|
%{buildroot}%{_sysconfdir}/default \
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
%{buildroot}%{_sysconfdir}/init.d \
|
|
|
|
install -d %{buildroot}%{_unitdir}
|
|
|
|
%{buildroot}%{_unitdir} \
|
|
|
|
install -d %{buildroot}%{_unitdir}/multi-user.target.wants
|
|
|
|
%{buildroot}%{_unitdir}/multi-user.target.wants \
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox
|
|
|
|
%{buildroot}%{_sysconfdir}/vbox \
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/vbox/autostart.d
|
|
|
|
%{buildroot}%{_sysconfdir}/vbox/autostart.d \
|
|
|
|
install -d -m 755 %{buildroot}%{_udevrulesdir}
|
|
|
|
%{buildroot}%{_udevrulesdir} \
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
|
|
|
|
%{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d \
|
|
|
|
|
|
|
|
%{buildroot}%{_modprobedir}
|
|
|
|
|
|
|
|
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
echo "entering guest-tools install section"
|
|
|
|
echo "entering guest-tools install section"
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_sbindir}/VBoxService
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}%{_sbindir}/mount.vboxsf
|
|
|
|
install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}%{_sbindir}/mount.vboxsf
|
|
|
@ -524,64 +544,52 @@ install -m 644 %{SOURCE25} %{buildroot}%{_sysconfdir}/xdg/autostart/vboxclient.d
|
|
|
|
install -d -m 755 %{buildroot}/media
|
|
|
|
install -d -m 755 %{buildroot}/media
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
echo "entering VNC extension install section"
|
|
|
|
echo "entering VNC extension install section"
|
|
|
|
###########################################
|
|
|
|
|
|
|
|
pushd out/linux.*/release/packages/
|
|
|
|
pushd out/linux.*/release/packages/
|
|
|
|
mkdir -p "%{buildroot}%{_datadir}/virtualbox/extensions/"
|
|
|
|
mkdir -p "%{buildroot}%{_datadir}/virtualbox/extensions/"
|
|
|
|
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
|
|
|
install -D -m 644 VNC-*.vbox-extpack "%{buildroot}%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
echo "entering virtualbox(-qt) install section"
|
|
|
|
echo "entering virtualbox(-qt) install section"
|
|
|
|
##############################################
|
|
|
|
|
|
|
|
# copy the main files to %%{_vbox_instdir}
|
|
|
|
# copy the main files to %%{_vbox_instdir}
|
|
|
|
pushd out/linux.*/release/bin
|
|
|
|
pushd out/linux.*/release/bin
|
|
|
|
install -m 755 VBoxManage %{buildroot}%{_vbox_instdir}
|
|
|
|
cp -a VBoxManage VBoxHeadless VBoxSDL VBoxNetNAT VBoxAutostart VBoxVolInfo \
|
|
|
|
install -m 755 VBoxHeadless %{buildroot}%{_vbox_instdir}
|
|
|
|
vboxshell.py VBoxBalloonCtrl webtest VBoxDTrace VBoxDbg.so \
|
|
|
|
install -m 755 VBoxSDL %{buildroot}%{_vbox_instdir}
|
|
|
|
VBoxDxVk.so UICommon.so vboximg-mount %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VBoxNetNAT %{buildroot}%{_vbox_instdir}
|
|
|
|
ls -al VBoxManage VBoxHeadless VBoxSDL VBoxNetNAT VBoxAutostart VBoxVolInfo \
|
|
|
|
install -m 755 VBoxAutostart %{buildroot}%{_vbox_instdir}
|
|
|
|
vboxshell.py VBoxBalloonCtrl webtest VBoxDTrace VBoxDbg.so \
|
|
|
|
install -m 755 VBoxVolInfo %{buildroot}%{_vbox_instdir}
|
|
|
|
VBoxDxVk.so UICommon.so vboximg-mount 0755 || :
|
|
|
|
install -m 755 vboxshell.py %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxBalloonCtrl %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxDTrace %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxDbg.so %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxDbg.so %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxDxVk.so %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 UICommon.so %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 vboximg-mount %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
# create links to vbox tools in PATH - they could be usefull for controlling vbox from command line
|
|
|
|
# create links to vbox tools in PATH - they could be usefull for controlling vbox from command line
|
|
|
|
ln -s %{_vbox_instdir}/VBoxManage %{buildroot}%{_bindir}/VBoxManage
|
|
|
|
ln -s %{_vbox_instdir}/VBoxManage %{buildroot}%{_bindir}/VBoxManage
|
|
|
|
ln -s %{_vbox_instdir}/VBoxHeadless %{buildroot}%{_bindir}/VBoxHeadless
|
|
|
|
ln -s %{_vbox_instdir}/VBoxHeadless %{buildroot}%{_bindir}/VBoxHeadless
|
|
|
|
ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL
|
|
|
|
ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL
|
|
|
|
ln -s %{_vbox_instdir}/vboximg-mount %{buildroot}%{_bindir}/vboximg-mount
|
|
|
|
ln -s %{_vbox_instdir}/vboximg-mount %{buildroot}%{_bindir}/vboximg-mount
|
|
|
|
install -m 755 VBoxSVC %{buildroot}%{_vbox_instdir}
|
|
|
|
cp -a VBoxSVC VBoxExtPackHelperApp VBoxPermissionMessage VBoxSUIDMessage \
|
|
|
|
install -m 755 VBoxXPCOMIPCD %{buildroot}%{_vbox_instdir}
|
|
|
|
VBoxUSB_DevRules VBoxNetDHCP VBoxNetAdpCtl VirtualBoxVM \
|
|
|
|
install -m 755 VBoxExtPackHelperApp %{buildroot}%{_vbox_instdir}
|
|
|
|
%{buildroot}%{_vbox_instdir}/
|
|
|
|
install -m 755 VBoxTestOGL %{buildroot}%{_vbox_instdir}
|
|
|
|
ls -al VBoxSVC VBoxExtPackHelperApp VBoxPermissionMessage VBoxSUIDMessage \
|
|
|
|
install -m 755 VBoxPermissionMessage %{buildroot}%{_vbox_instdir}
|
|
|
|
VBoxUSB_DevRules VBoxNetDHCP VBoxNetAdpCtl VirtualBoxVM 0755 || :
|
|
|
|
install -m 755 VBoxSUIDMessage %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}/VirtualBoxQt
|
|
|
|
install -m 755 VBoxUSB_DevRules %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxNetDHCP %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VBoxNetAdpCtl %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}/VirtualBox6
|
|
|
|
|
|
|
|
install -m 755 VirtualBoxVM %{buildroot}%{_vbox_instdir}
|
|
|
|
|
|
|
|
# compatibility symlink in order to keep old desktop links functional
|
|
|
|
# compatibility symlink in order to keep old desktop links functional
|
|
|
|
ln -s %{_vbox_instdir}/VirtualBoxVM %{buildroot}%{_vbox_instdir}/VirtualBox
|
|
|
|
ln -s %{_vbox_instdir}/VirtualBoxVM %{buildroot}%{_vbox_instdir}/VirtualBox
|
|
|
|
install -m 755 VBoxEFI*.fd %{buildroot}%{_vbox_instdir}
|
|
|
|
cp -a VBoxEFI*.fd VBoxSysInfo.sh %{buildroot}%{_vbox_instdir}/
|
|
|
|
install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir}
|
|
|
|
ls -al VBoxEFI*.fd VBoxSysInfo.sh 0755 || :
|
|
|
|
install -m 644 *.so %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 *.so %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 *.r0 %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 *.r0 %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 644 components/* %{buildroot}%{_vbox_instdir}/components/
|
|
|
|
install -m 644 components/* %{buildroot}%{_vbox_instdir}/components/
|
|
|
|
# install languages
|
|
|
|
# install languages
|
|
|
|
install -m 644 nls/* %{buildroot}%{_datadir}/virtualbox/nls/
|
|
|
|
install -m 644 nls/* %{buildroot}%{_datadir}/virtualbox/nls/
|
|
|
|
install -m 644 UnattendedTemplates/* %{buildroot}%{_datadir}/virtualbox/UnattendedTemplates/
|
|
|
|
install -m 644 UnattendedTemplates/* %{buildroot}%{_datadir}/virtualbox/UnattendedTemplates/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Workaround kvm.ko usurping VMX.
|
|
|
|
|
|
|
|
# (Linux kernel commit b4886fab6fb620b96ad7eeefb9801c42dfa91741 is the culprit.
|
|
|
|
|
|
|
|
# See also https://lore.kernel.org/kvm/ZwQjUSOle6sWARsr@google.com/T/ )
|
|
|
|
|
|
|
|
echo options kvm enable_virt_at_load=0 >"%buildroot/%_modprobedir/50-virtualbox.conf"
|
|
|
|
|
|
|
|
|
|
|
|
# install kmp src
|
|
|
|
# install kmp src
|
|
|
|
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
|
|
|
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
|
|
|
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/additions
|
|
|
|
mkdir -p %{buildroot}%{_usrsrc}/kernel-modules/additions
|
|
|
|
tar jcf %{buildroot}%{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2 additions/src
|
|
|
|
tar -jcf %{buildroot}%{_usrsrc}/kernel-modules/additions/guest_src.tar.bz2 additions/src
|
|
|
|
cp -a src %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
|
|
|
cp -a src %{buildroot}%{_usrsrc}/kernel-modules/virtualbox
|
|
|
|
install -m 644 %{SOURCE11} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules
|
|
|
|
install -m 644 %{SOURCE11} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules
|
|
|
|
popd
|
|
|
|
popd
|
|
|
@ -636,19 +644,15 @@ allow = true
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
# install udev helper script for creating usb devices
|
|
|
|
# install udev helper script for creating usb devices
|
|
|
|
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
|
|
|
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_vbox_instdir}/VBoxCreateUSBNode.sh
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
echo "entering python-virtualbox install section"
|
|
|
|
echo "entering python-virtualbox install section"
|
|
|
|
######################################################
|
|
|
|
pushd out/linux.*/release/bin/sdk/installer/python
|
|
|
|
pushd out/linux.*/release/bin/sdk/installer
|
|
|
|
|
|
|
|
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|
|
|
install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|
|
|
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|
|
|
cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom
|
|
|
|
%py3_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
|
|
|
%py3_compile %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom/python
|
|
|
|
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
echo "entering virtualbox-devel install section"
|
|
|
|
echo "entering virtualbox-devel install section"
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot}%{_vbox_instdir}/sdk/bindings
|
|
|
|
cp -r out/linux.*/release/bin/sdk/bindings/auth %{buildroot}%{_vbox_instdir}/sdk/bindings
|
|
|
|
|
|
|
|
|
|
|
|
pushd out/linux.*/release/bin/sdk/bindings/xpcom
|
|
|
|
pushd out/linux.*/release/bin/sdk/bindings/xpcom
|
|
|
@ -659,19 +663,14 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_instdir}/sdk/bindings
|
|
|
|
cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_instdir}/sdk/bindings
|
|
|
|
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
echo "entering virtualbox-websrv install section"
|
|
|
|
echo "entering virtualbox-websrv install section"
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
pushd out/linux.*/release/bin
|
|
|
|
pushd out/linux.*/release/bin
|
|
|
|
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
|
|
|
install -m 755 webtest %{buildroot}%{_vbox_instdir}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
ln -sf %{_unitdir}/vboxweb-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
|
|
|
ln -sf %{_unitdir}/vboxweb-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
echo "entering virtualbox-guest-desktop-icons install section"
|
|
|
|
echo "entering virtualbox-guest-desktop-icons install section"
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtualbox
|
|
|
|
install -d -m 755 %{buildroot}%{_datadir}/pixmaps/virtualbox
|
|
|
|
|
|
|
|
|
|
|
|
pushd src/VBox/Frontends/VirtualBox/images
|
|
|
|
pushd src/VBox/Frontends/VirtualBox/images
|
|
|
@ -679,31 +678,15 @@ for icon in os_*.png; do
|
|
|
|
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtualbox/"$icon";
|
|
|
|
install -m 644 "$icon" %{buildroot}%{_datadir}/pixmaps/virtualbox/"$icon";
|
|
|
|
done
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
#
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
# system users and groups
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -Dm0644 vbox.conf %{buildroot}%{_sysusersdir}/vbox.conf
|
|
|
|
install -Dm0644 vbox.conf %{buildroot}%{_sysusersdir}/vbox.conf
|
|
|
|
install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-tools.conf
|
|
|
|
install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-tools.conf
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
# run fdupes
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
#run fdupes because we lost link for virtualbox/components directory
|
|
|
|
|
|
|
|
%fdupes %{buildroot}/%{_vbox_instdir}
|
|
|
|
%fdupes %{buildroot}/%{_vbox_instdir}
|
|
|
|
#also some translation files are duplicated
|
|
|
|
|
|
|
|
%fdupes %{buildroot}/%{_datadir}/virtualbox/nls
|
|
|
|
%fdupes %{buildroot}/%{_datadir}/virtualbox/nls
|
|
|
|
#also some icon files are duplicated
|
|
|
|
|
|
|
|
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtualbox
|
|
|
|
%fdupes %{buildroot}/%{_datadir}/pixmaps/virtualbox
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
# scriptlets - pre
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre -f vbox.pre
|
|
|
|
%pre -f vbox.pre
|
|
|
|
%service_add_pre vboxdrv.service
|
|
|
|
%service_add_pre vboxdrv.service vboxautostart-service.service
|
|
|
|
%service_add_pre vboxautostart-service.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre guest-tools -f vbox-guest-tools.pre
|
|
|
|
%pre guest-tools -f vbox-guest-tools.pre
|
|
|
|
%service_add_pre vboxadd-service.service
|
|
|
|
%service_add_pre vboxadd-service.service
|
|
|
@ -711,10 +694,6 @@ install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-too
|
|
|
|
%pre websrv
|
|
|
|
%pre websrv
|
|
|
|
%service_add_pre vboxweb-service.service
|
|
|
|
%service_add_pre vboxweb-service.service
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
# scriptlets - post
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
#setup our sysconfig file /etc/sysconfig/vbox
|
|
|
|
#setup our sysconfig file /etc/sysconfig/vbox
|
|
|
@ -722,8 +701,7 @@ install -Dm0644 vbox-guest-tools.conf %{buildroot}%{_sysusersdir}/vbox-guest-too
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetDHCP
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetDHCP
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetAdpCtl
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxNetAdpCtl
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxHeadless
|
|
|
|
%set_permissions %{_vbox_instdir}/VBoxHeadless
|
|
|
|
%service_add_post vboxdrv.service
|
|
|
|
%service_add_post vboxdrv.service vboxautostart-service.service
|
|
|
|
%service_add_post vboxautostart-service.service
|
|
|
|
|
|
|
|
# add new autostart stuff to the existing default config, if missing
|
|
|
|
# add new autostart stuff to the existing default config, if missing
|
|
|
|
grep -q VBOXAUTOSTART %{_sysconfdir}/default/virtualbox || {
|
|
|
|
grep -q VBOXAUTOSTART %{_sysconfdir}/default/virtualbox || {
|
|
|
|
cat >> %{_sysconfdir}/default/virtualbox << EOF
|
|
|
|
cat >> %{_sysconfdir}/default/virtualbox << EOF
|
|
|
@ -758,9 +736,7 @@ done
|
|
|
|
%verify_permissions -e %{_vbox_instdir}/VBoxSDL
|
|
|
|
%verify_permissions -e %{_vbox_instdir}/VBoxSDL
|
|
|
|
|
|
|
|
|
|
|
|
%post guest-tools
|
|
|
|
%post guest-tools
|
|
|
|
%service_add_post vboxadd-service.service
|
|
|
|
%service_add_post vboxadd-service.service vboxclient.service vboxservice.service
|
|
|
|
%service_add_post vboxclient.service
|
|
|
|
|
|
|
|
%service_add_post vboxservice.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post websrv
|
|
|
|
%post websrv
|
|
|
|
%service_add_post vboxweb-service.service
|
|
|
|
%service_add_post vboxweb-service.service
|
|
|
@ -770,60 +746,33 @@ EXTPACK="%{_datadir}/virtualbox/extensions/VNC-%{version}.vbox-extpack"
|
|
|
|
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
|
|
|
|
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
|
|
|
|
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
|
|
|
|
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
# scriptlets preun
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%preun
|
|
|
|
%stop_on_removal vboxautostart-service
|
|
|
|
%service_del_preun vboxautostart-service.service vboxdrv.service
|
|
|
|
%stop_on_removal vboxdrv
|
|
|
|
|
|
|
|
%service_del_preun vboxautostart-service.service
|
|
|
|
|
|
|
|
%service_del_preun vboxdrv.service
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun guest-tools
|
|
|
|
%preun guest-tools
|
|
|
|
%stop_on_removal vboxadd-service
|
|
|
|
|
|
|
|
%stop_on_removal vboxadd
|
|
|
|
%stop_on_removal vboxadd
|
|
|
|
%service_del_preun vboxadd-service.service
|
|
|
|
%service_del_preun vboxadd-service.service
|
|
|
|
%systemd_preun vboxclient.service
|
|
|
|
%systemd_preun vboxclient.service vboxservice.service
|
|
|
|
%systemd_preun vboxservice.service
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun websrv
|
|
|
|
%preun websrv
|
|
|
|
%stop_on_removal vboxweb-service
|
|
|
|
%stop_on_removal vboxweb-service
|
|
|
|
%service_del_preun vboxweb-service.service
|
|
|
|
%service_del_preun vboxweb-service.service
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
# scriptlets postun
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/ldconfig
|
|
|
|
%restart_on_update vboxdrv
|
|
|
|
|
|
|
|
%restart_on_update vboxautostart-service
|
|
|
|
|
|
|
|
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
|
|
|
|
# immediately restarting virtualbox may not work. As such wait for the next reboot to restart
|
|
|
|
%if ! %{defined service_del_postun_without_restart}
|
|
|
|
%if ! %{defined service_del_postun_without_restart}
|
|
|
|
export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
%service_del_postun vboxautostart-service.service
|
|
|
|
%service_del_postun vboxautostart-service.service vboxdrv.service
|
|
|
|
%service_del_postun vboxdrv.service
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%service_del_postun_without_restart vboxautostart-service.service
|
|
|
|
%service_del_postun_without_restart vboxautostart-service.service vboxdrv.service
|
|
|
|
%service_del_postun_without_restart vboxdrv.service
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%postun guest-tools
|
|
|
|
%postun guest-tools
|
|
|
|
%restart_on_update vboxadd
|
|
|
|
%service_del_postun vboxadd-service.service vboxclient.service vboxservice.service
|
|
|
|
%restart_on_update vboxadd-service
|
|
|
|
|
|
|
|
%service_del_postun vboxadd-service.service
|
|
|
|
|
|
|
|
%service_del_postun vboxclient.service
|
|
|
|
|
|
|
|
%service_del_postun vboxservice.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun websrv
|
|
|
|
%postun websrv
|
|
|
|
%restart_on_update vboxweb-service
|
|
|
|
|
|
|
|
%service_del_postun vboxweb-service.service
|
|
|
|
%service_del_postun vboxweb-service.service
|
|
|
|
#
|
|
|
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc README.autostart UserManual.pdf README.build
|
|
|
|
%doc README.autostart UserManual.pdf README.build
|
|
|
@ -857,7 +806,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
%{_vbox_instdir}/VBoxEFI*.fd
|
|
|
|
%{_vbox_instdir}/VBoxEFI*.fd
|
|
|
|
%{_vbox_instdir}/VBoxManage
|
|
|
|
%{_vbox_instdir}/VBoxManage
|
|
|
|
%{_vbox_instdir}/VBoxSVC
|
|
|
|
%{_vbox_instdir}/VBoxSVC
|
|
|
|
%{_vbox_instdir}/VBoxXPCOMIPCD
|
|
|
|
%{_vbox_instdir}/VBoxXPCOMIPCD.so
|
|
|
|
%{_vbox_instdir}/VBoxExtPackHelperApp
|
|
|
|
%{_vbox_instdir}/VBoxExtPackHelperApp
|
|
|
|
%{_vbox_instdir}/vboximg-mount
|
|
|
|
%{_vbox_instdir}/vboximg-mount
|
|
|
|
%{_vbox_instdir}/DbgPlugInDiggers.so
|
|
|
|
%{_vbox_instdir}/DbgPlugInDiggers.so
|
|
|
@ -869,6 +818,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
%{_vbox_instdir}/VBoxDxVk.so
|
|
|
|
%{_vbox_instdir}/VBoxDxVk.so
|
|
|
|
%{_vbox_instdir}/UICommon.so
|
|
|
|
%{_vbox_instdir}/UICommon.so
|
|
|
|
%{_vbox_instdir}/VBoxHostChannel.so
|
|
|
|
%{_vbox_instdir}/VBoxHostChannel.so
|
|
|
|
|
|
|
|
%{_vbox_instdir}/VBoxTraceLogDecoders.so
|
|
|
|
%dir %{_vbox_instdir}/components
|
|
|
|
%dir %{_vbox_instdir}/components
|
|
|
|
%{_vbox_instdir}/components/*.so
|
|
|
|
%{_vbox_instdir}/components/*.so
|
|
|
|
%{_vbox_instdir}/components/*.xpt
|
|
|
|
%{_vbox_instdir}/components/*.xpt
|
|
|
@ -879,6 +829,7 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
%dir %{_unitdir}/multi-user.target.wants
|
|
|
|
%dir %{_unitdir}/multi-user.target.wants
|
|
|
|
%{_prefix}/lib/virtualbox/vboxdrv.sh
|
|
|
|
%{_prefix}/lib/virtualbox/vboxdrv.sh
|
|
|
|
%{_prefix}/lib/virtualbox/vboxautostart-service.sh
|
|
|
|
%{_prefix}/lib/virtualbox/vboxautostart-service.sh
|
|
|
|
|
|
|
|
%{_modprobedir}/
|
|
|
|
%{_unitdir}/vboxdrv.service
|
|
|
|
%{_unitdir}/vboxdrv.service
|
|
|
|
%{_unitdir}/vboxautostart-service.service
|
|
|
|
%{_unitdir}/vboxautostart-service.service
|
|
|
|
%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
|
|
|
%{_unitdir}/multi-user.target.wants/vboxweb-service.service
|
|
|
@ -907,15 +858,13 @@ export DISABLE_RESTART_ON_UPDATE=yes
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxPermissionMessage
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxPermissionMessage
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSUIDMessage
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSUIDMessage
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxUSB_DevRules
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxUSB_DevRules
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VirtualBox6
|
|
|
|
%attr(0755,root,vboxusers) %{_vbox_instdir}/VirtualBoxQt
|
|
|
|
%verify(not mode) %attr(0750,root,vboxusers) %{_vbox_instdir}/VirtualBoxVM
|
|
|
|
%verify(not mode) %attr(0750,root,vboxusers) %{_vbox_instdir}/VirtualBoxVM
|
|
|
|
%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSDL
|
|
|
|
%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxSDL
|
|
|
|
%{_vbox_instdir}/VirtualBox
|
|
|
|
%{_vbox_instdir}/VirtualBox
|
|
|
|
#wrapper script is in bindir
|
|
|
|
#wrapper script is in bindir
|
|
|
|
%attr(0755,root,root) %{_bindir}/VirtualBox
|
|
|
|
%attr(0755,root,root) %{_bindir}/VirtualBox
|
|
|
|
%attr(0755,root,root) %{_bindir}/update-extpack.sh
|
|
|
|
%attr(0755,root,root) %{_bindir}/update-extpack.sh
|
|
|
|
#ldd shows libQt* dependency
|
|
|
|
|
|
|
|
%{_vbox_instdir}/VBoxTestOGL
|
|
|
|
|
|
|
|
#qm's translations
|
|
|
|
#qm's translations
|
|
|
|
%{_datadir}/virtualbox/nls
|
|
|
|
%{_datadir}/virtualbox/nls
|
|
|
|
%{_vbox_instdir}/VBoxSVGA3D.so
|
|
|
|
%{_vbox_instdir}/VBoxSVGA3D.so
|
|
|
@ -1063,7 +1012,6 @@ done
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
|
|
|
export INSTALL_MOD_PATH=%{buildroot}
|
|
|
|
export INSTALL_MOD_DIR=extra
|
|
|
|
|
|
|
|
#to install modules we use here similar steps like in build phase, go through all the modules :
|
|
|
|
#to install modules we use here similar steps like in build phase, go through all the modules :
|
|
|
|
for module_name in vbox{drv,netflt,netadp,guest,sf,video}
|
|
|
|
for module_name in vbox{drv,netflt,netadp,guest,sf,video}
|
|
|
|
do
|
|
|
|
do
|
|
|
|