[Lunar-commits] <moonbase> qemu-kvm: a version of qemu which use the kvm support from the Linux kernel.
Florin Braescu
florin at lunar-linux.org
Sat Feb 26 17:41:45 CET 2011
commit 1cf36007b8aa55cd4164671fb5caf4a8a5cbd99d
Author: Florin Braescu <florin at lunar-linux.org>
Date: Sat Feb 26 18:41:45 2011 +0200
qemu-kvm: a version of qemu which use the kvm support from the Linux kernel.
---
aliases | 1 +
virtual/libvirt/DEPENDS | 2 +-
virtual/qemu-kvm/BUILD | 16 ++++++++++++++++
virtual/qemu-kvm/CONFIGURE | 37 +++++++++++++++++++++++++++++++++++++
virtual/qemu-kvm/CONFLICTS | 1 +
virtual/qemu-kvm/DEPENDS | 9 +++++++++
virtual/qemu-kvm/DETAILS | 14 ++++++++++++++
virtual/qemu/CONFLICTS | 2 +-
8 files changed, 80 insertions(+), 2 deletions(-)
diff --git a/aliases b/aliases
index 89415d3..0709699 100644
--- a/aliases
+++ b/aliases
@@ -16,3 +16,4 @@
%TEX:texlive teTeX
%JPEG:libjpeg-turbo jpeg
%GIF:giflib libungif
+%QEMU:qemu qemu-kvm
diff --git a/virtual/libvirt/DEPENDS b/virtual/libvirt/DEPENDS
index f3d11c0..a9fbfb1 100644
--- a/virtual/libvirt/DEPENDS
+++ b/virtual/libvirt/DEPENDS
@@ -7,5 +7,5 @@ optional_depends "avahi" "--with-avahi" "--without-avahi" "Advertise daem
optional_depends "PolicyKit" "--with-polkit" "--without-polkit" "Enable PolicyKit support"
optional_depends "cyrus-sasl" "--with-sasl" "--without-sasl" "Enable SASL Authentication"
optional_depends "netcf" "--with-netcf" "--without-netcf" "Enable configure host network interfaces"
-optional_depends "qemu" "--with-qemu" "--without-qemu" "Enable qemu/kvm support?"
+optional_depends "%QEMU" "--with-qemu" "--without-qemu" "Enable qemu/kvm support?"
optional_depends "virtualbox" "--with-vbox" "--without-vbox" "Enable virtualbox support?"
diff --git a/virtual/qemu-kvm/BUILD b/virtual/qemu-kvm/BUILD
new file mode 100644
index 0000000..d195f68
--- /dev/null
+++ b/virtual/qemu-kvm/BUILD
@@ -0,0 +1,16 @@
+(
+
+ unset CFLAGS
+
+ OPTS+=" --extra-ldflags=-L/usr/X11R6/lib"
+ OPTS+=" --target-list=$(echo $TARGETLIST | sed s/\ /,/g)"
+
+ ./configure --prefix=/usr \
+ $OPTS &&
+
+ default_make &&
+
+ # qemu-doc.html may not exist, but it will be ignored if that is the case
+ gather_docs TODO qemu-doc.html
+
+) > $C_FIFO 2>&1
diff --git a/virtual/qemu-kvm/CONFIGURE b/virtual/qemu-kvm/CONFIGURE
new file mode 100644
index 0000000..3b0a739
--- /dev/null
+++ b/virtual/qemu-kvm/CONFIGURE
@@ -0,0 +1,37 @@
+SUPPORTED_TARGETS="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user"
+
+make_targets_checklist() {
+ for target in $SUPPORTED_TARGETS; do
+ title=$target
+ echo "\"$target\" \"$title\" \"off\" "
+ done
+}
+
+select_targets() {
+ BACKTITLE="Qemu Target Configuration"
+ TITLE="Target Selection"
+ HELP="Select targes you want to build"
+ make_targets_checklist | xargs \
+ dialog --backtitle "$BACKTITLE" \
+ --title "$TITLE" \
+ --stdout \
+ --separate-output \
+ --checklist "$HELP" \
+ 0 0 0
+}
+
+if ! grep -q CONFIGURED $MODULE_CONFIG; then
+ if grep -q "TARGETLIST=" $MODULE_CONFIG; then
+ message "Selecting targets is optional"
+ fi
+
+ if query "Would you like to select arch targets? If not selected, all targets will be installed." y ; then
+ TARGETLIST=`select_targets`
+ TEMP=`grep -v "TARGETLIST=" $MODULE_CONFIG`
+ echo "$TEMP" > $MODULE_CONFIG
+ echo "TARGETLIST=\"$TARGETLIST\"" >> $MODULE_CONFIG
+ fi
+
+ echo "OPTS=\"\$OPTS $OPTS\"" >> $MODULE_CONFIG
+ echo "CONFIGURED=y" >> $MODULE_CONFIG
+fi
diff --git a/virtual/qemu-kvm/CONFLICTS b/virtual/qemu-kvm/CONFLICTS
new file mode 100644
index 0000000..32a17bf
--- /dev/null
+++ b/virtual/qemu-kvm/CONFLICTS
@@ -0,0 +1 @@
+conflicts qemu
\ No newline at end of file
diff --git a/virtual/qemu-kvm/DEPENDS b/virtual/qemu-kvm/DEPENDS
new file mode 100644
index 0000000..b416e90
--- /dev/null
+++ b/virtual/qemu-kvm/DEPENDS
@@ -0,0 +1,9 @@
+depends autoconf
+
+optional_depends alsa-lib "" "" "for ALSA sound support"
+optional_depends bluez "" "" "for bluetooth support"
+
+optional_depends SDL \
+ "" \
+ "--disable-sdl --disable-gfx-check" \
+ "for gui qemu support"
diff --git a/virtual/qemu-kvm/DETAILS b/virtual/qemu-kvm/DETAILS
new file mode 100644
index 0000000..594e4b7
--- /dev/null
+++ b/virtual/qemu-kvm/DETAILS
@@ -0,0 +1,14 @@
+ MODULE=qemu-kvm
+ VERSION=0.14.0
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE_URL=$SFORGE_URL/kvm
+ SOURCE_VFY=sha1:dba0b9484084374b6191608051f40e1991c54ea0
+ WEB_SITE=http://www.linux-kvm.com
+ ENTERED=20110226
+ UPDATED=20110226
+ SHORT="An improved version of qemu"
+
+cat << EOF
+The qemu-kvm is a version of qemu which makes a better use of kvm support
+from the LInux kernel.
+EOF
diff --git a/virtual/qemu/CONFLICTS b/virtual/qemu/CONFLICTS
index e3f0d0f..13be206 100644
--- a/virtual/qemu/CONFLICTS
+++ b/virtual/qemu/CONFLICTS
@@ -1 +1 @@
-conflicts kvm
+conflicts qemu-kvm
More information about the Lunar-commits
mailing list