/[gentoo-x86]/app-admin/ec2-api-tools/ec2-api-tools-1.6.0.0.ebuild
Gentoo

Contents of /app-admin/ec2-api-tools/ec2-api-tools-1.6.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jul 29 12:59:43 2012 UTC (2 years, 1 month ago) by lxnay
Branch: MAIN
CVS Tags: HEAD
version bump

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

1 lxnay 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.5.6.1.ebuild,v 1.1 2012/07/29 12:35:38 lxnay Exp $
4    
5     inherit versionator
6    
7     DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service"
8     HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88"
9     SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${PV}.zip"
10    
11     S=${WORKDIR}/${PN}-${PV}
12    
13     LICENSE="Amazon"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16     IUSE=""
17     DEPEND="app-arch/unzip"
18     RDEPEND="virtual/jre"
19     RESTRICT="mirror"
20    
21     src_unpack() {
22     unpack ${A}
23     cd "${S}" || die
24     find . -name '*.cmd' -delete || die
25     }
26    
27     src_install() {
28     dodir /opt/${PN}
29     insinto /opt/${PN}/lib
30     doins -r "${S}"/lib/*
31     exeinto /opt/${PN}/bin
32     doexe "${S}"/bin/*
33    
34     dodir /etc/env.d
35     cat - > "${T}"/99${PN} <<EOF
36     EC2_HOME=/opt/${PN}
37     PATH=/opt/${PN}/bin
38     ROOTPATH=/opt/${PN}/bin
39     EOF
40     doenvd "${T}"/99${PN}
41    
42     dodoc THIRDPARTYLICENSE.TXT
43     }
44    
45     pkg_postinst() {
46     ewarn "Remember to run: env-update && source /etc/profile if you plan"
47     ewarn "to use these tools in a shell before logging out (or restarting"
48     ewarn "your login manager)"
49     elog ""
50     elog ""
51     elog "You need to put the following in your ~/.bashrc replacing the"
52     elog "values with the full paths to your key and certificate."
53     elog ""
54     elog " export EC2_PRIVATE_KEY=/path/to/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
55     elog " export EC2_CERT=/path/to/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
56     }

  ViewVC Help
Powered by ViewVC 1.1.20