2010-02-23 22:56:13 +00:00
|
|
|
# Template file for 'xen'
|
|
|
|
pkgname=xen
|
2011-01-10 11:03:00 +00:00
|
|
|
version=4.0.1
|
2010-04-09 09:50:25 +00:00
|
|
|
wrksrc=xen-${version}
|
|
|
|
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
2011-01-10 11:03:00 +00:00
|
|
|
build_style=custom-install
|
2010-02-23 22:56:13 +00:00
|
|
|
short_desc="Xen Hypervisor and Utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-01-10 11:03:00 +00:00
|
|
|
checksum=6e6d1d29400db93cb8095e034138aa8748b1bd4cffb4d3fd07af4ba15c918873
|
2010-02-23 22:56:13 +00:00
|
|
|
long_desc="
|
|
|
|
This package provides the official Xen Hypervisor and related utilities
|
|
|
|
for starting/stopping/accessing unprivileged domains (domUs)."
|
|
|
|
|
2011-01-10 11:03:00 +00:00
|
|
|
broken_as_needed=yes
|
2010-02-23 22:56:13 +00:00
|
|
|
nostrip=yes
|
|
|
|
subpackages="xen-devel"
|
2010-04-16 20:09:33 +00:00
|
|
|
openrc_services="xend default true"
|
2010-02-23 22:56:13 +00:00
|
|
|
|
|
|
|
conf_files="
|
2011-01-10 11:03:00 +00:00
|
|
|
/etc/sysconfig/xend
|
2010-02-23 22:56:13 +00:00
|
|
|
/etc/sysconfig/xendomains
|
2011-01-10 11:03:00 +00:00
|
|
|
/etc/xen/xm-config.xml"
|
2010-02-23 22:56:13 +00:00
|
|
|
|
|
|
|
Add_dependency run glibc
|
2011-01-10 11:03:00 +00:00
|
|
|
Add_dependency run libuuid
|
2010-02-23 22:56:13 +00:00
|
|
|
Add_dependency run e2fsprogs-libs
|
|
|
|
Add_dependency run bzip2
|
|
|
|
Add_dependency run zlib
|
2011-01-10 11:03:00 +00:00
|
|
|
Add_dependency run liblzma
|
2010-02-23 22:56:13 +00: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-01-10 11:03:00 +00:00
|
|
|
|
2010-02-23 22:56:13 +00: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 11:03:00 +00:00
|
|
|
Add_dependency build libuuid-devel
|
|
|
|
Add_dependency build liblzma-devel
|
2010-02-23 22:56:13 +00:00
|
|
|
Add_dependency build dev86
|
2010-02-25 06:47:01 +00:00
|
|
|
Add_dependency build acpica-utils
|
2010-02-23 22:56:13 +00:00
|
|
|
|
2011-01-10 11:03:00 +00:00
|
|
|
Add_dependency full python
|
|
|
|
Add_dependency full net-tools # Requires ifconfig
|
|
|
|
Add_dependency full iproute2 # Requires ip
|
|
|
|
Add_dependency full bridge-utils # Required brctl
|
2010-04-16 20:09:33 +00:00
|
|
|
|
2011-01-10 11:03:00 +00:00
|
|
|
do_build()
|
|
|
|
{
|
2010-02-23 22:56:13 +00:00
|
|
|
install -d ${DESTDIR}
|
|
|
|
cd ${DESTDIR} && ln -sf . install
|
2011-01-10 13:35:11 +00: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 11:03:00 +00:00
|
|
|
cd ${wrksrc} && make ${makejobs} DISTDIR=${DESTDIR} xen tools
|
|
|
|
}
|
2010-02-23 22:56:13 +00:00
|
|
|
|
2011-01-10 11:03:00 +00:00
|
|
|
do_install()
|
|
|
|
{
|
2010-02-23 22:56:13 +00: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 11:03:00 +00:00
|
|
|
make DESTDIR=${DESTDIR} install-xen install-tools
|
|
|
|
|
2010-02-23 22:56:13 +00:00
|
|
|
# Remove upstream xend and use our own.
|
|
|
|
rm -f ${DESTDIR}/etc/init.d/xend
|
|
|
|
install -m755 ${FILESDIR}/xend.rc ${DESTDIR}/etc/init.d/xend
|
2011-01-10 13:35:11 +00:00
|
|
|
|
2010-02-23 22:56:13 +00:00
|
|
|
# Remove unneeded stuff.
|
|
|
|
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64
|
2011-01-10 13:35:11 +00:00
|
|
|
|
|
|
|
# Install grub2 Xen detection.
|
|
|
|
install -D -m755 ${FILESDIR}/grub.d_09_xen \
|
|
|
|
${DESTDIR}/etc/grub.d/09_xen
|
2010-02-23 22:56:13 +00:00
|
|
|
}
|