summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2006-11-11 02:22:55 +0000
committerAlastair Tse <liquidx@gentoo.org>2006-11-11 02:22:55 +0000
commite1a92ec24aa589881a37f757faf8ace60cc6935b (patch)
tree4c023c539d41d4ae5b2d06afe7d0addf1b430efe /app-misc
parenta bunch of experimental python modules that are not well tested (diff)
downloadliquidx-e1a92ec24aa589881a37f757faf8ace60cc6935b.tar.gz
liquidx-e1a92ec24aa589881a37f757faf8ace60cc6935b.tar.bz2
liquidx-e1a92ec24aa589881a37f757faf8ace60cc6935b.zip
Adding Amazon EC2 AMI Tools
svn path=/; revision=86
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ec2-ami-tools/ec2-ami-tools-1.0.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/app-misc/ec2-ami-tools/ec2-ami-tools-1.0.ebuild b/app-misc/ec2-ami-tools/ec2-ami-tools-1.0.ebuild
new file mode 100644
index 0000000..c8b2a61
--- /dev/null
+++ b/app-misc/ec2-ami-tools/ec2-ami-tools-1.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-themes/redhat-artwork/redhat-artwork-0.243-r1.ebuild,v 1.8 2006/11/01 20:18:10 kloeri Exp $
+
+inherit eutils rpm
+
+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/ec2-ami-tools.noarch.rpm"
+LICENSE="as-is"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="dev-lang/ruby"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_install () {
+ cd ${S}
+
+ insinto /usr/lib/ruby/site_ruby
+ doins -r ${S}/usr/lib/site_ruby/*
+
+ insinto /etc
+ doins -r ${S}/etc/*
+
+ exeinto /usr/lib/aes/amiutil
+ doexe ${S}/usr/local/aes/amiutil/*
+
+ insinto /usr/bin
+ for exe in ${S}/usr/local/bin/*; do
+ if [ -h "${exe}" ]; then
+ target="$(basename `readlink ${exe}`)"
+ base="$(basename ${exe})"
+ ln -s /usr/lib/aes/amiutil/$target ${D}/usr/bin/${base}
+ fi
+ done
+
+ sed -i -e 's:site_ruby:ruby/site_ruby:' ${D}/usr/lib/aes/amiutil/*
+} \ No newline at end of file