@ -1,14 +1,11 @@
# Maintainer: Michel Blanc <mblanc@erasme.org>
# Maintainer: Michel Blanc <mblanc@erasme.org>
pkgname = ansible-git
pkgname = ansible-git
pkgver = 1.1.912.gedb6a68
pkgver = 1.1.3403.g5cd97e8
pkgver( ) {
cd " $srcdir / $pkgname "
git describe --tags --long | sed 's/^v//;s/-/./g'
}
pkgrel = 1
pkgrel = 1
pkgdesc = "A radically simple IT automation"
pkgdesc = 'A radically simple IT automation'
arch = ( 'any' )
arch = ( 'any' )
url = "http://www.ansible.com"
url = 'http://www.ansible.com'
license = ( 'GPL3' )
license = ( 'GPL3' )
depends = ( 'python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml' )
depends = ( 'python2' 'python2-paramiko' 'python2-jinja' 'python2-yaml' )
makedepends = ( 'git' 'asciidoc' 'fakeroot' )
makedepends = ( 'git' 'asciidoc' 'fakeroot' )
@ -18,26 +15,26 @@ optdepends=('python2-pyzmq: needed for fireball mode'
'python2-keyczar: needed for fireball mode' )
'python2-keyczar: needed for fireball mode' )
conflicts = ( 'ansible' )
conflicts = ( 'ansible' )
provides = ( 'ansible' )
provides = ( 'ansible' )
source = ( " $pkgname ::git://github.com/ansible/ansible.git "
"python-binary.diff" )
md5sums = ( "SKIP" "ab81876d8d4c86c27d137e3d86c25a3a" )
backup = ( 'etc/ansible/ansible.cfg' )
backup = ( 'etc/ansible/ansible.cfg' )
source = ( $pkgname ::git://github.com/ansible/ansible.git)
md5sums = ( 'SKIP' )
prepare( ) {
pkgver( ) {
cd " $srcdir / $pkgname "
cd $pkgname
patch -p1 -i " $srcdir /python-binary.diff "
git describe --long | sed 's/^v//;s/-/./g'
}
}
build( ) {
build( ) {
cd " $srcdir / $pkgname "
cd $pkgname
make
make PYTHON = python2
}
}
package( ) {
package( ) {
cd " $srcdir / $pkgname "
cd $pkgname
mkdir -p " ${ pkgdir} /usr/share/ansible "
mkdir -p " $ pkgdir/usr/share/ansible "
cp -dpr --no-preserve= ownership ./library/* " ${ pkgdir} /usr/share/ansible/ "
cp -dpr --no-preserve= ownership ./library/* " $ pkgdir/usr/share/ansible/ "
cp -dpr --no-preserve= ownership ./examples " ${ pkgdir} /usr/share/ansible "
cp -dpr --no-preserve= ownership ./examples " $ pkgdir/usr/share/ansible "
python2 setup.py install -O1 --root= " $pkgdir "
python2 setup.py install -O1 --root= " $pkgdir "
@ -49,8 +46,8 @@ package() {
install -D CONTRIBUTING.md " $pkgdir /usr/share/doc/ansible/CONTRIBUTING.md "
install -D CONTRIBUTING.md " $pkgdir /usr/share/doc/ansible/CONTRIBUTING.md "
install -D RELEASES.txt " $pkgdir /usr/share/doc/ansible/RELEASES.txt "
install -D RELEASES.txt " $pkgdir /usr/share/doc/ansible/RELEASES.txt "
install -D docs/man/man1/ansible.1 " ${ pkgdir} /usr/share/man/man1/ansible.1 "
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-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-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 "
install -D docs/man/man1/ansible-doc.1 " $ pkgdir/usr/share/man/man1/ansible-doc.1 "
}
}