- avoid unnecessary services. bnc#675841

also the start should be mediated by YaST or kiwi depending
  on presence of a virtualization environment, not by the package
  itself.

OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=37
This commit is contained in:
Marcus Meissner 2011-03-01 09:31:24 +00:00 committed by Git OBS Bridge
parent 3972be290a
commit a711f70755
2 changed files with 6 additions and 15 deletions

View File

@ -1,8 +1,10 @@
-------------------------------------------------------------------
Tue Mar 1 10:03:17 CET 2011 - meissner@suse.de
- also use the SLES code for openSUSE, to avoid unnecessary
services. bnc#675841
- avoid unnecessary services. bnc#675841
also the start should be mediated by YaST or kiwi depending
on presence of a virtualization environment, not by the package
itself.
-------------------------------------------------------------------
Tue Jan 4 23:14:52 UTC 2011 - cristian.rodriguez@opensuse.org

View File

@ -66,19 +66,8 @@ make %{?_smp_mflags} check
rm -rf %{buildroot}
%post
## brace for impact...
if [ -x /usr/bin/lscpu ]; then
if /usr/bin/lscpu | grep -q "Virtualization type" ; then
## Is a VM
%{fillup_and_insserv -fy %{name}}
else
## it isnt.
%{fillup_and_insserv -f %{name}}
fi
else
##there is no lscpu! shouldnt happend...
%{fillup_and_insserv -f %{name}}
fi
# do not enable on condition here, let YAST, kiwi or the user do it.
%{fillup_and_insserv -f %{name}}
%postun
%restart_on_update %{name}