[packages/qemu] - added qemu-pr-helper systemd files from Fedora

qboosh qboosh at pld-linux.org
Wed May 27 06:15:51 CEST 2020


commit cfb9a655e726de941cb3954b8caae7478af9cc73
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue May 26 17:42:58 2020 +0200

    - added qemu-pr-helper systemd files from Fedora

 qemu-pr-helper.service | 15 +++++++++++++++
 qemu-pr-helper.socket  |  9 +++++++++
 qemu.spec              |  9 ++++++++-
 3 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/qemu.spec b/qemu.spec
index 6f7d048..810055e 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -61,6 +61,8 @@ Source11:	%{name}-guest-agent.service
 Source12:	99-%{name}-guest-agent.rules
 Source13:	%{name}-guest-agent.init
 Source14:	%{name}-guest-agent.logrotate
+Source15:	%{name}-pr-helper.service
+Source16:	%{name}-pr-helper.socket
 Patch0:		%{name}-cflags.patch
 Patch1:		%{name}-whitelist.patch
 Patch2:		%{name}-user-execve.patch
@@ -1031,7 +1033,7 @@ build static \
 	--disable-nettle \
 	--disable-pie \
 	--disable-sdl \
-	--enable-slirp=internal \
+	--disable-slirp \
 	--disable-spice \
 	--disable-system \
 	--disable-tcmalloc \
@@ -1100,6 +1102,8 @@ install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
 
+cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
+
 # Install binfmt
 BINFMT_CPUS=" \
 %ifnarch %{ix86} %{x8664} x32
@@ -1219,6 +1223,7 @@ fi
 %triggerpostun common -- qemu-common < 1.6.1-4
 %systemd_trigger ksm.service
 %systemd_trigger ksmtuned.service
+%systemd_trigger qemu-pr-helper.service
 
 %post user
 %systemd_service_restart systemd-binfmt.service
@@ -1261,6 +1266,8 @@ fi
 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
 %{systemdunitdir}/ksm.service
 %{systemdunitdir}/ksmtuned.service
+%{systemdunitdir}/qemu-pr-helper.service
+%{systemdunitdir}/qemu-pr-helper.socket
 %attr(755,root,root) %{_bindir}/elf2dmp
 %attr(755,root,root) %{_bindir}/ivshmem-client
 %attr(755,root,root) %{_bindir}/ivshmem-server
diff --git a/qemu-pr-helper.service b/qemu-pr-helper.service
new file mode 100644
index 0000000..a1d27b0
--- /dev/null
+++ b/qemu-pr-helper.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Persistent Reservation Daemon for QEMU
+
+[Service]
+WorkingDirectory=/tmp
+Type=simple
+ExecStart=/usr/bin/qemu-pr-helper
+PrivateTmp=yes
+ProtectSystem=strict
+ReadWritePaths=/var/run
+RestrictAddressFamilies=AF_UNIX
+Restart=always
+RestartSec=0
+
+[Install]
diff --git a/qemu-pr-helper.socket b/qemu-pr-helper.socket
new file mode 100644
index 0000000..9d7c3e5
--- /dev/null
+++ b/qemu-pr-helper.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Persistent Reservation Daemon for QEMU
+
+[Socket]
+ListenStream=/run/qemu-pr-helper.sock
+SocketMode=0600
+
+[Install]
+WantedBy=multi-user.target
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qemu.git/commitdiff/1b60612d4a354271240d00bf1b24cbc693e348d8



More information about the pld-cvs-commit mailing list