# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" 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 "" }