qemu-agent: initial import
This commit is contained in:
parent
a80e04a80a
commit
64389370af
10
qemu-agent/.footprint
Normal file
10
qemu-agent/.footprint
Normal file
@ -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
|
2
qemu-agent/.md5sum
Normal file
2
qemu-agent/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
b56e73bdcfdb214d5c68e13111aca96f qemu-1.5.1.tar.bz2
|
||||
9ccbefaec374e646820a0c28b28914dc qemu-agent
|
33
qemu-agent/Pkgfile
Normal file
33
qemu-agent/Pkgfile
Normal file
@ -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
|
||||
}
|
28
qemu-agent/qemu-agent
Executable file
28
qemu-agent/qemu-agent
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user