blob: 03a1b21cc207a7c452b4cd9fdddccd8dc2d85b74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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.0.ebuild,v 1.1 2007/12/19 22:06:01 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}/
}
|