54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
# Copyright 1999-2010 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-1.2.9.ebuild,v 1.2 2010/07/06 16:59:58 arfrever Exp $
|
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
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=""
|
|
|
|
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
|
|
emake || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
|
|
newinitd "${FILESDIR}/ganeti.initd" ganeti
|
|
|
|
keepdir /var/{lib,log,run}/ganeti/
|
|
keepdir /srv/ganeti/{os,export}/
|
|
}
|