2012-04-19 13:30:26 +00:00
|
|
|
#Maintainer: Michel Blanc <mblanc@erasme.org>
|
|
|
|
pkgname=ansible-git
|
2013-04-30 07:18:44 +00:00
|
|
|
pkgver=20130430
|
2013-01-23 20:06:00 +00:00
|
|
|
pkgrel=1
|
2012-04-19 13:30:26 +00:00
|
|
|
pkgdesc="A radically simple deployment, model-driven configuration management, and command execution framework"
|
|
|
|
arch=('any')
|
2013-01-05 15:46:50 +00:00
|
|
|
url="http://ansible.cc"
|
2012-04-19 13:30:26 +00:00
|
|
|
license=('GPL3')
|
2013-01-31 17:19:32 +00:00
|
|
|
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
|
2012-04-19 17:26:41 +00:00
|
|
|
makedepends=('git' 'asciidoc' 'fakeroot')
|
2012-11-16 09:07:42 +00:00
|
|
|
conflicts=('ansible')
|
|
|
|
source=("python-binary.diff")
|
2013-03-11 22:19:27 +00:00
|
|
|
md5sums=("ab81876d8d4c86c27d137e3d86c25a3a")
|
2012-04-19 13:30:26 +00: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"
|
|
|
|
|
2012-11-16 09:07:42 +00:00
|
|
|
|
2012-04-19 13:30:26 +00:00
|
|
|
cd "$srcdir/$_gitname"
|
2012-11-16 09:07:42 +00:00
|
|
|
patch -p1 -i $srcdir/python-binary.diff
|
2012-04-19 13:30:26 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_gitname"
|
|
|
|
|
|
|
|
mkdir -p ${pkgdir}/usr/share/ansible
|
2013-04-30 07:18:44 +00:00
|
|
|
cp -r ./library/* ${pkgdir}/usr/share/ansible/
|
2013-01-03 19:54:13 +00:00
|
|
|
cp -r ./examples ${pkgdir}/usr/share/ansible
|
|
|
|
|
2012-11-16 09:07:42 +00:00
|
|
|
python2 setup.py install -O1 --root=${pkgdir}
|
2012-04-19 13:30:26 +00:00
|
|
|
|
2012-11-16 09:07:42 +00:00
|
|
|
install -D docs/man/man1/ansible.1 ${pkgdir}/usr/share/man/man1/ansible.1
|
|
|
|
install -D docs/man/man1/ansible-playbook.1 ${pkgdir}/usr/share/man/man1/ansible-playbook.1
|
2013-01-09 16:28:55 +00:00
|
|
|
install -D docs/man/man1/ansible-pull.1 ${pkgdir}/usr/share/man/man1/ansible-pull.1
|
|
|
|
install -D docs/man/man1/ansible-doc.1 ${pkgdir}/usr/share/man/man1/ansible-doc.1
|
2012-04-19 13:30:26 +00:00
|
|
|
|
2012-11-16 09:07:42 +00:00
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible.1
|
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible-playbook.1
|
2013-01-09 16:28:55 +00:00
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible-pull.1
|
|
|
|
gzip -9 ${pkgdir}/usr/share/man/man1/ansible-doc.1
|
2012-04-19 13:30:26 +00:00
|
|
|
}
|