2013-12-10 11:01:16 +00:00
|
|
|
# Maintainer: Michel Blanc <mblanc@erasme.org>
|
2014-10-08 08:41:29 +00:00
|
|
|
# Contributor: Scott Hansen https://github.com/firecat53
|
2014-04-28 08:34:56 +00:00
|
|
|
# Contributor: Buce <dmbuce@gmail.com>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <b@bpiotrowski.pl>
|
|
|
|
# Contributor: cgtx <carl@carlgeorge.us>
|
|
|
|
# Contributor: Daniel Wallace <danielwallace@gtmanfred.com>
|
|
|
|
# Contributor: John Gosset <john.gosset@gmail.com>
|
|
|
|
# Contributor: Joshua Lund <josh@joshlund.com>
|
|
|
|
# Contributor: Matt Klich <matt.klich@readytalk.com>
|
|
|
|
# Contributor: Michael DeHaan <michael@ansible.com>
|
2013-12-10 11:01:16 +00:00
|
|
|
|
2012-04-19 13:30:26 +00:00
|
|
|
pkgname=ansible-git
|
2014-10-08 08:41:29 +00:00
|
|
|
pkgver=1.6.0.1835.ga1809a3
|
2013-01-23 20:06:00 +00:00
|
|
|
pkgrel=1
|
2017-10-05 12:36:12 +00:00
|
|
|
pkgdesc='Ansible IT Automation'
|
2012-04-19 13:30:26 +00:00
|
|
|
arch=('any')
|
2017-02-16 00:09:33 +00:00
|
|
|
url='https://www.ansible.com'
|
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')
|
2014-02-27 23:06:49 +00:00
|
|
|
optdepends=('python2-pyasn1: needed for accelerated mode'
|
|
|
|
'python2-crypto: needed for accelerated mode'
|
|
|
|
'python2-keyczar: needed for accelerated mode')
|
2012-11-16 09:07:42 +00:00
|
|
|
conflicts=('ansible')
|
2013-05-24 19:40:38 +00:00
|
|
|
provides=('ansible')
|
2013-05-24 19:43:15 +00:00
|
|
|
backup=('etc/ansible/ansible.cfg')
|
2017-10-03 19:16:25 +00:00
|
|
|
source=($pkgname::git+https://github.com/ansible/ansible.git)
|
2013-12-10 11:01:16 +00:00
|
|
|
md5sums=('SKIP')
|
2012-04-19 13:30:26 +00:00
|
|
|
|
2013-12-10 11:01:16 +00:00
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
git describe --long | sed 's/^v//;s/-/./g'
|
2013-05-15 17:57:42 +00:00
|
|
|
}
|
2013-12-10 11:01:16 +00:00
|
|
|
|
2012-04-19 13:30:26 +00:00
|
|
|
build() {
|
2013-12-10 11:01:16 +00:00
|
|
|
cd $pkgname
|
|
|
|
make PYTHON=python2
|
2012-04-19 13:30:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-12-10 11:01:16 +00:00
|
|
|
cd $pkgname
|
2012-04-19 13:30:26 +00:00
|
|
|
|
2014-02-18 14:54:13 +00:00
|
|
|
install -dm755 $pkgdir/usr/share/ansible
|
2013-12-10 11:01:16 +00:00
|
|
|
cp -dpr --no-preserve=ownership ./examples "$pkgdir/usr/share/ansible"
|
2013-01-03 19:54:13 +00:00
|
|
|
|
2013-05-15 17:57:42 +00:00
|
|
|
python2 setup.py install -O1 --root="$pkgdir"
|
2012-04-19 13:30:26 +00:00
|
|
|
|
2014-02-18 14:54:13 +00:00
|
|
|
install -Dm644 examples/ansible.cfg $pkgdir/etc/ansible/ansible.cfg
|
2013-05-24 19:43:15 +00:00
|
|
|
|
2014-02-18 14:54:13 +00:00
|
|
|
install -Dm644 README.md $pkgdir/usr/share/doc/ansible/README.md
|
|
|
|
install -Dm644 COPYING $pkgdir/usr/share/doc/ansible/COPYING
|
|
|
|
install -Dm644 CHANGELOG.md $pkgdir/usr/share/doc/ansible/CHANGELOG.md
|
2013-05-24 19:43:15 +00:00
|
|
|
|
2014-04-28 08:34:56 +00:00
|
|
|
install -dm755 ${pkgdir}/usr/share/man/man1
|
2014-02-09 12:45:37 +00:00
|
|
|
cp -dpr --no-preserve=ownership docs/man/man1/*.1 "$pkgdir/usr/share/man/man1"
|
2012-04-19 13:30:26 +00:00
|
|
|
}
|