Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/ec2-api-tools: ChangeLog ec2-api-tools-1.3.46266.ebuild
Date: Thu, 28 Jan 2010 13:34:36
Message-Id: E1NaUVv-0006OK-4U@stork.gentoo.org
1 flameeyes 10/01/28 13:34:27
2
3 Modified: ChangeLog
4 Added: ec2-api-tools-1.3.46266.ebuild
5 Log:
6 Version bump, also don't use version for the install path and don't use symlinks to /usr/bin. This means that you won't need to re-source the profile at each upgrade, but just after the first install. And it won't pollute your inode space.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 app-admin/ec2-api-tools/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/ec2-api-tools/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 27 Sep 2009 12:36:32 -0000 1.3
23 +++ ChangeLog 28 Jan 2010 13:34:26 -0000 1.4
24 @@ -1,6 +1,15 @@
25 # ChangeLog for app-admin/ec2-api-tools
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v 1.3 2009/09/27 12:36:32 maekke Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ChangeLog,v 1.4 2010/01/28 13:34:26 flameeyes Exp $
30 +
31 +*ec2-api-tools-1.3.46266 (28 Jan 2010)
32 +
33 + 28 Jan 2010; Diego E. Pettenò <flameeyes@g.o>
34 + +ec2-api-tools-1.3.46266.ebuild:
35 + Version bump, also don't use version for the install path and don't use
36 + symlinks to /usr/bin. This means that you won't need to re-source the
37 + profile at each upgrade, but just after the first install. And it won't
38 + pollute your inode space.
39
40 27 Sep 2009; Markus Meier <maekke@g.o>
41 ec2-api-tools-1.3.36506.ebuild:
42
43
44
45 1.1 app-admin/ec2-api-tools/ec2-api-tools-1.3.46266.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.3.46266.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.3.46266.ebuild?rev=1.1&content-type=text/plain
49
50 Index: ec2-api-tools-1.3.46266.ebuild
51 ===================================================================
52 # Copyright 1999-2010 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-admin/ec2-api-tools/ec2-api-tools-1.3.46266.ebuild,v 1.1 2010/01/28 13:34:26 flameeyes Exp $
55
56 inherit versionator
57
58 EC2_VERSION=$(get_version_component_range 1-2)
59 EC2_PATCHLEVEL=$(get_version_component_range 3)
60
61 DESCRIPTION="These command-line tools serve as the client interface to the Amazon EC2 web service."
62 HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&categoryID=88"
63 SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${EC2_VERSION}-${EC2_PATCHLEVEL}.zip"
64
65 S=${WORKDIR}/${PN}-${EC2_VERSION}-${EC2_PATCHLEVEL}
66
67 LICENSE="Amazon"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE=""
71 DEPEND="app-arch/unzip"
72 RDEPEND="virtual/jre"
73
74 src_unpack() {
75 unpack ${A}
76 cd "${WORKDIR}/${PN}-${EC2_VERSION}-${EC2_PATCHLEVEL}"
77 find . -name *.cmd -exec rm {} \;
78 }
79
80 src_install() {
81 dodir /opt/${PN}
82 insinto /opt/${PN}/lib
83 doins -r "${S}"/lib/*
84 exeinto /opt/${PN}/bin
85 doexe "${S}"/bin/*
86
87 dodir /etc/env.d
88 cat - > "${T}"/99${PN} <<EOF
89 EC2_HOME=/opt/${PN}
90 PATH=/opt/${PN}/bin
91 EOF
92 doenvd "${T}"/99${PN}
93
94 dodoc THIRDPARTYLICENSE.TXT
95 }
96
97 pkg_postinst() {
98 ewarn "Remember to run: env-update && source /etc/profile if you plan"
99 ewarn "to use these tools in a shell before logging out (or restarting"
100 ewarn "your login manager)"
101 elog ""
102 elog ""
103 elog "You need to put the following in your ~/.bashrc replacing the"
104 elog "values with the full paths to your key and certificate."
105 elog " "
106 elog " export EC2_PRIVATE_KEY=/path/to/pk-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
107 elog " export EC2_CERT=/path/to/cert-HKZYKTAIG2ECMXYIBH3HXV4ZBZQ55CLO.pem"
108 }