summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Thode <prometheanfire@gentoo.org>2014-11-19 00:11:17 +0000
committerMatt Thode <prometheanfire@gentoo.org>2014-11-19 00:11:17 +0000
commit404f6c2262da3819ae233ce3d8c64ee1782c04bf (patch)
tree3d3ef9b57bb2e065406be04797c0653edc0a9231 /sys-cluster
parentadding for nova (diff)
downloadhistorical-404f6c2262da3819ae233ce3d8c64ee1782c04bf.tar.gz
historical-404f6c2262da3819ae233ce3d8c64ee1782c04bf.tar.bz2
historical-404f6c2262da3819ae233ce3d8c64ee1782c04bf.zip
bup
Package-Manager: portage-2.2.8-r2/cvs/Linux x86_64 Manifest-Sign-Key: 0x2471EB3E40AC5AC3
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/nova/ChangeLog9
-rw-r--r--sys-cluster/nova/Manifest31
-rw-r--r--sys-cluster/nova/nova-2014.2.9999.ebuild161
-rw-r--r--sys-cluster/nova/nova-2014.2.ebuild160
4 files changed, 346 insertions, 15 deletions
diff --git a/sys-cluster/nova/ChangeLog b/sys-cluster/nova/ChangeLog
index 55852a326b91..f604b6df035d 100644
--- a/sys-cluster/nova/ChangeLog
+++ b/sys-cluster/nova/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/nova
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/ChangeLog,v 1.77 2014/10/11 23:28:30 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/ChangeLog,v 1.78 2014/11/19 00:11:10 prometheanfire Exp $
+
+*nova-2014.2 (19 Nov 2014)
+*nova-2014.2.9999 (19 Nov 2014)
+
+ 19 Nov 2014; Matthew Thode <prometheanfire@gentoo.org>
+ +nova-2014.2.9999.ebuild, +nova-2014.2.ebuild:
+ bup
*nova-2014.1.3 (11 Oct 2014)
diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest
index 48dc96dcdb5b..dc0fe0fec7fd 100644
--- a/sys-cluster/nova/Manifest
+++ b/sys-cluster/nova/Manifest
@@ -7,25 +7,28 @@ AUX nova-sudoers 78 SHA256 9e88c2843fb74cc46802c0b103067ad12915ec50335d05e546a5d
AUX nova.initd 627 SHA256 74417e422e6c503ae338bb981934b54a5da57e783bdfed778de6ce9fec3617b8 SHA512 163d5d94f6ce7c67413b9e90161590651329c96e1c8df480d1c983294f43bd596ef75ebe818cd1a8f1557babfd6bbd02a7deaf597d936acfe882dc3c9c5a1f42 WHIRLPOOL b51a0316513d06083f2cfa572427926c14663ab984bcd26a9521bf88699bfefd745e7ff91e9330bae86bd769d809837e010caa948cd133fbd010e820b7ab8448
AUX nova.sudoersd 78 SHA256 9e88c2843fb74cc46802c0b103067ad12915ec50335d05e546a5dba76acb4a76 SHA512 22c0606c6335b2d1a03bd18a319a54f16f76f091b2e8416dbba05ce7c15890beff7f32f0322eb5ba3f2a5c750436cacbe0cee189b390b878e3f0c0df219ef984 WHIRLPOOL bc42ae1d12e9f900b263fd5c3d0f59062f46fbec1ff97c0bceb234082bea5943eb64795b4f5e102b8e2749c6868163e5924467088cad42df09345e3406e5f83c
DIST nova-2014.1.3.tar.gz 8008501 SHA256 5d9dd3bcfb7375919d2610430cf744d53bd32c59438d18a5a7037cce5a09ee9c SHA512 b2eb33bd47b1dd8bd224cdda553588c4ae838c5839c41e8d0b1037f309a38e5ebd104ecc32b6eebcebb6197956b199df1cd76beafa3b5dbb8666a9d0ce75dd78 WHIRLPOOL 45ca3ee9c13be66d5ff01fdfe354679c610cdaf841435c0461f4b210a4331478762c2b4474e88bf19b338dbc310b265776821c1e97faafb19d808f1989cc9a1e
+DIST nova-2014.2.tar.gz 4425305 SHA256 6f31b920087d9e961239b0f3b8fb80a0dcbb01f3123226252f52ed30539bcb58 SHA512 63d9d50e25f554a9bb7ea7a6218cfd3da10ce5203060ea39f9a407f2d64d7c9c249cac671c379ccacba940d4207c0434cc18728b67dfff9867f27a2ec08d8319 WHIRLPOOL 7864136cea9038c2e85b0a46dc5e7c7177f6dbc6326b59d8a98290173360afc9e3c1bfa61dcffffc9bf28a058dafb8b84880f0bad1fdb03ec3ed134b279f83bd
EBUILD nova-2014.1.3.ebuild 5638 SHA256 c4fe953e996d21e12079c24388200852d4d6e7e4b9e9c04a81a8f2712445b43c SHA512 45ec983a8b7966585f32fa964c934fb361288cbca58851f6e0aadea701a545d96130dff910781a26cbdba18a3c419a94df241dc8ed9d00ffd26a7c0e7ce76ff5 WHIRLPOOL 443f09e3fcf8ee0271735b230feedc993e7f0020c1b31a04e8ee3f5fa67db6d8c711fa90b10db0bfe932f336453fc45e7d8bf3254ac15975cbb7d8da911c8f3d
EBUILD nova-2014.1.9999.ebuild 5646 SHA256 2f8969a5da43f52b8d6cee0b0298e9e4ce7ca05d5789058e82a70be00df84117 SHA512 a18761c049449a06aacc575b0b3b2ca78470a2a0980461ca31c404568c8f4a10b9178fb76a9376d0d029ba8196dbb87748014ea4678fa4bbfa6b2ecdaeac1d67 WHIRLPOOL 4731dfc9cbca7344a10e97b8135071818a11ecc1768261c9d8f4e94e23a9713b7b231e1cbd8d4d4cab36947e52ebf45a6fd95c81bef5f7dbfa8edf0e0772a117
+EBUILD nova-2014.2.9999.ebuild 6186 SHA256 fa51507fcec8ce8a5987a986b78dfe92e5f26821b6b3dc4c7f14e7c9fb7084a6 SHA512 7586dfa2fbc14376801c2960b993040e7b4e0d4d00533f49a6a7d056ac51a1a02eb83e7bbf573f93c6f9152a283fbd6bc6ead7d2a844ed1decd86f57ec5122b1 WHIRLPOOL 64e71833c5e2bb6c8a745b70f13ab4f79362db3abe48e304692552dd807afe0aacc426d396f59b2a6b83526eae91cec3984ded46f37f948dac9214e147cfd954
+EBUILD nova-2014.2.ebuild 6176 SHA256 d4e71c43acd4ece05816df839ee1a0cab43f90218d9a167949ad3bd51ebf07be SHA512 555b72efb29df18d7bd9eccf5585a76b54dc0321ec8f513bb714c2349ba9774027cf16f23010c1c37bf8baf5e00abd330cc671efccecb297dae7f15291485c97 WHIRLPOOL 2e046183114db0da871653d18658468f672c840cd0c03697a608b50427c08cf488d0ffbffa2fc5538ce0ec0780764f03641c8aa65cd01dd09516f27a636fd914
EBUILD nova-9999.ebuild 5002 SHA256 23733c3e71e51c89f2052dea058e739d948872701aa778211b48f5b7d090fb24 SHA512 908ba7a512531263c0da227814c812a36fb634bf9e62b9a3971315bc64e74d1c8089680c91ae78b2d22981d6ff5fbd9e3f045ce35c85c603ba8ef09a85f42023 WHIRLPOOL a8364da03efe966c411ee598dc25bc6de1ef997cf19ffd06311a2c75c8c5c59cb0bc637315f3045e58d36d35f90ef160f9ec8846e3128aaa599d019e16f6370b
-MISC ChangeLog 17441 SHA256 6d93775f678cde81172f0376201b27696eec237a64acdcd1c7d0ac87a0d01d35 SHA512 de98601aa1be8e6471720c269e61fc7d37e126aadea54b5dd0964e603939bf8dd14bbe07f5213a9f91648298c38b543db054f477c109314120fb49e80cb23105 WHIRLPOOL 2e95c08b519b57b1cbc42928a663d03e307110b09aa962e843da5c95cbc8ed883a49986769625d7096e11f01ad44f3b71868ee605748d5ab608db89c57b02fec
+MISC ChangeLog 17614 SHA256 c06a99bacc772f93a3547217361e638ab9190f562528bca14bebe7b6a8e334f4 SHA512 3892d2e5a049d8342d4f19ecfcdc3d1276b0d1d02abf9626906efb81656b842f2af8b4f962279d8c57e6e8ef8e23a18b21065c63ea188147648df906057e27be WHIRLPOOL c0b4e5f56eecbe455afb1ee02770b39261f8e96e51aef8e8ba1a62f773a9f929cd04b5ddeae6bf247dd5cdbddcdae4f42eed5fe4568cb6bba324767b64554487
MISC metadata.xml 818 SHA256 2db18087f26467d27436c57cc533ab1dc0e31e643ed2b212a78eaf1e9e4d702b SHA512 cd64b2b5fff76252104a60670edab8a732ea0c6ab5e72b083f988bbc18dcf38e455cadd589e89597fa049009b60a99631306ea61bb02e14f1658a52b22d4c5aa WHIRLPOOL 05cca8681c60b074f53e6874f1e8a5b17a3ebcdd06e552e4ac6a2672f91077ce71e0d343f0db27ba0722a33bc5b1e97d38ad34dbe418e2961ca067d8b863c6db
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJUOb0zAAoJECRx6z5ArFrDQE4P/2vrwUNwxPLtcFT4pr9WWC6o
-8e+pNdgo99FgCCsCAj8ytIvU4X9ePMUwCz0jXH2cXqVMWpmuqQnZ63B/42WFdao6
-oMbtUfpBrlM2grsqqrh3wmS+lvr4BaJacovMfSV7VtB3bI973EgxnXEhXtzb0osY
-6KpP6DB8VYvbuqag+DtySblYlgmuG4lCHNLoJOF/u7aO2txVwCsUh3TlT5n649co
-ql9UW8+4d+gX7es1nxZuqgTZlruwNYLngxdoTGTUvoHTXE/P4QCmlYmipG3dU6pf
-FtesO6XkkeLGa9REAd5Si3WP/ZrYVvCHg0hxZbT1guSWkJgicIhHowlYU9jaqN7j
-Y5vHS58Bs2noCY8LpLGENjMqGcGq/pubTN1x/iqx7dbK9I++RIXuQNavKgv9F7mg
-AuUZWd5IwNTm7GeDZcXrG9GSyc8m8j65Ryc/8ycn6gj3PhY+TB7S6jce7R3eeE/+
-NmHVi9e7WYujpuOzcfkXwKy7dJ2Fvrgwj9fHPDznJtLjIGUn26CY6JA4uSZE20jY
-Jspy111UjQAqAkwu1M2O44MSjcH/e+YWY9XptUfkqAL3QQWSRtprSn+xdNMz6+wl
-YSf/EmQk85OqlYOTIo1XaPDPAMuIJe0G6Pae0PK2XMKCZibo/EHgmSicdF6EyrCg
-ZvNgRw/CE0qs7quJeNlv
-=1clO
+iQIcBAEBCAAGBQJUa+BOAAoJECRx6z5ArFrDRqgP/j2tDLcbFqrTE0bHKJR89lRX
+JAf/bgM7oD74F2/WeEPCM8DM2ZmZECURDn6+Vf2z/6Ams6Eb2zkeO7ZnSQmiNsQQ
+nZFOMf9gNV5t3x4ioyG4vNAxMp1GHb1qFetNkDOo4+DZIt8P+xnNh9ZugZ7FWDTr
+oA129mDsyQVIGr0qHj64VpQbrQoPWr1xDub5UiZMIRWvtWtYaqr/XhMDVLr2yljp
+cShINnUnpTE/hGZA9UJlcIrPGISvktxtWYZk6P+kIPHKcD4i83MLexhJLpia6/2f
+LhLUT0mrPyeibDgpbQ5whpvA2+6tdstFTxCtqw3BTQgh54QqBj1ypWm7fRMypT22
+dEq42qh6gHIUU9hs1HAJclo+JLGxFFEUbQgJoVlqvIcflREaiM9y00/B5nMELVG6
+KU5Nbfmxkch52SmrLuapnyNi/ZjVUahmzEgF4eoMYC/ZTOIOwoeZC/sQjNfnra4L
+HRUn/TBQ0MkWzQ9nTEtaW1wE799cAs4+d2alo6MlplMusbaxCfxX5KC+ociKV09E
+lmzuka/11tecdkWhhSaLMdaCt2KCam+fja8PdzJPnlO2wJp1bkGtLn63jGY6OOts
+G55pk1KH0rJkPcRONO/jtZev/TvNHhjYCJ0yuga+vxLJ7+zR4qlJk0lxg/aizV3Z
+1fc5KrokKOu76saMX9Es
+=rQVj
-----END PGP SIGNATURE-----
diff --git a/sys-cluster/nova/nova-2014.2.9999.ebuild b/sys-cluster/nova/nova-2014.2.9999.ebuild
new file mode 100644
index 000000000000..3554b6a302a3
--- /dev/null
+++ b/sys-cluster/nova/nova-2014.2.9999.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-2014.2.9999.ebuild,v 1.1 2014/11/19 00:11:10 prometheanfire Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils git-2 linux-info multilib user
+
+DESCRIPTION="A cloud computing fabric controller (main part of an IaaS system) written in Python"
+HOMEPAGE="https://launchpad.net/nova"
+EGIT_REPO_URI="https://github.com/openstack/nova.git"
+EGIT_BRANCH="stable/juno"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS=""
+IUSE="+compute +kvm +network +novncproxy sqlite mysql postgres xen"
+REQUIRED_USE="|| ( mysql postgres sqlite )
+ compute? ( || ( kvm xen ) )"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
+ <dev-python/pbr-1.0[${PYTHON_USEDEP}]
+ app-admin/sudo"
+
+RDEPEND="sqlite? (
+ >=dev-python/sqlalchemy-0.8.4[sqlite,${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[sqlite,${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
+ )
+ mysql? (
+ dev-python/mysql-python
+ >=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+ )
+ postgres? (
+ dev-python/psycopg:2
+ >=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+ )
+ >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
+ >=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
+ >=dev-python/eventlet-0.15.1[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ >=dev-python/keystonemiddleware-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/kombu-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
+ >=dev-python/routes-1.12.3-r1[${PYTHON_USEDEP}]
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}]
+ >=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
+ dev-python/paste[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9.1[${PYTHON_USEDEP}]
+ !~dev-python/sqlalchemy-migrate-0.9.2[${PYTHON_USEDEP}]
+ >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
+ >=dev-python/suds-0.4[${PYTHON_USEDEP}]
+ >=dev-python/paramiko-1.13.0[${PYTHON_USEDEP}]
+ dev-python/posix_ipc[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
+ >=dev-python/python-cinderclient-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
+ <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}]
+ >=dev-python/python-glanceclient-0.14.0[${PYTHON_USEDEP}]
+ >=dev-python/python-keystoneclient-0.10.0[${PYTHON_USEDEP}]
+ >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
+ >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/websockify-0.6.0[${PYTHON_USEDEP}]
+ <dev-python/websockify-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-config-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-db-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-rootwrap-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pycadf-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-messaging-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-i18n-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/lockfile-0.8[${PYTHON_USEDEP}]
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/rfc3986-0.2.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-vmware-0.6.0[${PYTHON_USEDEP}]
+ dev-python/libvirt-python[${PYTHON_USEDEP}]
+ novncproxy? ( www-apps/novnc )
+ sys-apps/iproute2
+ net-misc/openvswitch
+ net-misc/rabbitmq-server
+ sys-fs/sysfsutils
+ sys-fs/multipath-tools
+ net-misc/bridge-utils
+ kvm? ( app-emulation/qemu )
+ xen? ( app-emulation/xen
+ app-emulation/xen-tools )"
+
+PATCHES=(
+)
+
+pkg_setup() {
+ linux-info_pkg_setup
+ CONFIG_CHECK_MODULES="NBD VHOST_NET IP6TABLE_FILTER IP6_TABLES IPT_REJECT \
+ IPTABLE_MANGLE IPT_MASQUERADE IPTABLE_NAT IPTABLE_FILTER IP_TABLES \
+ NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK X_TABLES \
+ ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT"
+ if linux_config_exists; then
+ for module in ${CONFIG_CHECK_MODULES}; do
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be built as module (builtin doesn't work)"
+ done
+ fi
+ enewgroup nova
+ enewuser nova -1 -1 /var/lib/nova nova
+}
+
+python_compile() {
+ distutils-r1_python_compile
+ ./tools/config/generate_sample.sh -b ./ -p nova -o etc/nova
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ for svc in api cert compute conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do
+ newinitd "${FILESDIR}/nova.initd" "nova-${svc}"
+ done
+ use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute"
+ use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy"
+
+ diropts -m 0750 -o nova -g qemu
+ dodir /var/log/nova /var/lib/nova/instances
+ diropts -m 0750 -o nova -g nova
+
+ insinto /etc/nova
+ insopts -m 0640 -o nova -g nova
+ newins "etc/nova/nova.conf.sample" "nova.conf"
+ doins "etc/nova/api-paste.ini"
+ doins "etc/nova/logging_sample.conf"
+ doins "etc/nova/policy.json"
+ doins "etc/nova/rootwrap.conf"
+ #rootwrap filters
+ insinto /etc/nova/rootwrap.d
+ doins "etc/nova/rootwrap.d/api-metadata.filters"
+ doins "etc/nova/rootwrap.d/compute.filters"
+ doins "etc/nova/rootwrap.d/network.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 "installing CA files failed"
+
+ #add sudoers definitions for user nova
+ insinto /etc/sudoers.d/
+ insopts -m 0600 -o root -g root
+ doins "${FILESDIR}/nova-sudoers"
+}
diff --git a/sys-cluster/nova/nova-2014.2.ebuild b/sys-cluster/nova/nova-2014.2.ebuild
new file mode 100644
index 000000000000..0dc1a7bdcd20
--- /dev/null
+++ b/sys-cluster/nova/nova-2014.2.ebuild
@@ -0,0 +1,160 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/nova-2014.2.ebuild,v 1.1 2014/11/19 00:11:10 prometheanfire Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils linux-info multilib user
+
+DESCRIPTION="A cloud computing fabric controller (main part of an IaaS system) written in Python"
+HOMEPAGE="https://launchpad.net/nova"
+SRC_URI="http://launchpad.net/${PN}/juno/${PV}/+download/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+compute +kvm +network +novncproxy sqlite mysql postgres xen"
+REQUIRED_USE="|| ( mysql postgres sqlite )
+ compute? ( || ( kvm xen ) )"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
+ <dev-python/pbr-1.0[${PYTHON_USEDEP}]
+ app-admin/sudo"
+
+RDEPEND="sqlite? (
+ >=dev-python/sqlalchemy-0.8.4[sqlite,${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[sqlite,${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
+ )
+ mysql? (
+ dev-python/mysql-python
+ >=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+ )
+ postgres? (
+ dev-python/psycopg:2
+ >=dev-python/sqlalchemy-0.8.4[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.8.99[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+ )
+ >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
+ >=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
+ >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
+ >=dev-python/eventlet-0.15.1[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ >=dev-python/keystonemiddleware-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/kombu-2.5.0[${PYTHON_USEDEP}]
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
+ >=dev-python/routes-1.12.3-r1[${PYTHON_USEDEP}]
+ !~dev-python/routes-2.0[${PYTHON_USEDEP}]
+ >=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
+ >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
+ dev-python/paste[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9.1[${PYTHON_USEDEP}]
+ !~dev-python/sqlalchemy-migrate-0.9.2[${PYTHON_USEDEP}]
+ >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
+ >=dev-python/suds-0.4[${PYTHON_USEDEP}]
+ >=dev-python/paramiko-1.13.0[${PYTHON_USEDEP}]
+ dev-python/posix_ipc[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
+ >=dev-python/python-cinderclient-1.1.0[${PYTHON_USEDEP}]
+ >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
+ <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}]
+ >=dev-python/python-glanceclient-0.14.0[${PYTHON_USEDEP}]
+ >=dev-python/python-keystoneclient-0.10.0[${PYTHON_USEDEP}]
+ >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
+ >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/websockify-0.6.0[${PYTHON_USEDEP}]
+ <dev-python/websockify-0.7.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-config-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-db-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-rootwrap-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pycadf-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-messaging-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-i18n-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/lockfile-0.8[${PYTHON_USEDEP}]
+ >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}]
+ >=dev-python/rfc3986-0.2.0[${PYTHON_USEDEP}]
+ >=dev-python/oslo-vmware-0.6.0[${PYTHON_USEDEP}]
+ dev-python/libvirt-python[${PYTHON_USEDEP}]
+ novncproxy? ( www-apps/novnc )
+ sys-apps/iproute2
+ net-misc/openvswitch
+ net-misc/rabbitmq-server
+ sys-fs/sysfsutils
+ sys-fs/multipath-tools
+ net-misc/bridge-utils
+ kvm? ( app-emulation/qemu )
+ xen? ( app-emulation/xen
+ app-emulation/xen-tools )"
+
+PATCHES=(
+)
+
+pkg_setup() {
+ linux-info_pkg_setup
+ CONFIG_CHECK_MODULES="NBD VHOST_NET IP6TABLE_FILTER IP6_TABLES IPT_REJECT \
+ IPTABLE_MANGLE IPT_MASQUERADE IPTABLE_NAT IPTABLE_FILTER IP_TABLES \
+ NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 NF_NAT_IPV4 NF_NAT NF_CONNTRACK X_TABLES \
+ ISCSI_TCP SCSI_DH DM_MULTIPATH DM_SNAPSHOT"
+ if linux_config_exists; then
+ for module in ${CONFIG_CHECK_MODULES}; do
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be built as module (builtin doesn't work)"
+ done
+ fi
+ enewgroup nova
+ enewuser nova -1 -1 /var/lib/nova nova
+}
+
+python_compile() {
+ distutils-r1_python_compile
+ ./tools/config/generate_sample.sh -b ./ -p nova -o etc/nova
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ for svc in api cert compute conductor consoleauth network scheduler spicehtml5proxy xvpvncproxy; do
+ newinitd "${FILESDIR}/nova.initd" "nova-${svc}"
+ done
+ use compute && newinitd "${FILESDIR}/nova.initd" "nova-compute"
+ use novncproxy && newinitd "${FILESDIR}/nova.initd" "nova-novncproxy"
+
+ diropts -m 0750 -o nova -g qemu
+ dodir /var/log/nova /var/lib/nova/instances
+ diropts -m 0750 -o nova -g nova
+
+ insinto /etc/nova
+ insopts -m 0640 -o nova -g nova
+ newins "etc/nova/nova.conf.sample" "nova.conf"
+ doins "etc/nova/api-paste.ini"
+ doins "etc/nova/logging_sample.conf"
+ doins "etc/nova/policy.json"
+ doins "etc/nova/rootwrap.conf"
+ #rootwrap filters
+ insinto /etc/nova/rootwrap.d
+ doins "etc/nova/rootwrap.d/api-metadata.filters"
+ doins "etc/nova/rootwrap.d/compute.filters"
+ doins "etc/nova/rootwrap.d/network.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 "installing CA files failed"
+
+ #add sudoers definitions for user nova
+ insinto /etc/sudoers.d/
+ insopts -m 0600 -o root -g root
+ doins "${FILESDIR}/nova-sudoers"
+}