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
|
||||
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 <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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user