1 |
commit: 8b7f2d5be41e7e7141599cbadabe6a85d66801d9 |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 25 15:52:33 2016 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 25 15:52:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/ultrabug.git/commit/?id=8b7f2d5b |
7 |
|
8 |
new app-admin/ec2-api-tools |
9 |
|
10 |
app-admin/ec2-api-tools/Manifest | 2 + |
11 |
.../ec2-api-tools/ec2-api-tools-1.6.9.0.ebuild | 51 ++++++++++++++++++++++ |
12 |
2 files changed, 53 insertions(+) |
13 |
|
14 |
diff --git a/app-admin/ec2-api-tools/Manifest b/app-admin/ec2-api-tools/Manifest |
15 |
new file mode 100644 |
16 |
index 0000000..41613e4 |
17 |
--- /dev/null |
18 |
+++ b/app-admin/ec2-api-tools/Manifest |
19 |
@@ -0,0 +1,2 @@ |
20 |
+DIST ec2-api-tools-1.6.9.0.zip 14583310 SHA256 16e4a7c8d050615ef675fcbea2bfee0015109135fafc85dcb33829119d8d9f3b SHA512 7133a7dabe83189f66ec043672afa4e62d2487a810fc8116d39010e3e56d524d2bed5cf92d9b516bd9ed263ef068ec35f5a1fe8fb358eb5a0c31ea116eb5abd6 WHIRLPOOL 929636fb3543584e7ed940daf9f4ab27d92df40dcb9c0fd0f47687e68dde2a7eb01f2bdf148eac15d0977894795ef3342d5f40afccf4d07ca401747d1f1fbfd6 |
21 |
+EBUILD ec2-api-tools-1.6.9.0.ebuild 1515 SHA256 a16c5695347c09a5589623559065cce517e8457562e43f1a596a64c178c19feb SHA512 185669c1b23167cc4f272abc56369925eaaa876478adca84d38df8294204c7c400c3f14d18c872700437de8329bb3ff9f91e39e248c7f470d0ae019ca2ccde83 WHIRLPOOL 810295154aa6ced34ec719a696e82400e2aacef96f4978b6b6c3b410fe1b8d20567a8290260a0b82a4118b548b070efbad6ff811a1208d46449fee16c9cb57a2 |
22 |
|
23 |
diff --git a/app-admin/ec2-api-tools/ec2-api-tools-1.6.9.0.ebuild b/app-admin/ec2-api-tools/ec2-api-tools-1.6.9.0.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..6e5e5c5 |
26 |
--- /dev/null |
27 |
+++ b/app-admin/ec2-api-tools/ec2-api-tools-1.6.9.0.ebuild |
28 |
@@ -0,0 +1,51 @@ |
29 |
+# Copyright 1999-2013 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.6.7.2.ebuild,v 1.1 2013/04/26 21:06:55 tomwij Exp $ |
32 |
+ |
33 |
+EAPI="5" |
34 |
+ |
35 |
+inherit versionator |
36 |
+ |
37 |
+DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service" |
38 |
+HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88" |
39 |
+SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${PV}.zip" |
40 |
+ |
41 |
+S=${WORKDIR}/${PN}-${PV} |
42 |
+ |
43 |
+LICENSE="Amazon" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+RESTRICT="mirror" |
47 |
+ |
48 |
+DEPEND="app-arch/unzip" |
49 |
+RDEPEND="virtual/jre" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ find . -name '*.cmd' -delete || die "Failed to remove redundant cmd files." |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ exeinto /usr/bin |
57 |
+ doexe bin/* |
58 |
+ |
59 |
+ insinto /usr/lib |
60 |
+ doins lib/*.jar |
61 |
+ |
62 |
+ dodir /etc/env.d |
63 |
+ echo "EC2_HOME=/usr" > "${T}"/99${PN} || die "Failed to write configuration variable." |
64 |
+ doenvd "${T}"/99${PN} |
65 |
+ |
66 |
+ dodoc THIRDPARTYLICENSE.TXT |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ ewarn "Remember to run: env-update && source /etc/profile if you plan" |
71 |
+ ewarn "to use these tools in a shell before logging out (or restarting" |
72 |
+ ewarn "your login manager)" |
73 |
+ elog "" |
74 |
+ elog "You need to put the following in your ~/.bashrc replacing the" |
75 |
+ elog "values with the full paths to your key and certificate." |
76 |
+ elog "" |
77 |
+ elog " export EC2_PRIVATE_KEY=/path/to/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem" |
78 |
+ elog " export EC2_CERT=/path/to/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem" |
79 |
+} |