Accepting request 63083 from home:msmeissn:branches:security

ok

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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 1 10:03:17 CET 2011 - meissner@suse.de
- also use the SLES code for openSUSE, to avoid unnecessary
services. bnc#675841
-------------------------------------------------------------------
Tue Jan 4 23:14:52 UTC 2011 - cristian.rodriguez@opensuse.org

View File

@ -67,22 +67,18 @@ rm -rf %{buildroot}
%post
## brace for impact...
%if 0%{?sles_version}
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
if [ -x /usr/bin/lscpu ]; then
if /usr/bin/lscpu | grep -q "Virtualization type" ; then
## Is a VM
%{fillup_and_insserv -fy %{name}}
else
##there is no lscpu! shouldnt happend...
## it isnt.
%{fillup_and_insserv -f %{name}}
fi
%else
%{fillup_and_insserv -fy %{name}}
%endif
else
##there is no lscpu! shouldnt happend...
%{fillup_and_insserv -f %{name}}
fi
%postun
%restart_on_update %{name}