2010-02-23 23:56:13 +01:00
|
|
|
# Template file for 'xen'
|
|
|
|
pkgname=xen
|
2011-07-08 00:22:30 +02:00
|
|
|
version=4.1.1
|
2011-10-11 05:05:08 +02:00
|
|
|
revision=2
|
2010-04-09 11:50:25 +02:00
|
|
|
wrksrc=xen-${version}
|
|
|
|
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
2011-01-10 12:03:00 +01:00
|
|
|
build_style=custom-install
|
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"
|
|
|
|
checksum=246289227507466b5da8b2d0da84a5b0e68a392527b16cde38898d0348890f5b
|
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)."
|
|
|
|
|
2011-01-10 12:03:00 +01:00
|
|
|
broken_as_needed=yes
|
2010-02-23 23:56:13 +01:00
|
|
|
nostrip=yes
|
2011-07-11 19:57:23 +02:00
|
|
|
|
2011-10-05 16:42:03 +02:00
|
|
|
pycompile_module="xen grub"
|
2010-02-23 23:56:13 +01:00
|
|
|
subpackages="xen-devel"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
Add_dependency run glibc
|
2011-01-10 12:03:00 +01:00
|
|
|
Add_dependency run libuuid
|
2010-02-23 23:56:13 +01:00
|
|
|
Add_dependency run e2fsprogs-libs
|
|
|
|
Add_dependency run bzip2
|
|
|
|
Add_dependency run zlib
|
2011-01-10 12:03:00 +01:00
|
|
|
Add_dependency run liblzma
|
2010-02-23 23:56:13 +01:00
|
|
|
Add_dependency run gnutls
|
|
|
|
Add_dependency run libbluetooth
|
|
|
|
Add_dependency run pciutils
|
|
|
|
Add_dependency run SDL
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run libXext
|
|
|
|
Add_dependency run MesaLib
|
|
|
|
Add_dependency run ncurses-libs
|
|
|
|
Add_dependency run libgcrypt
|
2011-07-11 19:57:23 +02:00
|
|
|
Add_dependency run lzo
|
|
|
|
Add_dependency run python
|
2011-07-08 00:22:30 +02:00
|
|
|
Add_dependency run iproute2 # Requires ip
|
|
|
|
Add_dependency run bridge-utils # Required brctl
|
2011-01-10 12:03:00 +01:00
|
|
|
|
2011-07-11 19:57:23 +02:00
|
|
|
Add_dependency build coreutils
|
2011-07-08 00:22:30 +02:00
|
|
|
Add_dependency build gettext
|
|
|
|
Add_dependency build openssl-devel
|
2010-02-23 23:56:13 +01:00
|
|
|
Add_dependency build e2fsprogs-devel
|
|
|
|
Add_dependency build bzip2-devel
|
|
|
|
Add_dependency build zlib-devel
|
|
|
|
Add_dependency build gnutls-devel
|
|
|
|
Add_dependency build libbluetooth-devel
|
|
|
|
Add_dependency build pciutils-devel
|
|
|
|
Add_dependency build SDL-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libXext-devel
|
|
|
|
Add_dependency build MesaLib-devel
|
|
|
|
Add_dependency build ncurses-devel
|
|
|
|
Add_dependency build libgcrypt-devel
|
2011-01-10 12:03:00 +01:00
|
|
|
Add_dependency build libuuid-devel
|
|
|
|
Add_dependency build liblzma-devel
|
2011-07-11 19:57:23 +02:00
|
|
|
Add_dependency build lzo-devel
|
|
|
|
Add_dependency build python-devel
|
2010-02-23 23:56:13 +01:00
|
|
|
Add_dependency build dev86
|
2010-02-25 07:47:01 +01:00
|
|
|
Add_dependency build acpica-utils
|
2011-07-11 19:57:23 +02:00
|
|
|
Add_dependency build wget
|
|
|
|
Add_dependency build git
|
2010-02-23 23:56:13 +01:00
|
|
|
|
2011-07-11 19:57:23 +02:00
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
Add_dependency build gcc-multilib
|
|
|
|
fi
|
2010-04-16 22:09:33 +02:00
|
|
|
|
2011-01-10 12:03:00 +01:00
|
|
|
do_build()
|
|
|
|
{
|
2010-02-23 23:56:13 +01:00
|
|
|
install -d ${DESTDIR}
|
|
|
|
cd ${DESTDIR} && ln -sf . install
|
2011-01-10 14:35:11 +01:00
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
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
|
|
|
|
2011-01-10 12:03:00 +01:00
|
|
|
do_install()
|
|
|
|
{
|
2010-02-23 23:56:13 +01:00
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
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
|
|
|
|
|
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
|
|
|
}
|