diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-02-21 11:39:38 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-02-21 11:39:38 -0200 |
commit | 415e6b0a686989d0000a82ba8404d4ab9cd1e6b7 (patch) | |
tree | 4c78f30103549386aa7f645c7f2623c181ce0572 /kernels/xen/PKGBUILD | |
parent | 8446919c3950deb73699302e1c33cdc05b7d4add (diff) |
kernels/xe-guest-utilities
Diffstat (limited to 'kernels/xen/PKGBUILD')
-rw-r--r-- | kernels/xen/PKGBUILD | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/kernels/xen/PKGBUILD b/kernels/xen/PKGBUILD new file mode 100644 index 000000000..e1796106a --- /dev/null +++ b/kernels/xen/PKGBUILD @@ -0,0 +1,99 @@ +#Mantainer M0Rf30 +#Contributor WaxyMouthfeel +# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy> +pkgname=xen +pkgver=4.1.2 +pkgrel=2 +pkgdesc="Xen 4 (hypervisor and tools)" +arch=(i686 x86_64) +url="http://xen.org/" +license="GPL" +depends=('xz-utils' 'bzip2' 'iproute' 'bridge-utils' 'python2' 'sdl' 'zlib' 'e2fsprogs' 'pkgconfig' 'gnutls' 'lzo2' 'glibc') +[ "$CARCH" == "x86_64" ] && depends=(${depends} 'lib32-glibc') +optdepends=('xen-docs: Xen Official Documentation') +makedepends=('dev86' 'bin86' 'ocaml-findlib' 'iasl') +conflicts=('xen4' 'xen3' 'xen-hv-tools' 'libxen4') +provides=('xen') +backup=('etc/xen/xend-config.sxp' 'etc/xen/xend-pci-permissive.sxp' 'etc/xen/xend-pci-quirks.sxp') +options=(!strip) +optional=(xen-docs) +source=(http://bits.xensource.com/oss-xen/release/${pkgver}/xen-${pkgver}.tar.gz + 09_xen + xen.patch + parabolainit.patch + dom0_xz_decompression.patch + 24341.patch + 24344.patch + 24345.patch) + +build() { + + + cd $srcdir/xen-${pkgver} + + patch -p1 -i ../xen.patch + patch -p1 -i ../parabolainit.patch + patch -p1 -i ../dom0_xz_decompression.patch + patch -p1 -i ../24341.patch + patch -p1 -i ../24344.patch + patch -p1 -i ../24345.patch + +unset CFLAGS LDFLAGS + +make PYTHON=python2 DESTDIR=$pkgdir install-xen +make PYTHON=python2 DESTDIR=$pkgdir install-tools +#make PYTHON=python2 DESTDIR=$pkgdir install-stubdom + + sed -i 's#XENDOM_CONFIG=/etc/sysconfig/xendomains#XENDOM_CONFIG=/etc/conf.d/xendomains#' $pkgdir/etc/init.d/xendomains + sed -i "s#touch /var/lock/subsys/xend#mkdir -p /var/lock/subsys\n touch /var/lock/subsys/xend#" $pkgdir/etc/init.d/xend + + [ -d $pkgdir/usr/lib64 ] && ( cd $pkgdir/usr && cp -R lib64/* lib/ && rm -R lib64 ) + ( cd $pkgdir/etc && mv init.d rc.d ) || return 1 + rm -f $pkgdir/usr/share/man/man1/qemu-img.1* \ + $pkgdir/usr/share/man/man1/qemu.1* + # First experiment to generate grub2.cfg entry + mkdir -p $pkgdir/etc/grub.d + chmod +x $srcdir/09_xen + cp $srcdir/09_xen $pkgdir/etc/grub.d + + ############ kill unwanted stuff ############ + +# stubdom: newlib +rm -rf $pkgdir/usr/*-xen-elf + +# hypervisor symlinks +rm -rf $pkgdir/boot/xen-4.1.gz +rm -rf $pkgdir/boot/xen-4.gz +rm -rf $pkgdir/boot/xen.gz + +# silly doc dir fun +rm -fr $pkgdir/usr/share/doc/xen +rm -rf $pkgdir/usr/share/doc/qemu + +# Pointless helper +rm -f $pkgdir/usr/sbin/xen-python-path + +# qemu stuff (unused or available from upstream) +rm -rf $pkgdir/usr/share/xen/man +rm -rf $pkgdir/usr/bin/qemu-*-xen +for file in bios.bin openbios-sparc32 openbios-sparc64 ppc_rom.bin \ + pxe-e1000.bin pxe-ne2k_pci.bin pxe-pcnet.bin pxe-rtl8139.bin \ + vgabios.bin vgabios-cirrus.bin video.x openbios-ppc bamboo.dtb +do + rm -f $pkgdir/usr/share/xen/qemu/$file +done + +# adhere to Static Library Packaging Guidelines +rm -rf $pkgdir/usr/lib/*.a + + +} + +md5sums=('73561faf3c1b5e36ec5c089b5db848ad' + '8d50beba46ffd89a3b959176245b676e' + 'f149bae1a6b420e49c51b9f3a74338a4' + '7a1ed81ecc828037724bb3280058c9fc' + '4aebccf16b578ed97aa8bab945011f35' + '1b0c05a555bc99fc8416dd52b6c6ae95' + 'b6225be5bec3fe462f9166f9fde9c347' + 'd282946a2873a78b2b2c3944571eb2fe') |