SHA256
1
0
forked from pool/hyper-v

- Add runlevel script for fcopy daemon in SLE11 (bnc#926534)

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=110
This commit is contained in:
2015-04-16 15:24:21 +00:00
committed by Git OBS Bridge
parent ad20da1c5b
commit a4562a9fe2
3 changed files with 94 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package hyper-v
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -52,6 +52,7 @@ Source11: hyper-v.init.sh
Source12: hyper-v.tools.hv.hv_vss_daemon.c
Source13: hyper-v.init.vss.sh
Source14: hyper-v.tools.hv.hv_fcopy_daemon.c
Source15: hyper-v.init.fcopy.sh
Source20: hyper-v.tools.hv.hv_get_dhcp_info.sh
Source21: hyper-v.tools.hv.hv_get_dns_info.sh
Source22: hyper-v.tools.hv.hv_set_ifconfig.sh
@@ -227,6 +228,8 @@ install -m755 %{S:11} $RPM_BUILD_ROOT/etc/init.d/%{hv_kvp_daemon}
ln -sfvbn ../../etc/init.d/%{hv_kvp_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_kvp_daemon}
install -m755 %{S:13} $RPM_BUILD_ROOT/etc/init.d/%{hv_vss_daemon}
ln -sfvbn ../../etc/init.d/%{hv_vss_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_vss_daemon}
install -m755 %{S:15} $RPM_BUILD_ROOT/etc/init.d/%{hv_fcopy_daemon}
ln -sfvbn ../../etc/init.d/%{hv_fcopy_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_fcopy_daemon}
%endif
%files
@@ -289,6 +292,8 @@ then
%{insserv_force_if_yast %{hv_kvp_daemon}}
echo "Enabling %{hv_vss_daemon} on '${product_name}' from '${board_vendor}'"
%{insserv_force_if_yast %{hv_vss_daemon}}
echo "Enabling %{hv_fcopy_daemon} on '${product_name}' from '${board_vendor}'"
%{insserv_force_if_yast %{hv_fcopy_daemon}}
%endif
fi
@@ -298,6 +303,7 @@ fi
%else
%stop_on_removal %{hv_kvp_daemon}
%stop_on_removal %{hv_vss_daemon}
%stop_on_removal %{hv_fcopy_daemon}
%endif
%postun