blob: 6c1a02a6c71e679ec1f6113a23bc0bc3f1d9bf2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=1.0
pkgrel=1
pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework"
url="http://ansible.github.com/"
arch="noarch"
license="GPL3+"
depends="python py-yaml py-paramiko py-jinja2"
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-doc"
source="https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
mkdir -p "$pkgdir"/etc/$pkgname
install -m755 -D "$_builddir"/examples/hosts \
"$pkgdir"/etc/$pkgname/hosts || return 1
install -m755 -D "$_builddir"/examples/ansible.cfg \
"$pkgdir"/etc/$pkgname/ansible.cfg || return 1
mkdir -p "$pkgdir"/usr/share/$pkgname
install -m755 -D "$_builddir"/library/* \
"$pkgdir"/usr/share/$pkgname/ || return 1
_manpages="$pkgname-playbook.1 $pkgname.1"
for _manpage in $_manpages; do
install -m644 -D "$_builddir"/docs/man/man1/$_manpage \
"$pkgdir"/usr/share/man/man1/$_manpage || return 1
done
}
md5sums="9184385fdf22c3516ce831a229f7d945 v1.0.tar.gz"
sha256sums="6e9bba5eef2575284bfc533c0cc751468d7a07dd608845437c2f96fc57653a54 v1.0.tar.gz"
sha512sums="d5f84184cb7c0bc086ee726188d5e13533172cb219b6dde0a570b165540f08f64ca708b515e52fb95b1675755f1f90550a962c3b51fd085763389daa12ec971a v1.0.tar.gz"
|