blob: a47d7fe8312911a5af84d57f8180e45d3a17d2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# 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-9999.ebuild,v 1.7 2013/01/15 15:18:54 pinkbyte Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7} )
EGIT_REPO_URI="git://github.com/ansible/ansible.git"
EGIT_BRANCH="devel"
inherit distutils-r1 git-2
DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
HOMEPAGE="http://ansible.cc/"
SRC_URI=""
KEYWORDS=""
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
net-misc/sshpass
)
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/${PF}/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
}
|