aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/ansible/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/ansible/APKBUILD b/testing/ansible/APKBUILD
new file mode 100644
index 0000000000..143fb82678
--- /dev/null
+++ b/testing/ansible/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=ansible
+pkgver=0.3.1
+pkgrel=0
+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/downloads/$pkgname/$pkgname/$pkgname-$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
+ 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="28c36c5926af878ebfd39c932cb86650 ansible-0.3.1.tar.gz"