2 # henning mueller <henning@orgizm.net>
8 pkgdesc='Command-line tools for interacting with Amazon EC2 and S3 API-compatible Web services using the REST/Query API.'
10 url=http://open.eucalyptus.com
12 depends=(python2 python-boto python-m2crypto)
13 makedepends=(python2 help2man python-boto python-m2crypto)
15 http://eucalyptussoftware.com/downloads/releases/$pkgname-$pkgver.tar.gz
18 a835e8fabd5875a5c8dbcba1bf89d402
22 # Create needed directories in $pkgdir.
25 usr/lib/python2.7/site-packages/$pkgname \
27 etc/bash_completion.d \
30 cd $srcdir/$pkgname-$pkgver
32 # Change shebang lines for python2.
33 find . -type f | xargs sed -i "s:/python:/python2:"
35 # Edit the connections module name as it should be lowercase
36 for action in upload delete download; do
37 sed -i "s/import Connection/import connection/" \
38 bin/euca-$action-bundle
41 # Edit the euca2ools module to correctly connect
42 sed -i "s/return boto.s3.Connection(/return boto.s3.connection.S3Connection(/" \
43 $pkgname/$pkgname/__init__.py
45 # Copy python module over to python module dir.
46 cp $pkgname/$pkgname/* \
47 $pkgdir/usr/lib/python2.7/site-packages/$pkgname
53 # Copy bash completion script.
55 $pkgdir/etc/bash_completion.d
57 # Generate and copy man pages.
60 $pkgdir/usr/share/man/man1