2013-04-07 21:42:10 +02:00
|
|
|
# Description: Fast CPU emulator and virtualizer for all supported platforms
|
|
|
|
# URL: http://www.qemu.org
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Lucas Hazel, lucas at die dot net dot au
|
2014-08-12 00:24:34 +02:00
|
|
|
# Depends on: libsdl glib
|
2014-09-17 21:30:54 +02:00
|
|
|
# Nice to have: libseccomp libiscsi libusb usbredir spice
|
2013-04-07 21:42:10 +02:00
|
|
|
|
|
|
|
name=qemu-all
|
2016-09-12 00:36:00 +02:00
|
|
|
version=2.7.0
|
|
|
|
release=1
|
|
|
|
source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2)
|
2013-04-07 21:42:10 +02:00
|
|
|
|
|
|
|
build() {
|
2014-04-20 20:57:58 +02:00
|
|
|
|
2013-04-07 21:42:10 +02:00
|
|
|
cd qemu-$version
|
2016-05-27 14:55:21 +02:00
|
|
|
|
2013-04-07 21:42:10 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--cc="${CC:=gcc}" \
|
|
|
|
--host-cc="${CC:=gcc}" \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--disable-docs \
|
2013-06-30 13:44:12 +02:00
|
|
|
--libexecdir=/usr/lib/qemu \
|
2013-11-29 20:58:34 +01:00
|
|
|
--disable-gtk \
|
|
|
|
--localstatedir=/var
|
2013-04-07 21:42:10 +02:00
|
|
|
|
2014-04-08 23:42:40 +02:00
|
|
|
# fix include issues with libcap
|
|
|
|
sed -i -e '/#include "qemu\/xattr.h"/d' \
|
|
|
|
-e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \
|
|
|
|
fsdev/virtfs-proxy-helper.c
|
|
|
|
|
2013-04-07 21:42:10 +02:00
|
|
|
make ${MAKEFLAGS:=}
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
make qemu.1 qemu-img.1 qemu-nbd.8
|
2016-04-14 23:17:02 +02:00
|
|
|
install -D -m 644 qemu.1 $PKG/usr/share/man/man1/qemu.1
|
|
|
|
install -D -m 644 qemu-img.1 $PKG/usr/share/man/man1/qemu-img.1
|
|
|
|
install -D -m 644 qemu-nbd.8 $PKG/usr/share/man/man8/qemu-nbd.8
|
2013-05-21 21:29:23 +02:00
|
|
|
|
2014-06-20 22:29:13 +02:00
|
|
|
install -d $PKG/etc/udev/rules.d/
|
|
|
|
echo 'KERNEL=="kvm", NAME="kvm", OWNER="root", GROUP="kvm", MODE="0660"' > \
|
|
|
|
$PKG/etc/udev/rules.d/60-kvm.rules
|
|
|
|
|
2013-05-21 21:29:23 +02:00
|
|
|
rm -rf $PKG/usr/share/locale
|
2013-04-07 21:42:10 +02:00
|
|
|
}
|