From 5b2cc6efbf60cda7d620e7aed7f074a7a10fe89d Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Fri, 23 Nov 2007 12:45:00 +0000 Subject: Add missing init script. (Portage version: 2.1.3.19) --- app-emulation/ganeti/ChangeLog | 8 ++- app-emulation/ganeti/files/digest-ganeti-1.2_beta2 | 3 -- .../ganeti/files/digest-ganeti-1.2_beta2-r1 | 3 ++ app-emulation/ganeti/files/ganeti.initd | 56 +++++++++++++++++++++ app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild | 57 ++++++++++++++++++++++ app-emulation/ganeti/ganeti-1.2_beta2.ebuild | 57 ---------------------- 6 files changed, 123 insertions(+), 61 deletions(-) delete mode 100644 app-emulation/ganeti/files/digest-ganeti-1.2_beta2 create mode 100644 app-emulation/ganeti/files/digest-ganeti-1.2_beta2-r1 create mode 100644 app-emulation/ganeti/files/ganeti.initd create mode 100644 app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild delete mode 100644 app-emulation/ganeti/ganeti-1.2_beta2.ebuild (limited to 'app-emulation/ganeti') diff --git a/app-emulation/ganeti/ChangeLog b/app-emulation/ganeti/ChangeLog index fea0f43bc75a..51318c5e1422 100644 --- a/app-emulation/ganeti/ChangeLog +++ b/app-emulation/ganeti/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-irc/inspircd # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.1 2007/11/23 02:03:39 hansmi Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.2 2007/11/23 12:44:59 hansmi Exp $ + +*ganeti-1.2_beta2-r1 (23 Nov 2007) + + 23 Nov 2007; Michael Hanselmann +files/ganeti.initd, + -ganeti-1.2_beta2.ebuild, +ganeti-1.2_beta2-r1.ebuild: + Add missing init script. *ganeti-1.2_beta2 (23 Nov 2007) diff --git a/app-emulation/ganeti/files/digest-ganeti-1.2_beta2 b/app-emulation/ganeti/files/digest-ganeti-1.2_beta2 deleted file mode 100644 index a1a276b2d8c9..000000000000 --- a/app-emulation/ganeti/files/digest-ganeti-1.2_beta2 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 fad49a2a6051f8bf7c29ccc75ed7b6a6 ganeti-1.2b2.tar.gz 597033 -RMD160 6c603fecba78345b20dd00d6a8838dae45c55cfd ganeti-1.2b2.tar.gz 597033 -SHA256 90ac8076e2fbaef20a3387790c82a634958dc7a13204cc22f901079070b011a4 ganeti-1.2b2.tar.gz 597033 diff --git a/app-emulation/ganeti/files/digest-ganeti-1.2_beta2-r1 b/app-emulation/ganeti/files/digest-ganeti-1.2_beta2-r1 new file mode 100644 index 000000000000..a1a276b2d8c9 --- /dev/null +++ b/app-emulation/ganeti/files/digest-ganeti-1.2_beta2-r1 @@ -0,0 +1,3 @@ +MD5 fad49a2a6051f8bf7c29ccc75ed7b6a6 ganeti-1.2b2.tar.gz 597033 +RMD160 6c603fecba78345b20dd00d6a8838dae45c55cfd ganeti-1.2b2.tar.gz 597033 +SHA256 90ac8076e2fbaef20a3387790c82a634958dc7a13204cc22f901079070b011a4 ganeti-1.2b2.tar.gz 597033 diff --git a/app-emulation/ganeti/files/ganeti.initd b/app-emulation/ganeti/files/ganeti.initd new file mode 100644 index 000000000000..a6c9520491bb --- /dev/null +++ b/app-emulation/ganeti/files/ganeti.initd @@ -0,0 +1,56 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/files/ganeti.initd,v 1.1 2007/11/23 12:45:00 hansmi Exp $ + +depend() { + need localmount xend drbd + after bootmisc +} + +checkconfig() { + for fname in /var/lib/ganeti/ssconf_node_pass /var/lib/ganeti/server.pem + do + if [[ ! -f "$fname" ]] + then + eerror "Config file $fname not found, will not run." + return 1 + fi + done + + return 0 +} + +start() { + checkconfig || return 1 + + ebegin "Starting ganeti-master" + /usr/sbin/ganeti-master start + ret=$? + eend ${ret} + [[ "${ret}" != 0 ]] && return 1 + + ebegin "Starting ganeti-noded" + start-stop-daemon --start --quiet --exec /usr/sbin/ganeti-noded + ret=$? + eend ${ret} + [[ "${ret}" != 0 ]] && return 1 + + return 0 +} + +stop() { + ebegin "Stopping ganeti-noded" + start-stop-daemon --stop --quiet --name ganeti-noded + ret=$? + eend ${ret} + [[ "${ret}" != 0 ]] && return 1 + + ebegin "Stopping ganeti-master" + /usr/sbin/ganeti-master start + ret=$? + eend ${ret} + [[ "${ret}" != 0 ]] && return 1 + + return 0 +} diff --git a/app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild b/app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild new file mode 100644 index 000000000000..84ed22e56a02 --- /dev/null +++ b/app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-1.2_beta2-r1.ebuild,v 1.1 2007/11/23 12:44:59 hansmi Exp $ + +NEED_PYTHON=2.4 + +inherit python autotools eutils + +MY_P=${P/_beta/b} +S="${WORKDIR}/${MY_P}" + +DESCRIPTION="Ganeti is a virtual server management software tool built upon Xen" +HOMEPAGE="http://code.google.com/p/ganeti/" +SRC_URI="http://ganeti.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + >=app-emulation/xen-3.0 + dev-libs/openssl + dev-python/pyopenssl + dev-python/pyparsing + dev-python/simplejson + dev-python/twisted + net-analyzer/arping + net-misc/bridge-utils + net-misc/openssh + sys-apps/iproute2 + sys-cluster/drbd + sys-fs/lvm2 + sys-fs/mdadm +" + +src_unpack() { + unpack "${A}" + cd "${S}" + + eautoreconf +} + +src_compile() { + econf --localstatedir=/var --with-ssh-initscript=/etc/init.d/sshd || die + emake || die +} + +src_install() { + make DESTDIR="${D}" install || die + + newinitd "${FILESDIR}/ganeti.initd" ganeti + + keepdir /var/{lib,log,run}/ganeti/ + keepdir /srv/ganeti/{os,export}/ +} diff --git a/app-emulation/ganeti/ganeti-1.2_beta2.ebuild b/app-emulation/ganeti/ganeti-1.2_beta2.ebuild deleted file mode 100644 index 514f14d2ae77..000000000000 --- a/app-emulation/ganeti/ganeti-1.2_beta2.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-1.2_beta2.ebuild,v 1.1 2007/11/23 02:03:39 hansmi Exp $ - -NEED_PYTHON=2.4 - -inherit python autotools eutils - -MY_P=${P/_beta/b} -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="Ganeti is a virtual server management software tool built upon Xen" -HOMEPAGE="http://code.google.com/p/ganeti/" -SRC_URI="http://ganeti.googlecode.com/files/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86" -IUSE="" - -DEPEND="" -RDEPEND=" - >=app-emulation/xen-3.0 - dev-libs/openssl - dev-python/pyopenssl - dev-python/pyparsing - dev-python/simplejson - dev-python/twisted - net-analyzer/arping - net-misc/bridge-utils - net-misc/openssh - sys-apps/iproute2 - sys-cluster/drbd - sys-fs/lvm2 - sys-fs/mdadm -" - -src_unpack() { - unpack "${A}" - cd "${S}" - - eautoreconf -} - -src_compile() { - econf --localstatedir=/var --with-ssh-initscript=/etc/init.d/sshd || die - emake || die -} - -src_install() { - make DESTDIR="${D}" install || die - - newinitd "${FILESDIR}/ganeti.initd" ganeti - - keepdir /var/{lib,log,run}/ganeti/ - keepdir /srv/ganeti/{os,export}/ -} -- cgit v1.2.3-65-gdbad