xen: drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 05:05:08 +02:00
parent 541bcf4066
commit 57df1f1364
2 changed files with 1 additions and 44 deletions

View File

@ -1,38 +0,0 @@
#!/sbin/runscript
#
# Script for starting xend in dom0 kernels.
#
command=/usr/sbin/xend
pidfile=/var/run/xend.pid
depend()
{
need localmount
}
start()
{
if test -d /proc/xen; then
modprobe -q xen-evtchn || eend $? "Failed to load xen-evtchn module!"
if ! test -d /proc/xen/capabilities && \
! grep ' xenfs$' /proc/filesystems >/dev/null && \
! grep '^xenfs ' /proc/mounts >/dev/null; then
ebegin "Mounting xenfs for xend"
mount -t xenfs xenfs /proc/xen
eend $?
fi
ebegin "Starting xend"
${command} start
eend $?
else
eerror "xend needs dom0 support, aborting"
fi
}
stop()
{
ebegin "Stopping xend"
${command} stop
eend $?
}

View File

@ -1,7 +1,7 @@
# Template file for 'xen'
pkgname=xen
version=4.1.1
revision=1
revision=2
wrksrc=xen-${version}
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
build_style=custom-install
@ -19,7 +19,6 @@ nostrip=yes
pycompile_module="xen grub"
subpackages="xen-devel"
openrc_services="xend default true"
conf_files="
/etc/default/xendomains
@ -98,10 +97,6 @@ do_install()
make DESTDIR=${DESTDIR} install-xen install-tools
# Remove upstream xend and use our own.
rm -f ${DESTDIR}/etc/init.d/xend
vinstall ${FILESDIR}/xend.rc 755 etc/init.d xend
# Remove unneeded stuff.
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64