aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-05-27 13:03:30 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2013-05-27 14:11:05 +0200
commite7f28dc65292bff0d6127ee3fc3b1535169c5821 (patch)
treeb3d294b0952bc8a290c83a38cffd9c1697a3b8e7 /main
parent96146a5191c8faf527193ea473a93b4373a2adfc (diff)
downloadaports-e7f28dc65292bff0d6127ee3fc3b1535169c5821.tar.bz2
aports-e7f28dc65292bff0d6127ee3fc3b1535169c5821.tar.xz
main/ansible: moved from testing
Diffstat (limited to 'main')
-rw-r--r--main/ansible/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/ansible/APKBUILD b/main/ansible/APKBUILD
new file mode 100644
index 0000000000..6c1a02a6c7
--- /dev/null
+++ b/main/ansible/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=ansible
+pkgver=1.0
+pkgrel=1
+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/$pkgname/$pkgname/archive/v$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
+ install -m755 -D "$_builddir"/examples/ansible.cfg \
+ "$pkgdir"/etc/$pkgname/ansible.cfg || 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="9184385fdf22c3516ce831a229f7d945 v1.0.tar.gz"
+sha256sums="6e9bba5eef2575284bfc533c0cc751468d7a07dd608845437c2f96fc57653a54 v1.0.tar.gz"
+sha512sums="d5f84184cb7c0bc086ee726188d5e13533172cb219b6dde0a570b165540f08f64ca708b515e52fb95b1675755f1f90550a962c3b51fd085763389daa12ec971a v1.0.tar.gz"