void-packages/srcpkgs/xen/template

94 lines
2.6 KiB
Text
Raw Normal View History

# Template file for 'xen'
pkgname=xen
2012-01-31 10:07:58 +00:00
version=4.1.2
wrksrc=xen-${version}
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
short_desc="Xen Hypervisor and Utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xen.org"
license="GPL-2"
2012-01-31 10:07:58 +00:00
checksum=7d9c93057cf480d3f1efa792b19285a84fa3c06060ea5c5c453be00887389b0d
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
nostrip=yes
2011-07-11 17:57:23 +00:00
pycompile_module="xen grub"
subpackages="xen-devel"
2012-01-31 10:07:58 +00: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"
conf_files="
2011-07-11 17:57:23 +00: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"
Add_dependency run iproute2 # Requires ip
Add_dependency run bridge-utils # Required brctl
2011-01-10 11:03:00 +00:00
Add_dependency build gettext
Add_dependency build openssl-devel
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 libX11-devel
Add_dependency build libXext-devel
2012-01-30 23:58:06 +00:00
Add_dependency build SDL-devel
Add_dependency build MesaLib-devel
Add_dependency build ncurses-devel
2011-01-10 11:03:00 +00:00
Add_dependency build liblzma-devel
2011-07-11 17:57:23 +00:00
Add_dependency build python-devel
Add_dependency build dev86
Add_dependency build acpica-utils
2011-07-11 17:57:23 +00:00
Add_dependency build wget
Add_dependency build git
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
2011-07-11 17:57:23 +00:00
Add_dependency build gcc-multilib
fi
2012-01-31 10:07:58 +00:00
do_build() {
install -d ${DESTDIR}
cd ${DESTDIR} && ln -sf . install
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
}
2012-01-31 10:07:58 +00:00
do_install() {
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
2012-01-31 10:07:58 +00:00
rm -f ${DESTDIR}/usr/lib/lib
2011-01-10 11:03:00 +00:00
# Remove unneeded stuff.
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64
2011-07-11 17:57:23 +00: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
}