From 785a3cadfeeef7d301c803e6f422720bfd0bf8ce Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 14 Jan 2009 14:03:32 +0000 Subject: testing/kvm: new aport --- testing/kvm/APKBUILD | 33 +++++++++++++++++++++++++++++++++ testing/kvm/kvm-82-uclibc.patch | 14 ++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 testing/kvm/APKBUILD create mode 100644 testing/kvm/kvm-82-uclibc.patch diff --git a/testing/kvm/APKBUILD b/testing/kvm/APKBUILD new file mode 100644 index 0000000000..ccac7e5ed9 --- /dev/null +++ b/testing/kvm/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Natanael Copa +pkgname=kvm +pkgver=83 +pkgrel=0 +pkgdesc="kernel-based virtual machine" +url="http://kvm.qumranet.com" +license='GPL' +depends="uclibc" +makedepends="ncurses-dev" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + kvm-82-uclibc.patch + " +subpackages="" + +build() { + cd "$srcdir/$pkgname-$pkgver" + for i in ../*.patch; do + msg "Applying $i" + patch -p1 < $i || return 1; + done + + ./configure --prefix=/usr \ + --disable-gfx-check \ + --disable-sdl \ + --qemu-ldflags=-nopie + + make libkvm || return 1 + make qemu || return 1 + make DESTDIR="$pkgdir"/ kcmd="#" install +} + +md5sums="dfb3cc36029d84e83c5006c600337754 kvm-83.tar.gz +c439025cbfe89b35c2ae78aa481eb93f kvm-82-uclibc.patch" diff --git a/testing/kvm/kvm-82-uclibc.patch b/testing/kvm/kvm-82-uclibc.patch new file mode 100644 index 0000000000..488be77d8d --- /dev/null +++ b/testing/kvm/kvm-82-uclibc.patch @@ -0,0 +1,14 @@ +--- kvm-82.orig/qemu/configure Wed Jan 14 13:40:28 2009 ++++ kvm-82/qemu/configure Wed Jan 14 13:41:28 2009 +@@ -1068,7 +1068,10 @@ + cat > $TMPC < + #include +-int main(void) { clockid_t id; return clock_gettime(id, NULL); } ++int main(void) { clockid_t id; timer_t tid; ++ return clock_gettime(id, NULL) + timer_delete(tid); ++} ++ + EOF + + rt=no -- cgit v1.2.3