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.
67 lines
1.5 KiB
67 lines
1.5 KiB
12 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
12 years ago
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/salt/salt-9999.ebuild,v 1.2 2012/12/19 00:40:55 chutzpah Exp $
|
||
12 years ago
|
|
||
12 years ago
|
EAPI=5
|
||
12 years ago
|
|
||
12 years ago
|
PYTHON_COMPAT=(python{2_6,2_7})
|
||
12 years ago
|
|
||
12 years ago
|
inherit eutils distutils-r1
|
||
12 years ago
|
|
||
|
DESCRIPTION="Salt is a remote execution and configuration manager."
|
||
|
HOMEPAGE="http://saltstack.org/"
|
||
12 years ago
|
|
||
|
if [[ ${PV} == 9999* ]]; then
|
||
|
inherit git-2
|
||
|
EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
|
||
|
EGIT_BRANCH="develop"
|
||
|
SRC_URI=""
|
||
|
KEYWORDS=""
|
||
|
else
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
KEYWORDS="~x86 ~amd64"
|
||
|
fi
|
||
12 years ago
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
12 years ago
|
IUSE="ldap libvirt mongodb mysql openssl redis test"
|
||
12 years ago
|
|
||
12 years ago
|
RDEPEND=">=dev-python/pyzmq-2.1.9
|
||
12 years ago
|
dev-python/msgpack
|
||
|
dev-python/pyyaml
|
||
|
dev-python/m2crypto
|
||
|
dev-python/pycrypto
|
||
|
dev-python/pycryptopp
|
||
12 years ago
|
dev-python/jinja
|
||
|
ldap? ( dev-python/python-ldap )
|
||
|
openssl? ( dev-python/pyopenssl )
|
||
12 years ago
|
libvirt? ( app-emulation/libvirt[python] )
|
||
|
mongodb? ( dev-python/pymongo )
|
||
|
mysql? ( dev-python/mysql-python )
|
||
|
redis? ( dev-python/redis-py )"
|
||
12 years ago
|
DEPEND="test? (
|
||
|
dev-python/virtualenv
|
||
|
${RDEPEND}
|
||
|
)"
|
||
12 years ago
|
|
||
12 years ago
|
src_prepare() {
|
||
|
sed -i '/install_requires=/ d' setup.py || die "sed failed"
|
||
|
|
||
12 years ago
|
distutils-r1_src_prepare
|
||
12 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
12 years ago
|
distutils-r1_src_install
|
||
12 years ago
|
|
||
|
for s in minion master syndic; do
|
||
|
newinitd "${FILESDIR}"/${s}-initd-1 salt-${s}
|
||
|
newconfd "${FILESDIR}"/${s}-confd-1 salt-${s}
|
||
|
done
|
||
|
|
||
|
dodoc README.rst AUTHORS
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
12 years ago
|
SHELL="/bin/bash" ./tests/runtests.py --unit-tests --no-report || die
|
||
12 years ago
|
}
|