diff options
Diffstat (limited to 'main/xen/APKBUILD')
-rw-r--r-- | main/xen/APKBUILD | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD index 9377c6d25..d4b6e5d85 100644 --- a/main/xen/APKBUILD +++ b/main/xen/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=xen pkgver=4.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="Xen hypervisor" url="http://www.xen.org/" arch="x86_64" @@ -15,7 +15,8 @@ depends_dev="openssl-dev python-dev e2fsprogs-dev gettext zlib-dev ncurses-dev e2fsprogs-dev" makedepends="$depends_dev autoconf automake libtool" install="" -subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-hypervisor" +subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-hypervisor + py-$pkgname:_py" source="http://bits.xensource.com/oss-xen/release/$pkgver/$pkgname-$pkgver.tar.gz xsa108.patch @@ -178,6 +179,32 @@ hypervisor() { mv "$pkgdir"/boot "$subpkgdir"/ } +_py() { + pkdesc="Python bindings and tools for Xen" + depends= + mkdir -p "$subpkgdir"/usr/lib/xen/bin \ + "$subpkgdir"/usr/bin \ + "$subpkgdir"/usr/sbin \ + || return 1 + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/bin/xencons \ + "$pkgdir"/usr/bin/xentrace_format \ + "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/sbin/xenmon.py \ + "$pkgdir"/usr/sbin/xen-ringwatch \ + "$pkgdir"/usr/sbin/xen-python-path \ + "$subpkgdir"/usr/sbin/ || return 1 + mv "$pkgdir"/usr/lib/xen/bin/pygrub \ + "$pkgdir"/usr/lib/xen/bin/xenpvnetboot \ + "$subpkgdir"/usr/lib/xen/bin/ || return 1 + + # verify we dont have any python deps in main package left + if find "$pkgdir" -type f -print 0 | xargs -0 file --mime-type \ + | grep python; then + return 1 + fi +} + md5sums="1868433f393503000877d15cd4e93d15 xen-4.4.1.tar.gz 1f66f6c52941309c825f60e1bf144987 xsa108.patch de1a3db370b87cfb0bddb51796b50315 qemu-coroutine-gthread.patch |