diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-31 17:29:39 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-31 17:29:39 -0300 |
commit | 6f102d1647580e0bb9513c124b26a64c77da4f15 (patch) | |
tree | 0340f1f588be251183fe2b251bdba778f2c85c22 /pcr/nova | |
parent | 433900b14f11dc9ee55b72e8e5946bf47f65b636 (diff) | |
parent | b6cb10de275cea63bab0bee2a98342afa4fdc4ee (diff) | |
download | abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.gz abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.bz2 abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.zip |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'pcr/nova')
-rw-r--r-- | pcr/nova/PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pcr/nova/PKGBUILD b/pcr/nova/PKGBUILD new file mode 100644 index 000000000..181e5a626 --- /dev/null +++ b/pcr/nova/PKGBUILD @@ -0,0 +1,55 @@ +# Contributor: Josh Chase <jcjoshuachase@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=nova +pkgver=2012.1.2 +_clientname=python-novaclient +_clientver=2.8.0 +pkgrel=1.1 +pkgdesc="OpenStack cloud computing fabric controller" +arch=('any') +license=('custom') +url="https://launchpad.net/nova" +depends=('python2' + 'python2-cheetah' + 'python2-simplejson' + 'python2-prettytable' + 'python2-amqplib' + 'python2-carrot' + 'python2-lockfile' + 'python2-daemon' + 'python2-gflags' + 'python2-netaddr' + 'glance' + 'python2-suds' + 'python2-paramiko' + 'python2-feedparser' + 'python2-babel' ) +makedepends=('python2-distribute') +source=("https://launchpad.net/nova/essex/2012.1.2/+download/nova-2012.1.2.tar.gz" + "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") + +build() { + cd $srcdir + + find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ + -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + + + cd $srcdir/$_clientname-$_clientver + python2 setup.py build + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +package() { + cd $srcdir/$_clientname-$_clientver + python2 setup.py install --root=$pkgdir + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + + install -dm600 "$pkgdir"/etc/$pkgname + install -Dm600 etc/$pkgname/* "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |