You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
12 years ago
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-0.7.2.ebuild,v 1.1 2013/01/05 13:38:15 pinkbyte Exp $
|
||
|
|
||
|
EAPI="5"
|
||
|
|
||
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
|
||
|
HOMEPAGE="http://ansible.cc/"
|
||
|
SRC_URI="https://github.com/ansible/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
IUSE="examples paramiko +sudo test"
|
||
|
|
||
|
DEPEND="${PYTHON_DEPS}
|
||
|
test? (
|
||
|
dev-python/nose
|
||
|
dev-vcs/git
|
||
|
)"
|
||
|
RDEPEND="
|
||
|
dev-python/jinja
|
||
|
dev-python/pyyaml
|
||
|
paramiko? ( dev-python/paramiko )
|
||
|
!paramiko? ( virtual/ssh )
|
||
|
sudo? ( app-admin/sudo )
|
||
|
"
|
||
|
|
||
|
src_prepare() {
|
||
|
distutils-r1_src_prepare
|
||
|
# Skip tests which need ssh access
|
||
|
sed -i 's:PYTHONPATH=./lib nosetests.*:\0 -e \\(TestPlayBook.py\\|TestRunner.py\\):' Makefile || die "sed failed"
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
make tests
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
|
|
||
|
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
|
||
|
# Hint: do not install example config files into /etc
|
||
|
# let this choice to user
|
||
|
|
||
|
newenvd "${FILESDIR}"/${PN}.env 95ansible
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||
|
elog "You can define parameters through shell variables OR use config files"
|
||
|
elog "Examples of config files installed in /usr/share/doc/${P}/examples"
|
||
|
elog "You have to create ansible hosts file!"
|
||
|
elog "More info on http://ansible.cc/docs/gettingstarted.html"
|
||
|
fi
|
||
|
}
|