From: | "Doug Goldstein (cardoe)" <cardoe@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-emulation/qemu-guest-agent/files: qemu-ga-systemd.udev qemu-ga.logrotate qemu-ga.conf qemu-ga-systemd.service qemu-ga.init |
Date: | Sun, 29 Jul 2012 00:03:34 |
Message-Id: | 20120728220005.81EDB2004B@flycatcher.gentoo.org |
1 | cardoe 12/07/28 22:00:05 |
2 | |
3 | Added: qemu-ga-systemd.udev qemu-ga.logrotate qemu-ga.conf |
4 | qemu-ga-systemd.service qemu-ga.init |
5 | Log: |
6 | Add separate ebuild for the QEMU guest agent so it can be used when Gentoo is a guest instead of installing the all of QEMU for just the guest. |
7 | |
8 | (Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.1 app-emulation/qemu-guest-agent/files/qemu-ga-systemd.udev |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga-systemd.udev?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga-systemd.udev?rev=1.1&content-type=text/plain |
15 | |
16 | Index: qemu-ga-systemd.udev |
17 | =================================================================== |
18 | SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", \ |
19 | TAG+"systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service" |
20 | |
21 | |
22 | |
23 | 1.1 app-emulation/qemu-guest-agent/files/qemu-ga.logrotate |
24 | |
25 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.logrotate?rev=1.1&view=markup |
26 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.logrotate?rev=1.1&content-type=text/plain |
27 | |
28 | Index: qemu-ga.logrotate |
29 | =================================================================== |
30 | /var/log/qemu-ga.log { |
31 | weekly |
32 | missingok |
33 | rotate 4 |
34 | compress |
35 | delaycompress |
36 | copytruncate |
37 | minsize 100k |
38 | } |
39 | |
40 | |
41 | |
42 | 1.1 app-emulation/qemu-guest-agent/files/qemu-ga.conf |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.conf?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.conf?rev=1.1&content-type=text/plain |
46 | |
47 | Index: qemu-ga.conf |
48 | =================================================================== |
49 | # Specifies the transport method used to communicate to QEMU on the host side |
50 | # Default: virtio-serial |
51 | #GA_METHOD="virtio-serial" |
52 | |
53 | # Specifies the device path for the communications back to QEMU on the host |
54 | # Default: /dev/virtio-ports/org.qemu.guest_agent.0 |
55 | #GA_PATH="/dev/virtio-ports/org.qemu.guest_agent.0" |
56 | |
57 | |
58 | |
59 | 1.1 app-emulation/qemu-guest-agent/files/qemu-ga-systemd.service |
60 | |
61 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga-systemd.service?rev=1.1&view=markup |
62 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga-systemd.service?rev=1.1&content-type=text/plain |
63 | |
64 | Index: qemu-ga-systemd.service |
65 | =================================================================== |
66 | [Unit] |
67 | Description=QEMU Guest Agent |
68 | BindTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device |
69 | After=dev-virtio\x2dports-org.qemu.guest_agent.0.device |
70 | |
71 | [Service] |
72 | ExecStart=-/usr/bin/qemu-ga |
73 | Restart=always |
74 | RestartSec=0 |
75 | |
76 | [Install] |
77 | |
78 | |
79 | |
80 | 1.1 app-emulation/qemu-guest-agent/files/qemu-ga.init |
81 | |
82 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.init?rev=1.1&view=markup |
83 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.init?rev=1.1&content-type=text/plain |
84 | |
85 | Index: qemu-ga.init |
86 | =================================================================== |
87 | #!/sbin/runscript |
88 | # Copyright 1999-2012 Gentoo Foundation |
89 | # Distributed under the terms of the GNU General Public License v2 |
90 | # $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-guest-agent/files/qemu-ga.init,v 1.1 2012/07/28 22:00:05 cardoe Exp $ |
91 | |
92 | depend() { |
93 | |
94 | } |
95 | |
96 | start() { |
97 | GA_METHOD=${GA_METHOD:-virtio-serial} |
98 | GA_PATH=${GA_PATH:-/dev/virtio-ports/org.qemu.guest_agent.0} |
99 | |
100 | ebegin "Starting QEMU Guest Agent" |
101 | |
102 | start-stop-daemon --start --pidfile /var/run/qemu-ga.pid \ |
103 | --exec /usr/bin/qemu-ga -- -m ${GA_METHOD} -p ${GA_PATH} \ |
104 | -l /var/log/qemu-ga.log -d |
105 | |
106 | eend $? |
107 | } |
108 | |
109 | stop() { |
110 | ebegin "Stopping QEMU Guest Agent" |
111 | |
112 | start-stop-daemon --stop --pidfile /var/run/qemu-ga.pid |
113 | |
114 | eend $? |
115 | } |