blob: ffe4a81345df95a18521182cdd27426ae5580317 (
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
55
56
57
58
59
60
|
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=2.1.4.0
pkgrel=0
pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework"
url="http://ansible.com"
arch="noarch"
license="GPL3+"
depends="python py-yaml py-paramiko py-jinja2 py-markupsafe"
makedepends="python-dev py-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::http://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz
"
# secfixes:
# 2.1.4.0-r0:
# - CVE-2016-9587
_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"/usr/share/man/man1
install -Dm644 "$_builddir"/docs/man/man1/*.1 \
"$pkgdir"/usr/share/man/man1/ || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples
for f in examples/*; do
install -m644 "${f}" "$pkgdir"/usr/share/doc/$pkgname/examples/
done
install -m644 README.md "$pkgdir"/usr/share/doc/$pkgname || return 1
install -m644 lib/ansible/modules/core/README.md \
"$pkgdir"/usr/share/doc/$pkgname/README.core.md || return 1
install -m644 lib/ansible/modules/extras/README.md \
"$pkgdir"/usr/share/doc/$pkgname/README.extras.md || return 1
}
md5sums="bc0ee267e955d307132f55c76de056b4 ansible-2.1.4.0.tar.gz"
sha256sums="e9f1033356557dff2fdbaa1b13a7cc8fb2ed2b15129c84d0c53f63001232cc16 ansible-2.1.4.0.tar.gz"
sha512sums="2f400ab45c4f482a467c1ea5c7654d6d37e5190ecea36d023c12c96869386fb0c2a8652e0ef1f0c9a933a54574447f9172fc74ab5100f177eb13ad0737d1e3fa ansible-2.1.4.0.tar.gz"
|