aboutsummaryrefslogtreecommitdiff
blob: 28270b179a91c8713d7aa9129a6e2b1b4bd5727d (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
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

#EAPI=0

inherit distutils

DESCRIPTION="Command-line tools for interacting with Amazon EC2 and S3 API-compatible Web services using the REST/Query API"
HOMEPAGE="http://open.eucalyptus.com"
SRC_URI="http://open.eucalyptus.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://eucalyptussoftware.com/downloads/releases/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc64"
IUSE=""
DEPEND=">=dev-python/boto-1.9d 
 >=dev-lang/python-2.5
 >=dev-python/m2crypto-0.19.1"

RDEPEND="${DEPEND}"

DOCS="${S}/COPYING 
  ${S}/CHANGELOG
  ${S}/README
  ${S}/INSTALL"

src_compile() {
	emake build || die "emake failed"
}

src_install() {
	cd "${S}/euca2ools"
	distutils_src_install
	cd "${S}/bin"
	for tool in *; do
		newbin ${tool} ${tool}
	done

	# Install the manpages 
	if [[ -d ${S}/man ]]; then
		doman ${S}/man/* || die "doman"
	fi
}

pkg_postinst(){
	einfo ""
	einfo " Euca2ools use cryptographic credentials for authentication.  Two
	types of credentials are issued by EC2- and S3-compatible services: x509
	certificates and keys.  While some commands only require the latter, it is
	best to always specify both types of credentials."

	einfo ""
	einfo " Furthermore, unless the front end Web services reside on
	'localhost', the URLs of the EC2- and S3-compatible service endpoints must
	also be specified."
	einfo ""
	einfo "If you are running Euca2ools against Eucalyptus, sourcing the
	\"eucarc\" file that is included as part of the credentials zip-file that
	you downloaded from the Eucalyptus Web interface should be enough to set up
	all of the above variables correctly."
	einfo ""	
	einfo "For more information please refer to the:"
	einfo "   * --help option of the individual commands,"
	einfo "   * check the man pages for each command,"
	einfo "   * consult the local documentation at /usr/share/doc/$P,"
	einfo "   *consult http://open.eucalyptus.com/wiki/Documentation."
	einfo ""
}