2012-04-19 15:30:26 +02:00
|
|
|
#Maintainer: Michel Blanc <mblanc@erasme.org>
|
|
|
|
pkgname=ansible-git
|
|
|
|
pkgver=20120419
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A radically simple deployment, model-driven configuration management, and command execution framework"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/ansible/ansible"
|
|
|
|
license=('GPL3')
|
2012-04-19 19:26:41 +02:00
|
|
|
depends=('python2' 'python2-yaml' 'python-paramiko>=1.7.7' 'python2-jinja' 'python-simplejson')
|
|
|
|
makedepends=('git' 'asciidoc' 'fakeroot')
|
2012-04-19 15:30:26 +02:00
|
|
|
|
|
|
|
_gitroot="https://github.com/ansible/ansible"
|
|
|
|
_gitname="ansible"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"
|
|
|
|
msg "Connecting to GIT server...."
|
|
|
|
|
|
|
|
if [ -d $_gitname ] ; then
|
|
|
|
cd $_gitname && git pull origin
|
|
|
|
msg "The local files are updated."
|
|
|
|
else
|
|
|
|
git clone $_gitroot $_gitname
|
|
|
|
fi
|
|
|
|
|
|
|
|
msg "GIT checkout done or server timeout"
|
|
|
|
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
|
|
|
|
mkdir -p ${pkgdir}/usr/share/ansible
|
|
|
|
cp ./library/* ${pkgdir}/usr/share/ansible/
|
|
|
|
python setup.py install -O1 --root=${pkgdir}
|
|
|
|
|
2012-09-21 19:01:35 +02:00
|
|
|
install docs/man/man1/*.1 ${pkgdir}/usr/share/man/man1/
|
2012-04-19 15:30:26 +02:00
|
|
|
|
2012-09-21 19:01:35 +02:00
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/*.1
|
2012-04-19 15:30:26 +02:00
|
|
|
}
|