From 18ee5e0c6ad92f39e544e26feb8122dfa53d0ded Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:54:48 +0100 Subject: [PATCH] fix a mess with %{_prefix}/lib/modules-load.d/virtualbox.conf becoming a directory disable systemd service calls, there is no service [release 5.0.4-2mamba;Sat Sep 26 2015] --- VirtualBox.spec | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/VirtualBox.spec b/VirtualBox.spec index b8ed637..7ac5e6b 100644 --- a/VirtualBox.spec +++ b/VirtualBox.spec @@ -18,7 +18,7 @@ Name: VirtualBox Version: 5.0.4 -Release: 1mamba +Release: 2mamba Summary: A general-purpose full virtualizer for x86 hardware Group: Graphical Desktop/Applications/Utilities Vendor: openmamba @@ -373,7 +373,8 @@ AUTOINSTALL=yes _EOF # load modules at boot -install -d %{buildroot}%{_prefix}/lib/modules-load.d/virtualbox.conf << _EOF +install -d %{buildroot}%{_prefix}/lib/modules-load.d +cat > %{buildroot}%{_prefix}/lib/modules-load.d/virtualbox.conf << _EOF vboxdrv vboxnetflt vboxnetadp @@ -393,14 +394,17 @@ cd .. %pre if [ $1 -ge 1 ]; then + # fix a mess with file being adirectory in 5.0.4-1mamba + [ -d %{_prefix}/lib/modules-load.d/virtualbox.conf ] && \ + rmdir %{_prefix}/lib/modules-load.d/virtualbox.conf %{_sbindir}/groupadd vboxusers -g %{vboxusers_groupid} 2>/dev/null fi : %post -if [ $1 -ge 1 ]; then - systemctl -q daemon-reload -fi +#if [ $1 -ge 1 ]; then +# systemctl -q daemon-reload +#fi /sbin/ldconfig : @@ -417,12 +421,12 @@ if [ $1 -eq 0 ]; then fi : -%postun -# upgrade -if [ $1 -eq 1 ]; then - systemctl try-restart %{name} -fi -: +#%postun +## upgrade +#if [ $1 -eq 1 ]; then +# systemctl try-restart %{name} +#fi +#: %post web # new install @@ -601,6 +605,10 @@ fi %{_prefix}/src/vboxvideo-%{version}/* %changelog +* Sat Sep 26 2015 Silvan Calarco 5.0.4-2mamba +- fix a mess with %{_prefix}/lib/modules-load.d/virtualbox.conf becoming a directory +- disable systemd service calls, there is no service + * Sun Sep 13 2015 Automatic Build System 5.0.4-1mamba - automatic version update by autodist