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]
This commit is contained in:
parent
0af60fc620
commit
18ee5e0c6a
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
Name: VirtualBox
|
Name: VirtualBox
|
||||||
Version: 5.0.4
|
Version: 5.0.4
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A general-purpose full virtualizer for x86 hardware
|
Summary: A general-purpose full virtualizer for x86 hardware
|
||||||
Group: Graphical Desktop/Applications/Utilities
|
Group: Graphical Desktop/Applications/Utilities
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -373,7 +373,8 @@ AUTOINSTALL=yes
|
|||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
# load modules at boot
|
# 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
|
vboxdrv
|
||||||
vboxnetflt
|
vboxnetflt
|
||||||
vboxnetadp
|
vboxnetadp
|
||||||
@ -393,14 +394,17 @@ cd ..
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
if [ $1 -ge 1 ]; then
|
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
|
%{_sbindir}/groupadd vboxusers -g %{vboxusers_groupid} 2>/dev/null
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -ge 1 ]; then
|
#if [ $1 -ge 1 ]; then
|
||||||
systemctl -q daemon-reload
|
# systemctl -q daemon-reload
|
||||||
fi
|
#fi
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
:
|
:
|
||||||
|
|
||||||
@ -417,12 +421,12 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%postun
|
#%postun
|
||||||
# upgrade
|
## upgrade
|
||||||
if [ $1 -eq 1 ]; then
|
#if [ $1 -eq 1 ]; then
|
||||||
systemctl try-restart %{name}
|
# systemctl try-restart %{name}
|
||||||
fi
|
#fi
|
||||||
:
|
#:
|
||||||
|
|
||||||
%post web
|
%post web
|
||||||
# new install
|
# new install
|
||||||
@ -601,6 +605,10 @@ fi
|
|||||||
%{_prefix}/src/vboxvideo-%{version}/*
|
%{_prefix}/src/vboxvideo-%{version}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <autodist@mambasoft.it> 5.0.4-1mamba
|
* Sun Sep 13 2015 Automatic Build System <autodist@mambasoft.it> 5.0.4-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user