xen: drop openrc support.
This commit is contained in:
parent
541bcf4066
commit
57df1f1364
2 changed files with 1 additions and 44 deletions
|
@ -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 $?
|
|
||||||
}
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'xen'
|
# Template file for 'xen'
|
||||||
pkgname=xen
|
pkgname=xen
|
||||||
version=4.1.1
|
version=4.1.1
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc=xen-${version}
|
wrksrc=xen-${version}
|
||||||
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
@ -19,7 +19,6 @@ nostrip=yes
|
||||||
|
|
||||||
pycompile_module="xen grub"
|
pycompile_module="xen grub"
|
||||||
subpackages="xen-devel"
|
subpackages="xen-devel"
|
||||||
openrc_services="xend default true"
|
|
||||||
|
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/default/xendomains
|
/etc/default/xendomains
|
||||||
|
@ -98,10 +97,6 @@ do_install()
|
||||||
|
|
||||||
make DESTDIR=${DESTDIR} install-xen install-tools
|
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.
|
# Remove unneeded stuff.
|
||||||
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64
|
rm -f ${DESTDIR}/install ${DESTDIR}/usr/lib64
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue