APKBUILD 1.57 KB
Newer Older
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
Sören Tempel's avatar
Sören Tempel committed
2
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
3
# Contributor: Takuya Noguchi <takninnovationresearch@gmail.com>
Fabian Affolter's avatar
Fabian Affolter committed
4 5
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ansible
6
pkgver=2.4.6.0
7
pkgrel=1
8
pkgdesc="A configuration-management, deployment, task-execution, and multinode orchestration framework"
9
url="https://ansible.com"
Fabian Affolter's avatar
Fabian Affolter committed
10
arch="noarch"
11
license="GPL3+"
12 13
_py=py2
depends="python2 $_py-yaml $_py-paramiko $_py-jinja2 $_py-markupsafe $_py-crypto"
14
makedepends="python2-dev py-setuptools"
Fabian Affolter's avatar
Fabian Affolter committed
15
subpackages="$pkgname-doc"
16 17 18
source="$pkgname-$pkgver.tar.gz::https://releases.ansible.com/ansible/$pkgname-$pkgver.tar.gz
	CVE-2019-10206.patch
	"
19
builddir="$srcdir/$pkgname-$pkgver"
20

21
# secfixes:
22 23
#   2.4.6.0-r1:
#   - CVE-2019-10206
24 25 26
#   2.4.6.0-r0:
#   - CVE-2018-10855

Fabian Affolter's avatar
Fabian Affolter committed
27
build() {
28
	cd "$builddir"
29
	python2 setup.py build
Fabian Affolter's avatar
Fabian Affolter committed
30 31 32
}

package() {
33
	cd "$builddir"
34
	python2 setup.py install --prefix=/usr --root="$pkgdir"
35

36
	mkdir -p "$pkgdir"/usr/share/man/man1
37
	install -Dm644 "$builddir"/docs/man/man1/*.1 \
38
		"$pkgdir"/usr/share/man/man1/
Sören Tempel's avatar
Sören Tempel committed
39

40 41
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
	install -m644 examples/* \
42 43
		"$pkgdir"/usr/share/doc/$pkgname/examples/
	install -m644 README.md "$pkgdir"/usr/share/doc/$pkgname
Fabian Affolter's avatar
Fabian Affolter committed
44 45
}

46 47
sha512sums="3b4d4d8f3b1eb27861e7beac4557b608e3f9a77d4a24d33868c8d1be2b3fd9a57ef98e4685bbfd859d64a2f591487852fb5409ef00006036be4409eaf07d1b5b  ansible-2.4.6.0.tar.gz
cdc065686625c1724e1f286f2a4986920195c8714fea640c90b663499aa9e8709c52e11590b7816dcd753c68c5c5787d964056bdd8252bc06ff6ca1731a38bc2  CVE-2019-10206.patch"