commit 64389370af1dd6d68d4ca37b4309961ed4972de4 Author: Thomas Penteker <tek@serverop.de> Date: Fri Jun 28 23:42:24 2013 +0200 qemu-agent: initial import diff --git a/qemu-agent/.footprint b/qemu-agent/.footprint new file mode 100644 index 0000000..5359eb1 --- /dev/null +++ b/qemu-agent/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/qemu/ +-rwxr-xr-x root/root etc/qemu/fsfreeze-hook +drwxrwxr-x root/root etc/qemu/fsfreeze-hook.d/ +-rwxrwxr-x root/root etc/qemu/fsfreeze-hook.d/mysql-flush.sh.sample +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/qemu-agent +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/qemu-ga diff --git a/qemu-agent/.md5sum b/qemu-agent/.md5sum new file mode 100644 index 0000000..b1ab5df --- /dev/null +++ b/qemu-agent/.md5sum @@ -0,0 +1,2 @@ +b56e73bdcfdb214d5c68e13111aca96f qemu-1.5.1.tar.bz2 +9ccbefaec374e646820a0c28b28914dc qemu-agent diff --git a/qemu-agent/Pkgfile b/qemu-agent/Pkgfile new file mode 100644 index 0000000..b75528b --- /dev/null +++ b/qemu-agent/Pkgfile @@ -0,0 +1,33 @@ +# Description: Guest agent for qemu virtual guests +# URL: http://www.qemu.org +# Maintainer: Thomas Penteker, tek at serverop dot de + +name=qemu-agent +version=1.5.1 +release=1 +source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2 qemu-agent) + +build() { + ls + cd qemu-$version + ./configure --prefix=/usr \ + --cc="${CC:=gcc}" \ + --host-cc="${CC:=gcc}" \ + --sysconfdir=/etc \ + --disable-docs \ + --libexecdir=/usr/lib/qemu \ + --disable-system \ + --disable-user \ + --target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu \ + --enable-guest-agent + + # fix include issues with nspr + make ${MAKEFLAGS:=} qemu-ga + + install -d -m 755 $PKG/usr/bin + install qemu-ga $PKG/usr/bin/qemu-ga + install -d -m 755 $PKG/etc/qemu + install scripts/qemu-guest-agent/fsfreeze-hook $PKG/etc/qemu + cp -a scripts/qemu-guest-agent/fsfreeze-hook.d $PKG/etc/qemu + install -D -m 755 $SRC/qemu-agent $PKG/etc/rc.d/qemu-agent +} diff --git a/qemu-agent/qemu-agent b/qemu-agent/qemu-agent new file mode 100755 index 0000000..ddd8cd2 --- /dev/null +++ b/qemu-agent/qemu-agent @@ -0,0 +1,28 @@ +#!/bin/sh +# +# /etc/rc.d/qemu-agent: start/stop qemu guest agent +# + +case $1 in +start) + /usr/bin/qemu-ga + ;; +stop) + if [ -f /var/run/sshd.pid ]; then + kill $(< /var/run/sshd.pid) + rm -f /var/run/sshd.pid + else + killall -q /usr/sbin/sshd + fi + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file