[app-emulation/qemu-guest-agent] version bump to 4.2
This commit is contained in:
11
app-emulation/qemu-guest-agent/files/qemu-ga-systemd.service
Normal file
11
app-emulation/qemu-guest-agent/files/qemu-ga-systemd.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=QEMU Guest Agent
|
||||
BindTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device
|
||||
After=dev-virtio\x2dports-org.qemu.guest_agent.0.device
|
||||
|
||||
[Service]
|
||||
ExecStart=-/usr/bin/qemu-ga
|
||||
Restart=always
|
||||
RestartSec=0
|
||||
|
||||
[Install]
|
||||
@@ -0,0 +1,2 @@
|
||||
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", \
|
||||
TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"
|
||||
11
app-emulation/qemu-guest-agent/files/qemu-ga.conf-r1
Normal file
11
app-emulation/qemu-guest-agent/files/qemu-ga.conf-r1
Normal file
@@ -0,0 +1,11 @@
|
||||
# Specifies the transport method used to communicate to QEMU on the host side
|
||||
# Default: virtio-serial
|
||||
#GA_METHOD="virtio-serial"
|
||||
|
||||
# Specifies the device path for the communications back to QEMU on the host
|
||||
# Default: /dev/virtio-ports/org.qemu.guest_agent.0
|
||||
#GA_PATH="/dev/virtio-ports/org.qemu.guest_agent.0"
|
||||
|
||||
# Additional options to qemu-guest-agent such as --fsfreeze-hook
|
||||
# See qemu-ga --help for more info
|
||||
#GA_OPTIONS="-F/etc/qemu/fsfreeze-hook"
|
||||
24
app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
Normal file
24
app-emulation/qemu-guest-agent/files/qemu-ga.init-r1
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
start() {
|
||||
GA_METHOD=${GA_METHOD:-virtio-serial}
|
||||
GA_PATH=${GA_PATH:-/dev/virtio-ports/org.qemu.guest_agent.0}
|
||||
|
||||
ebegin "Starting QEMU Guest Agent"
|
||||
|
||||
start-stop-daemon --start --pidfile /run/qemu-ga.pid \
|
||||
--exec /usr/bin/qemu-ga -- -m ${GA_METHOD} -p ${GA_PATH} \
|
||||
-l /var/log/qemu-ga.log -d -f /run/qemu-ga.pid -t /run ${GA_OPTIONS}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping QEMU Guest Agent"
|
||||
|
||||
start-stop-daemon --stop --pidfile /run/qemu-ga.pid
|
||||
|
||||
eend $?
|
||||
}
|
||||
9
app-emulation/qemu-guest-agent/files/qemu-ga.logrotate
Normal file
9
app-emulation/qemu-guest-agent/files/qemu-ga.logrotate
Normal file
@@ -0,0 +1,9 @@
|
||||
/var/log/qemu-ga.log {
|
||||
weekly
|
||||
missingok
|
||||
rotate 4
|
||||
compress
|
||||
delaycompress
|
||||
copytruncate
|
||||
minsize 100k
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
https://bugs.gentoo.org/580924
|
||||
|
||||
Linux C libs are moving away from implicit header pollution with sys/types.h
|
||||
|
||||
--- a/include/qemu/osdep.h
|
||||
+++ b/include/qemu/osdep.h
|
||||
@@ -78,6 +78,10 @@ extern int daemon(int, int);
|
||||
#include <assert.h>
|
||||
#include <signal.h>
|
||||
|
||||
+#ifdef __linux__
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef __OpenBSD__
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
Reference in New Issue
Block a user