aboutsummaryrefslogtreecommitdiffstats
path: root/main/ansible/APKBUILD
blob: 61b983a2d360f2577e1857d3dc63cb570569a381 (plain) (blame)
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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Takuya Noguchi <takninnovationresearch@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
pkgver=2.6.19
pkgrel=0
pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework"
url="https://ansible.com"
arch="noarch"
license="GPL-3.0-or-later"
_py=py3
depends="python3 $_py-yaml $_py-paramiko $_py-jinja2 $_py-markupsafe $_py-crypto"
makedepends="python3-dev py3-setuptools"
options="!check" # not packaged in release tarballs
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

# secfixes:
#   2.6.19-r0:
#     - CVE-2019-10206
#   2.6.18-r0:
#     - CVE-2019-10156
#   2.5.15-r0:
#     - CVE-2019-3828
#   2.5.14-r0:
#     - CVE-2018-16876
#   2.5.11-r0:
#     - CVE-2018-16837

prepare() {
	cd "$builddir"
	# Windows-only scripts
	rm -r examples/scripts
}

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	mkdir -p "$pkgdir"/usr/share/man/man1
	install -Dm644 "$builddir"/docs/man/man1/*.1 \
		"$pkgdir"/usr/share/man/man1/

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
	install -m644 examples/* \
		"$pkgdir"/usr/share/doc/$pkgname/examples/
	install -m644 README.rst "$pkgdir"/usr/share/doc/$pkgname
}

sha512sums="d838f5bbf5b66fc86d2046765911d1a0986012dda9f8e13a7d3f61c848c993a5f903350642269ebe8273f252e42e772fe3fcbb119c27fa8cf1e141476a11e041  ansible-2.6.19.tar.gz"