aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-05-18 22:44:12 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2012-05-20 16:57:44 +0000
commitda761336cf3abffc96dd5c3d4e1d1303992c941a (patch)
tree25e9a0efdc01a96b0b14f33eb073c436f8ded1d2 /testing
parent04ea3cea0e83d645fff8cf9c39caafc559e8e7aa (diff)
downloadaports-da761336cf3abffc96dd5c3d4e1d1303992c941a.tar.bz2
aports-da761336cf3abffc96dd5c3d4e1d1303992c941a.tar.xz
testing/ansible: new aport
Ansible is a radically simple model-driven configuration management, deployment, and command execution framework. Other tools in this space have been too complicated for too long, require too much bootstrapping, and have too much learning curve. Ansible is dead simple and painless to extend. http://ansible.github.com/
Diffstat (limited to 'testing')
-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"