2010-02-23 23:56:13 +01:00
|
|
|
# Template file for 'xen'
|
|
|
|
pkgname=xen
|
2012-01-31 11:07:58 +01:00
|
|
|
version=4.1.2
|
2010-04-09 11:50:25 +02:00
|
|
|
wrksrc=xen-${version}
|
2012-07-11 23:39:47 +02:00
|
|
|
revision=1
|
2012-05-23 20:58:45 +02:00
|
|
|
broken_as_needed=yes
|
|
|
|
nostrip=yes
|
|
|
|
pycompile_module="xen grub"
|
|
|
|
subpackages="xen-devel"
|
2012-05-23 18:26:56 +02:00
|
|
|
depends="iproute2 bridge-utils"
|
2012-07-11 23:39:47 +02:00
|
|
|
makedepends="which lzo-devel openssl-devel e2fsprogs-devel zlib-devel gnutls-devel
|
|
|
|
libbluetooth-devel pciutils-devel libX11-devel libXext-devel SDL-devel MesaLib-devel
|
|
|
|
ncurses-devel liblzma-devel python-devel dev86 acpica-utils wget git"
|
2012-05-23 20:58:45 +02:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
|
|
|
makedepends="${makedepends} gcc-multilib"
|
|
|
|
fi
|
2010-02-23 23:56:13 +01:00
|
|
|
short_desc="Xen Hypervisor and Utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-08 00:22:30 +02:00
|
|
|
homepage="http://xen.org"
|
|
|
|
license="GPL-2"
|
2012-07-11 23:39:47 +02:00
|
|
|
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
2012-01-31 11:07:58 +01:00
|
|
|
checksum=7d9c93057cf480d3f1efa792b19285a84fa3c06060ea5c5c453be00887389b0d
|
2010-02-23 23:56:13 +01:00
|
|
|
long_desc="
|
|
|
|
This package provides the official Xen Hypervisor and related utilities
|
|
|
|
for starting/stopping/accessing unprivileged domains (domUs)."
|
|
|
|
|
2012-01-31 11:07:58 +01:00
|
|
|
make_dirs="
|
|
|
|
/var/run/xenstored 755 root root
|
|
|
|
/var/run/xend/boot 755 root root
|
|
|
|
/var/lib/xenstored 755 root root
|
|
|
|
/var/lib/xen/xenpaging 755 root root
|
|
|
|
/var/xen/dump 755 root root
|
|
|
|
/var/log/xen 755 root root
|
|
|
|
/var/lock/subsys 755 root root
|
|
|
|
/etc/xen/auto 755 root root"
|
|
|
|
|
2010-02-23 23:56:13 +01:00
|
|
|
conf_files="
|
2011-07-11 19:57:23 +02:00
|
|
|
/etc/default/xendomains
|
|
|
|
/etc/default/xencommons
|
|
|
|
/etc/xen/xm-config.xml
|
|
|
|
/etc/xen/xl.conf
|
|
|
|
/etc/xen/xend-config.sxp
|
|
|
|
/etc/xen/xend-pci-quirks.sxp
|
|
|
|
/etc/xen/xend-pci-permissive.sxp"
|
2010-02-23 23:56:13 +01:00
|
|
|
|
2012-01-31 11:07:58 +01:00
|
|
|
do_build() {
|
2010-02-23 23:56:13 +01:00
|
|
|
install -d ${DESTDIR}
|
|
|
|
cd ${DESTDIR} && ln -sf . install
|
2011-11-08 11:56:17 +01:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2011-01-10 14:35:11 +01:00
|
|
|
install -d ${DESTDIR}/usr/lib
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
|
|
|
|
fi
|
2011-01-10 12:03:00 +01:00
|
|
|
cd ${wrksrc} && make ${makejobs} DISTDIR=${DESTDIR} xen tools
|
|
|
|
}
|
2010-02-23 23:56:13 +01:00
|
|
|
|
2012-01-31 11:07:58 +01:00
|
|
|
do_install() {
|
2011-11-08 11:56:17 +01:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2010-02-23 23:56:13 +01:00
|
|
|
install -d ${DESTDIR}/usr/lib
|
|
|
|
cd ${DESTDIR}/usr && ln -s lib lib64 && cd ${wrksrc}
|
|
|
|
fi
|
|
|
|
|
2011-01-10 12:03:00 +01:00
|
|
|
make DESTDIR=${DESTDIR} install-xen install-tools
|
2012-01-31 11:07:58 +01:00
|
|
|
rm -f ${DESTDIR}/usr/lib/lib
|
2011-01-10 12:03:00 +01:00
|
|
|
|
2010-02-23 23:56:13 +01:00
|
|
|
# Remove unneeded stuff.
|
|
|
|
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64
|
2011-07-11 19:57:23 +02:00
|
|
|
|
|
|
|
# Move example config files into correct directory.
|
|
|
|
vmkdir usr/share/examples/xen
|
|
|
|
mv ${DESTDIR}/etc/xen/xmexample* ${DESTDIR}/usr/share/examples/xen
|
|
|
|
mv ${DESTDIR}/etc/xen/cpupool ${DESTDIR}/usr/share/examples/xen
|
2010-02-23 23:56:13 +01:00
|
|
|
}
|