add firewall service file for libvirt

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=126
This commit is contained in:
James Fehlig 2011-06-15 21:48:27 +00:00 committed by Git OBS Bridge
parent 0d77510e8c
commit 7d9e61dc29
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 13 14:50:32 CST 2011 - lidongyang@novell.com
- fate#311371 Enhance yast to configure live migration for
Xen and KVM
add firewall service file for libvirt
-------------------------------------------------------------------
Thu Jun 9 09:38:44 MDT 2011 - jfehlig@suse.de

View File

@ -170,6 +170,8 @@
%define with_network 0
%endif
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
BuildRequires: python-devel
BuildRequires: libxml2-devel
BuildRequires: xhtml-dtd
@ -342,6 +344,7 @@ Recommends: device-mapper
Source0: %{name}-%{version}.tar.bz2
Source1: libvirtd.init
Source2: libvirtd-relocation-server.fw
# Upstream patches
# Need to go upstream
Patch100: xen-name-for-devid.patch
@ -672,6 +675,10 @@ install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/init.d/libvirtd
ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT%{_sbindir}/rclibvirtd
%endif
ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT%{_sbindir}/rclibvirt-guests
#install firewall definitions format is described here:
#/usr/share/SuSEfirewall2/services/TEMPLATE
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_fwdefdir}/libvirtd-relocation-server
%clean
rm -rf $RPM_BUILD_ROOT
@ -777,6 +784,7 @@ fi
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_iohelper
%doc %{_mandir}/man8/libvirtd.8*
%endif
%config %{_fwdefdir}/libvirtd-relocation-server
%files client -f %{name}.lang
%defattr(-, root, root)

View File

@ -0,0 +1,3 @@
## Name: Libvirtd Relocation Server
## Description: Enables libvirtd plain relocation service
TCP="49152:49215"