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
|
|
|
|
# Nice to have: libseccomp libiscsi libusb usbredir
|
2013-04-07 21:42:10 +02:00
|
|
|
|
|
|
|
name=qemu-all
|
2014-08-08 22:11:40 +02:00
|
|
|
version=2.1.0
|
2014-08-28 20:19:58 +02:00
|
|
|
release=2
|
|
|
|
source=(http://wiki.qemu.org/download/qemu-$version.tar.bz2 fix-trim-ide.patch)
|
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
|
2014-08-28 20:19:58 +02:00
|
|
|
cd $name-$version
|
|
|
|
# fix TRIM passthrough for IDE devices
|
|
|
|
patch -p1 -i $SRC/fix-trim-ide.patch
|
2014-04-16 17:52:19 +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
|
|
|
# fix include issues with nspr
|
|
|
|
echo 'QEMU_CFLAGS+=-I/usr/include/nspr' >> libcacard/Makefile
|
|
|
|
make ${MAKEFLAGS:=}
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
make qemu.1 qemu-img.1 qemu-nbd.8
|
|
|
|
install -D -m 644 qemu.1 $PKG/usr/man/man1/qemu.1
|
|
|
|
install -D -m 644 qemu-img.1 $PKG/usr/man/man1/qemu-img.1
|
|
|
|
install -D -m 644 qemu-nbd.8 $PKG/usr/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
|
|
|
}
|