summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ansible/ansible-0.7.ebuild')
-rw-r--r--app-admin/ansible/ansible-0.7.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/app-admin/ansible/ansible-0.7.ebuild b/app-admin/ansible/ansible-0.7.ebuild
new file mode 100644
index 000000000000..a1d46097ff9c
--- /dev/null
+++ b/app-admin/ansible/ansible-0.7.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-0.7.ebuild,v 1.1 2012/09/09 08:59:42 pinkbyte Exp $
+
+EAPI="4"
+
+PYTHON_COMPAT="python2_6 python2_7"
+
+inherit distutils
+
+DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
+HOMEPAGE="http://ansible.github.com/"
+SRC_URI="mirror://github/ansible/${PN}/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="examples paramiko +sudo"
+
+# Stable version fails almost all quality tests
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-python/jinja
+ dev-python/pyyaml
+ paramiko? ( dev-python/paramiko )
+ !paramiko? ( virtual/ssh )
+ sudo? ( app-admin/sudo )
+"
+
+src_install() {
+ distutils_src_install
+
+ dodir /usr/share/ansible
+ insinto /usr/share/ansible
+ doins library/*
+
+ doman docs/man/man1/*.1
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${P}/examples
+ fi
+
+ newenvd "${FILESDIR}"/${PN}.env 95ansible
+ dodir /etc/ansible
+ insinto /etc/ansible
+ doins examples/ansible.cfg examples/hosts
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+
+ einfo "You have to create hosts file for user:"
+ einfo " echo \"127.0.0.1\" > ~/ansible_hosts"
+ einfo "or global:"
+ einfo " echo \"127.0.0.1\" > /etc/ansible/hosts"
+ einfo ""
+ einfo "More info on http://ansible.github.com/gettingstarted.html"
+}