Commit 0012ba7c authored by Natanael Copa's avatar Natanael Copa
Browse files

main/xen: split out python bits into py-xen

so we dont need pull in python as dependency
parent 0ce58855
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment