diff options
author | Aron Griffis <agriffis@gentoo.org> | 2006-03-24 23:55:01 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2006-03-24 23:55:01 +0000 |
commit | 9cce6b394c7acea1edae1082a7d2102ab66a71c0 (patch) | |
tree | c3eb7455235f0004d1f484d522bf42daacbce334 /app-emulation/xen-tools/files | |
parent | Mark 3.4.3 stable on ia64 (diff) | |
download | historical-9cce6b394c7acea1edae1082a7d2102ab66a71c0.tar.gz historical-9cce6b394c7acea1edae1082a7d2102ab66a71c0.tar.bz2 historical-9cce6b394c7acea1edae1082a7d2102ab66a71c0.zip |
Split xen-tools from xen; this package installs xend and the tools, but not
the hypervisor or include files. Unify the release and snapshot ebuilds for
easier maintenance. Switch to a snapshot versioning scheme that keeps
release/snapshot versions in order. Add myself as an additional maintainer
in metadata.xml
Package-Manager: portage-2.1_pre5-r4
Diffstat (limited to 'app-emulation/xen-tools/files')
-rw-r--r-- | app-emulation/xen-tools/files/digest-xen-tools-3.0.1 | 3 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/digest-xen-tools-3.0.1_p9029 | 3 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/xend-conf | 7 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/xend-init | 42 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/xendomains-conf | 6 | ||||
-rw-r--r-- | app-emulation/xen-tools/files/xendomains-init | 68 |
6 files changed, 129 insertions, 0 deletions
diff --git a/app-emulation/xen-tools/files/digest-xen-tools-3.0.1 b/app-emulation/xen-tools/files/digest-xen-tools-3.0.1 new file mode 100644 index 000000000000..c7c0c449d579 --- /dev/null +++ b/app-emulation/xen-tools/files/digest-xen-tools-3.0.1 @@ -0,0 +1,3 @@ +MD5 d30f17294957d8c0234f8a4ce6d68671 xen-3.0.1-src.tgz 4631469 +RMD160 f68960aed74b7ceae3f7b435af05c273263363ee xen-3.0.1-src.tgz 4631469 +SHA256 4ea553ea07c46ba5cf53c693472f988eb644d85e1b2ed7a9c49a392eeb2733ad xen-3.0.1-src.tgz 4631469 diff --git a/app-emulation/xen-tools/files/digest-xen-tools-3.0.1_p9029 b/app-emulation/xen-tools/files/digest-xen-tools-3.0.1_p9029 new file mode 100644 index 000000000000..8d1f70052bf1 --- /dev/null +++ b/app-emulation/xen-tools/files/digest-xen-tools-3.0.1_p9029 @@ -0,0 +1,3 @@ +MD5 d8183137f5cffdb1078c675c8b05369e xen-unstable-9029.tar.bz2 3450223 +RMD160 8face26212998bfe5965ddbab4ced697a0d5fc61 xen-unstable-9029.tar.bz2 3450223 +SHA256 1a1871deda3cfd91b07eaf4d6263083ce7615d3999b44a56e689e46f3075ea86 xen-unstable-9029.tar.bz2 3450223 diff --git a/app-emulation/xen-tools/files/xend-conf b/app-emulation/xen-tools/files/xend-conf new file mode 100644 index 000000000000..ad59105b2087 --- /dev/null +++ b/app-emulation/xen-tools/files/xend-conf @@ -0,0 +1,7 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xend-conf,v 1.1 2006/03/24 23:55:01 agriffis Exp $ + +# set to YES to enable the web frontend to xend on port 8080. +# To change the port, edit /usr/lib/python/xen/sv/params.py +XENSV="NO" diff --git a/app-emulation/xen-tools/files/xend-init b/app-emulation/xen-tools/files/xend-init new file mode 100644 index 000000000000..891ab66b9b4b --- /dev/null +++ b/app-emulation/xen-tools/files/xend-init @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xend-init,v 1.1 2006/03/24 23:55:01 agriffis Exp $ + +opts="start stop status restart" + +depend() { + need net + before xendomains sshd ntpd nfs nfsmount rsyncd portmap dhcp +} + +await_daemons_up() { + for ((i=0; i<5; i++)); do + sleep 1 + /usr/sbin/xend status && return 0 + done + return 1 +} + +start() { + ebegin "Starting Xen control daemon" + /usr/sbin/xend start + /usr/sbin/xend status || await_daemons_up + eend $? +} + +stop() { + if [ "$(xm list | wc -l)" -gt 2 ]; then + ebegin " Stopping all domains" + /usr/sbin/xm shutdown --all --wait >/dev/null + eend $? + fi + + ebegin "Stopping Xen control daemon" + /usr/sbin/xend stop + eend $? +} + +status() { + /usr/sbin/xend status +} diff --git a/app-emulation/xen-tools/files/xendomains-conf b/app-emulation/xen-tools/files/xendomains-conf new file mode 100644 index 000000000000..bbc8ff6c3b0d --- /dev/null +++ b/app-emulation/xen-tools/files/xendomains-conf @@ -0,0 +1,6 @@ +# Directory of domain configs to automatically boot +AUTODIR=/etc/xen/auto + +# set to yes to run all auto 'xm create's in screen +# with logging to /var/log/xen-consoles/ +SCREEN="no" diff --git a/app-emulation/xen-tools/files/xendomains-init b/app-emulation/xen-tools/files/xendomains-init new file mode 100644 index 000000000000..41f5dce08c9d --- /dev/null +++ b/app-emulation/xen-tools/files/xendomains-init @@ -0,0 +1,68 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xendomains-init,v 1.1 2006/03/24 23:55:01 agriffis Exp $ + +opts="start stop status restart" + +depend() { + need xend + after dhcp +} + +get_domname() { + sed -ne 's/^[ \t]*name[ \t]*=[ \t]*"\([^"]*\)"/\1/p' $1 +} + +is_running() { + [ -n "`/usr/sbin/xm list | grep "^${1} "`" ] +} + +start() { + einfo "Starting ${AUTODIR} Xen domains" + if [[ ${SCREEN} == "yes" ]]; then + screen -d -m -S xen -t dom0 + screen -r xen -X zombie dr + logrotate -f /usr/share/xen/xen-consoles-logrotate + screen -r xen -X logfile /var/log/xen-consoles/%t + screen -r xen -X logfile flush 1 + screen -r xen -X deflog on + fi + # Create all domains with config files in AUTODIR. + for dom in $(ls ${AUTODIR}/* 2>/dev/null); do + name=$(get_domname ${dom}) + if ! is_running ${name} ; then + ebegin " Starting domain ${name}" + if [[ ${SCREEN} == "yes" ]]; then + screen -r xen -X screen -t ${name} xm create ${dom} -c + else + xm create --quiet ${dom} + fi + eend $? + else + einfo " Not Starting domain ${name} - allready running" + fi + done +} + +stop() { + einfo "Shutting down ${AUTODIR} Xen domains" + # Stop all domains with config files in AUTODIR. + for dom in $(ls ${AUTODIR}/* 2>/dev/null); do + name=$(get_domname ${dom}) + if is_running ${name} ; then + ebegin " Stopping domain ${name}" + xm shutdown --wait ${name} >/dev/null + eend $? + else + einfo " Not Stopping domain ${name} - not running" + fi + done + if [[ ${SCREEN} == "yes" ]]; then + screen -r xen -X quit + fi +} + +status() { + /usr/sbin/xm list +} |