blob: ff0c3fc5cd3357dbb0d29b660ac1bb87897df806 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Exp $
inherit eutils versionator
MY_PV=$(replace_version_separator 2 '-')
DESCRIPTION="Amazon EC2 AMI Tools"
HOMEPAGE="http://developer.amazonwebservices.com/connect/entry.jspa?entryID=368&ref=featured"
SRC_URI="http://s3.amazonaws.com/ec2-downloads/${PN}-${MY_PV}.zip"
KEYWORDS="~x86 ~amd64"
SLOT="0"
LICENSE="as-is"
IUSE=""
S=${WORKDIR}/${PN}-${MY_PV}
DEPEND="app-arch/unzip"
RDEPEND="dev-lang/ruby
net-misc/rsync
net-misc/curl"
src_install () {
dodir /opt/${PN}
insinto /opt/${PN}/etc
doins -r etc/*
insinto /opt/${PN}/lib
doins -r lib/*
exeinto /opt/${PN}/bin
doexe bin/*
rm -rf ${D}/opt/${PN}/bin/*.cmd
dodir /etc/env.d
echo "PATH=/opt/${PN}/bin" > ${D}/etc/env.d/99${PN}
echo "EC2_AMITOOL_HOME=/opt/${PN}" >> ${D}/etc/env.d/99${PN}
}
|