From da761336cf3abffc96dd5c3d4e1d1303992c941a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 May 2012 22:44:12 +0000 Subject: 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/ --- testing/ansible/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/ansible/APKBUILD (limited to 'testing/ansible') 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 +# Maintainer: Fabian Affolter +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" -- cgit v1.2.3