diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2013-09-05 20:57:34 +0000 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2013-09-05 20:57:34 +0000 |
commit | c74c0cc0ef5bbc8edba53ee33466313ed4d78fe8 (patch) | |
tree | 012098a4ea0ff593db19386c42dbbf900773e835 /sys-cluster/nova/nova-9999.ebuild | |
parent | updating websockify to 0.5.1 for sys-cluster/nova (diff) | |
download | gentoo-2-c74c0cc0ef5bbc8edba53ee33466313ed4d78fe8.tar.gz gentoo-2-c74c0cc0ef5bbc8edba53ee33466313ed4d78fe8.tar.bz2 gentoo-2-c74c0cc0ef5bbc8edba53ee33466313ed4d78fe8.zip |
updatign deps, some havana stuff, some init stuff, fixing bugs 483384 482698
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Diffstat (limited to 'sys-cluster/nova/nova-9999.ebuild')
-rw-r--r-- | sys-cluster/nova/nova-9999.ebuild | 70 |
1 files changed, 51 insertions, 19 deletions
diff --git a/sys-cluster/nova/nova-9999.ebuild b/sys-cluster/nova/nova-9999.ebuild index ea0963e4cd6c..c201776d8152 100644 --- a/sys-cluster/nova/nova-9999.ebuild +++ b/sys-cluster/nova/nova-9999.ebuild @@ -1,66 +1,94 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-9999.ebuild,v 1.5 2013/08/20 16:33:00 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-9999.ebuild,v 1.6 2013/09/05 20:57:34 prometheanfire Exp $ EAPI=5 PYTHON_COMPAT=( python2_7 ) -inherit distutils-r1 eutils git-2 +inherit distutils-r1 eutils git-2 multilib DESCRIPTION="Nova is a cloud computing fabric controller (main part of an IaaS system). It is written in Python." HOMEPAGE="https://launchpad.net/nova" EGIT_REPO_URI="https://github.com/openstack/nova.git" -EGIT_BRANCH="master" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="" -IUSE="" +IUSE="+api +cert +compute +conductor +consoleauth +network +novncproxy +scheduler +spicehtml5proxy +xvpvncproxy" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + app-admin/sudo" RDEPEND=">=dev-python/amqplib-0.6.1[${PYTHON_USEDEP}] >=dev-python/anyjson-0.2.4[${PYTHON_USEDEP}] - >=dev-python/cheetah-2.4.4 >=dev-python/sqlalchemy-0.7.8 <=dev-python/sqlalchemy-0.7.99 dev-python/boto[${PYTHON_USEDEP}] + >=dev-python/d2to1-0.2.10[${PYTHON_USEDEP}] + <dev-python/d2to1-0.3[${PYTHON_USEDEP}] >=dev-python/eventlet-0.9.17[${PYTHON_USEDEP}] + >=dev-python/jinja-2.0[${PYTHON_USEDEP}] + <dev-python/jinja-3[${PYTHON_USEDEP}] + >=dev-python/jsonschema-1.3.0[${PYTHON_USEDEP}] + !~dev-python/jsonschema-1.4.0[${PYTHON_USEDEP}] >=dev-python/kombu-1.0.4-r1[${PYTHON_USEDEP}] + >=dev-python/lxml-2.3[${PYTHON_USEDEP}] + >=dev-python/pbr-0.5.16[${PYTHON_USEDEP}] + <dev-python/pbr-0.6[${PYTHON_USEDEP}] >=dev-python/routes-1.12.3-r1[${PYTHON_USEDEP}] - =dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + ~dev-python/webob-1.2.3[${PYTHON_USEDEP}] >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] dev-python/paste[${PYTHON_USEDEP}] - >=dev-python/sqlalchemy-migrate-0.7.2 - dev-python/netaddr + >=dev-python/sqlalchemy-migrate-0.7.2[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}] >=dev-python/suds-0.4 dev-python/paramiko[${PYTHON_USEDEP}] dev-python/pyasn1[${PYTHON_USEDEP}] >=dev-python/Babel-0.9.6[${PYTHON_USEDEP}] >=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}] - dev-python/httplib2[${PYTHON_USEDEP}] - >=dev-python/setuptools-git-0.4[${PYTHON_USEDEP}] >=dev-python/python-cinderclient-1.0.1[${PYTHON_USEDEP}] - >=dev-python/python-glanceclient-0.5.0[${PYTHON_USEDEP}] - <dev-python/python-glanceclient-2[${PYTHON_USEDEP}] - >=dev-python/python-neutronclient-2.2.0[${PYTHON_USEDEP}] + >=dev-python/python-glanceclient-0.9.0[${PYTHON_USEDEP}] + >=dev-python/python-neutronclient-2.3.0[${PYTHON_USEDEP}] <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}] >=dev-python/python-keystoneclient-0.2.0[${PYTHON_USEDEP}] - >=dev-python/stevedore-0.7 - <dev-python/websockify-0.4[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.10[${PYTHON_USEDEP}] + >=dev-python/websockify-0.5.1[${PYTHON_USEDEP}] + <dev-python/websockify-0.6[${PYTHON_USEDEP}] >=dev-python/oslo-config-1.1.0[${PYTHON_USEDEP}] virtual/python-argparse[${PYTHON_USEDEP}]" +#oslo.config-1.2 is required but not released yet PATCHES=( ) +pkg_setup() { + enewgroup nova + enewuser nova -1 -1 /var/lib/nova nova +} + python_install() { distutils-r1_python_install + newconfd "${FILESDIR}/nova-confd" "nova" + newinitd "${FILESDIR}/nova-initd" "nova" + use api && dosym /etc/init.d/nova /etc/init.d/nova-api + use cert && dosym /etc/init.d/nova /etc/init.d/nova-cert + use compute && dosym /etc/init.d/nova /etc/init.d/nova-compute + use conductor && dosym /etc/init.d/nova /etc/init.d/nova-conductor + use consoleauth && dosym /etc/init.d/nova /etc/init.d/nova-consoleauth + use network && dosym /etc/init.d/nova /etc/init.d/nova-network + use novncproxy &&dosym /etc/init.d/nova /etc/init.d/nova-nonvncproxy + use scheduler && dosym /etc/init.d/nova /etc/init.d/nova-scheduler + use spicehtml5proxy && dosym /etc/init.d/nova /etc/init.d/nova-spicehtml5proxy + use xvpvncproxy && dosym /etc/init.d/nova /etc/init.d/nova-xvpncproxy + + dodir /var/log/nova + fowners nova:nova /var/log/nova + keepdir /etc/nova insinto /etc/nova - newins "etc/nova/nova.conf.sample" "nova.conf" doins "etc/nova/api-paste.ini" doins "etc/nova/logging_sample.conf" @@ -70,11 +98,15 @@ python_install() { doins "etc/nova/rootwrap.d/api-metadata.filters" doins "etc/nova/rootwrap.d/compute.filters" doins "etc/nova/rootwrap.d/network.filters" - doins "etc/nova/rootwrap.d/baremetal-compute-ipmi.filters" - doins "etc/nova/rootwrap.d/baremetal-deploy-helper.filters" + #copy migration conf file (not coppied on install via setup.py script) insinto /usr/$(get_libdir)/python2.7/site-packages/nova/db/sqlalchemy/migrate_repo/ doins "nova/db/sqlalchemy/migrate_repo/migrate.cfg" + #copy the CA cert dir (not coppied on install via setup.py script) cp -R "${S}/nova/CA" "${D}/usr/$(get_libdir)/python2.7/site-packages/nova/" || die "isntalling CA files failed" + + #add sudoers definitions for user nova + insinto /etc/sudoers.d/ + doins "${FILESDIR}/nova-sudoers" } |