aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-09 13:55:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-09 13:55:46 +0000
commit0012ba7c5165d1d8bb45beaa0df24176a8c250c5 (patch)
tree2f1795ebe62fc5ed108039f4e4ae75d5ddcf4496
parent0ce588554409c2a50d047cfd6868bf2203fde8ca (diff)
downloadaports-0012ba7c5165d1d8bb45beaa0df24176a8c250c5.tar.bz2
aports-0012ba7c5165d1d8bb45beaa0df24176a8c250c5.tar.xz
main/xen: split out python bits into py-xen
so we dont need pull in python as dependency
-rw-r--r--main/xen/APKBUILD31
1 files changed, 29 insertions, 2 deletions
diff --git a/main/xen/APKBUILD b/main/xen/APKBUILD
index 9377c6d253..d4b6e5d852 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