blob: e1796106a07438ce138195659e58ac38b7e53ba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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')
|