aboutsummaryrefslogtreecommitdiffstats
path: root/main/ansible/APKBUILD
blob: 9bfd356f79445d0e428023e08c799aa4b746306e (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
58
59
60
61
# 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.20
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.20-r0:
#     - CVE-2019-14846
#     - CVE-2019-14856
#     - CVE-2019-14858
#   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="d9be17b99e72d69bf8ecc7b409be73dc16ef210451ed8a7682ead9d8066e08ca84554830336d1c6e9adcb87959bde90cd32a6fbdbe6100fdc92b74830b7e7e79  ansible-2.6.20.tar.gz"