2012-04-19 15:30:26 +02:00
|
|
|
#Maintainer: Michel Blanc <mblanc@erasme.org>
|
|
|
|
pkgname=ansible-git
|
2013-05-24 21:40:38 +02:00
|
|
|
pkgver=1.1.912.gedb6a68
|
2013-05-15 19:57:42 +02:00
|
|
|
pkgver(){
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
git describe --tags --long | sed 's/^v//;s/-/./g'
|
|
|
|
}
|
2013-01-23 21:06:00 +01:00
|
|
|
pkgrel=1
|
2014-01-28 17:38:52 +01:00
|
|
|
pkgdesc="A radically simple IT automation"
|
2012-04-19 15:30:26 +02:00
|
|
|
arch=('any')
|
2014-01-28 17:38:52 +01:00
|
|
|
url="http://www.ansible.com"
|
2012-04-19 15:30:26 +02:00
|
|
|
license=('GPL3')
|
2013-01-31 18:19:32 +01:00
|
|
|
depends=('python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml')
|
2012-04-19 19:26:41 +02:00
|
|
|
makedepends=('git' 'asciidoc' 'fakeroot')
|
2013-05-31 18:53:52 +02:00
|
|
|
optdepends=('python2-pyzmq: needed for fireball mode'
|
|
|
|
'python2-pyasn1: needed for fireball mode'
|
|
|
|
'python2-crypto: needed for fireball mode'
|
|
|
|
'python2-keyczar: needed for fireball mode')
|
2012-11-16 10:07:42 +01:00
|
|
|
conflicts=('ansible')
|
2013-05-24 21:40:38 +02:00
|
|
|
provides=('ansible')
|
2013-05-15 19:57:42 +02:00
|
|
|
source=("$pkgname::git://github.com/ansible/ansible.git"
|
|
|
|
"python-binary.diff")
|
|
|
|
md5sums=("SKIP" "ab81876d8d4c86c27d137e3d86c25a3a")
|
2013-05-24 21:43:15 +02:00
|
|
|
backup=('etc/ansible/ansible.cfg')
|
2012-04-19 15:30:26 +02:00
|
|
|
|
2013-05-15 19:57:42 +02:00
|
|
|
prepare(){
|
|
|
|
cd "$srcdir/$pkgname"
|
|
|
|
patch -p1 -i "$srcdir/python-binary.diff"
|
|
|
|
}
|
2012-04-19 15:30:26 +02:00
|
|
|
build() {
|
2013-05-15 19:57:42 +02:00
|
|
|
cd "$srcdir/$pkgname"
|
2012-04-19 15:30:26 +02:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-05-15 19:57:42 +02:00
|
|
|
cd "$srcdir/$pkgname"
|
2012-04-19 15:30:26 +02:00
|
|
|
|
2013-05-15 19:57:42 +02:00
|
|
|
mkdir -p "${pkgdir}/usr/share/ansible"
|
|
|
|
cp -dpr --no-preserve=ownership ./library/* "${pkgdir}/usr/share/ansible/"
|
|
|
|
cp -dpr --no-preserve=ownership ./examples "${pkgdir}/usr/share/ansible"
|
2013-01-03 20:54:13 +01:00
|
|
|
|
2013-05-15 19:57:42 +02:00
|
|
|
python2 setup.py install -O1 --root="$pkgdir"
|
2012-04-19 15:30:26 +02:00
|
|
|
|
2013-06-18 23:29:28 +02:00
|
|
|
install -D examples/ansible.cfg "$pkgdir/etc/ansible/ansible.cfg"
|
2013-05-24 21:43:15 +02:00
|
|
|
|
|
|
|
install -D README.md "$pkgdir/usr/share/doc/ansible/README.md"
|
|
|
|
install -D COPYING "$pkgdir/usr/share/doc/ansible/COPYING"
|
|
|
|
install -D CHANGELOG.md "$pkgdir/usr/share/doc/ansible/CHANGELOG.md"
|
|
|
|
install -D CONTRIBUTING.md "$pkgdir/usr/share/doc/ansible/CONTRIBUTING.md"
|
|
|
|
install -D RELEASES.txt "$pkgdir/usr/share/doc/ansible/RELEASES.txt"
|
|
|
|
|
2013-05-15 19:57:42 +02: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"
|
|
|
|
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 15:30:26 +02:00
|
|
|
}
|