diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2014-04-28 03:04:09 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2014-04-28 03:04:09 +0000 |
commit | 7afe9114c9827c07d31f2da9cbaffd291585c8a1 (patch) | |
tree | e74c9cbac3f2a80fd2100d6fcf588a4a97e8c945 /sys-cluster | |
parent | more and more (diff) | |
download | historical-7afe9114c9827c07d31f2da9cbaffd291585c8a1.tar.gz historical-7afe9114c9827c07d31f2da9cbaffd291585c8a1.tar.bz2 historical-7afe9114c9827c07d31f2da9cbaffd291585c8a1.zip |
for patrick
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x2471EB3E40AC5AC3
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/nova/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/nova/Manifest | 33 | ||||
-rw-r--r-- | sys-cluster/nova/files/nova.initd | 1 | ||||
-rw-r--r-- | sys-cluster/nova/nova-2014.1.9999.ebuild | 121 | ||||
-rw-r--r-- | sys-cluster/nova/nova-2014.1.ebuild | 120 |
5 files changed, 268 insertions, 16 deletions
diff --git a/sys-cluster/nova/ChangeLog b/sys-cluster/nova/ChangeLog index 7999d793aded..e373f25bb54b 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.59 2014/04/11 15:12:49 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/nova/ChangeLog,v 1.60 2014/04/28 03:03:58 prometheanfire Exp $ + +*nova-2014.1 (28 Apr 2014) +*nova-2014.1.9999 (28 Apr 2014) + + 28 Apr 2014; Matthew Thode <prometheanfire@gentoo.org> + +nova-2014.1.9999.ebuild, +nova-2014.1.ebuild, files/nova.initd: + for patrick *nova-2013.2.3-r1 (11 Apr 2014) diff --git a/sys-cluster/nova/Manifest b/sys-cluster/nova/Manifest index d0e14be4f9c6..f1a63a8a1fa4 100644 --- a/sys-cluster/nova/Manifest +++ b/sys-cluster/nova/Manifest @@ -5,27 +5,30 @@ AUX CVE-2014-0167-2013.2.3.patch 5832 SHA256 b6ec01d6ea62424b0340c7004cef69b0bfe AUX nova-confd 101 SHA256 d9013141618d1e8b8ba85297155747d9c8fc362238de7bba3108b9a2539c8c73 SHA512 4c7ec1d123f2cdaf394d1f4824df861bbe309b0b329db44080160d81746cd0fc9d4cc1b35da0f66ab075f1d4e835ababfb7bccaf4a2e931e60f2c0ac572a552e WHIRLPOOL 6a237357a3905d29a96b32c37f6d189e4f5cefc0986bb091e24a79295191332143741c604c2a9fd44484c75b3be89742a5570862cf0cd4ba225425f7f32b5348 AUX nova-initd 1496 SHA256 5b5f928335ac345103492555c3bc57407f547915b099762d0087aef172e5edf8 SHA512 cca06baba484d505f3a96643d836204a08e9dde50197531cdab2d95188b992a95a375a386b9c54fcc8e0a4f6167babba975db7510db1087f044afa39effe4eec WHIRLPOOL 4c667a5cc469826063a65879c1beddc98371edf295a273c9b8f679627cabfe2260d8b3bbdf9550d3894fc1525d63b9f98d6e939406f90ac5f2f745daa59311c2 AUX nova-sudoers 78 SHA256 9e88c2843fb74cc46802c0b103067ad12915ec50335d05e546a5dba76acb4a76 SHA512 22c0606c6335b2d1a03bd18a319a54f16f76f091b2e8416dbba05ce7c15890beff7f32f0322eb5ba3f2a5c750436cacbe0cee189b390b878e3f0c0df219ef984 WHIRLPOOL bc42ae1d12e9f900b263fd5c3d0f59062f46fbec1ff97c0bceb234082bea5943eb64795b4f5e102b8e2749c6868163e5924467088cad42df09345e3406e5f83c -AUX nova.initd 537 SHA256 523587620208419cc73ea150ad1cc04502a2945e51970c3cae18bbfb1d328ce0 SHA512 c1bce2214e10e41e23d17034126c666d63fca5f7709d5bf93608778aa40d0ec518397151fec029b9be3b9639be66213b619f5a2a30617442ba07aff8335192b7 WHIRLPOOL 600946df334247c381bbf1d87e039e39bf3e2962afd5129a63751cd56ea348c804af50014f62141807e6f0181d74b7313f268834e5146b451b125e60cdb61643 +AUX nova.initd 647 SHA256 876b340f39edf7ad05aff1fac84944a57dee836047a806ec4eaee8bbb1c5346b SHA512 f5324ad74d34802a65a60c1521492cb62ccf08a8de13b8e4ee61be2403f9f6def3ac4a9e5e50475cf697f8c3dd9cbe32bf5c7305abca4670a25135aef37e4976 WHIRLPOOL 297a7010a21dacb3558efc3920aa6ffdb1a2ccbb72120011ca1bc4bcb6f1653aeec0f53811a4e2d54e5ed3fd93100eba7f55a832a60e4b0cbcd4bb92d1903486 DIST nova-2013.2.3.tar.gz 6888463 SHA256 02902cb65b5adb0419c69cdb03ea2a0cfdfe8f7df342be44f3760d66cdecb61e SHA512 fd525e6f3f13e9405d4e53faaf44e88a3a4afe8491d9241edb6b66b61b9d8ec279dd0aead70ee5e6d166caf6879927fc01e57230d1129a7b2e2a794e32054570 WHIRLPOOL d4551136683595fd5ab831d692ab90a1aea177df4266341399726923ce285b6b7852705c89a516c146f88903d9a7fc4b3879419f158a68581144453f0fa36e8b +DIST nova-2014.1.tar.gz 7951303 SHA256 c8fc0e03a826b2b659c77e24737b267588f2c71e3bea9527c71e55a2c76a54d9 SHA512 0893d1ebbf91798cc737e8df97dd2d44fffe4a6163c99f5e63d0f3f6a9ba1c3d1c9ef38e217b74e8da62dd8d5cd91f3be32da2ec062c642d192e32fd96cdf650 WHIRLPOOL c5fcc88912e5eb21aaa9908759324dd37c3670e37edca8562ba1301431fdf8cc40699152fe3ee3a48a495922f4b11846a804ee990d13d3d037726aa520cc0af0 EBUILD nova-2013.2.3-r1.ebuild 4544 SHA256 9c53e240ac79e2c77280b82d8146d8b371e6337ca627a6c4be38013718aa5bc8 SHA512 8ddbf49a5b71dae694be8b20e498adc64d85b415470dbb1218c835bb6cb41214b693e56bc4179dd4e68788dc45edb9f17b0372265c0251215386c651d775eaa5 WHIRLPOOL 63d8d1048410b08ef2e184357ba60a5cdf5be6a3be48c86b40940328a65741aad5686f5860d33b26088922c74bf3a0513962675aabc09ad8d0f041816353e13b EBUILD nova-2013.2.9999.ebuild 4518 SHA256 2967d09f391e940b6b7a698e84d769aa953c33138df8189fe901aabb8b1b151c SHA512 c92ce4b2f77d119a98d4634228a600bb93c902cb34dd2895377c70957f0f451128fc1079e451235ef6439358476377a0cb863a012e1a265995b57f174e866e66 WHIRLPOOL 0da414d998486d523f84f74b461e5f31dd5123b2dfe3fe5f3337e40b6dcdc78daade0d9af29d097e6ba38f671110e5f52f4bdd0635e4449f209cddf73c27b388 +EBUILD nova-2014.1.9999.ebuild 4729 SHA256 ea7e9dd824a9c42acf5394c30c375d9d04fe83530b1ee9e0a860eb010df25937 SHA512 536d0c78c14f28df4cb55ac20564f2a680fce833a5d31f8313c517f32cec454b0912668953f30adc9fba54d342da0d9f3cfecd6aabba414cb42eed21ef7de3be WHIRLPOOL 723823e5837e86eaccbe2a9a82229821ff3052b32bf902fb4fc67c03f0868be2ba69bf6a0e19e6564a5d3be3a97b331d218ad01e5c5379ad78ac21332329492c +EBUILD nova-2014.1.ebuild 4719 SHA256 3ba8a4f42ea873bcc3ebdaba0461bb9b5ef0d4efae3843685eca25ac6f5b124d SHA512 a23f74c2ee55717c0d9a1b4dc5f1aaf434417c32f80a7ed08d877592e762d1f477e43eeac341db000b89ab5977b7b50491a2619abe9f0e0d739195c2dae68722 WHIRLPOOL 66e6c39cd72043c9f8e75df3326adacbb508ff857bbccd92d93039848d925d8ee0b47f77ed1f27ed56a155b88d846f09917296de1639417e6da1c71a9045150e EBUILD nova-9999.ebuild 5225 SHA256 8336956c0a15fd17e15f748c6445c3b144f2a9047dd8257ba3dda7a7b7f1ad01 SHA512 6d961e646096eb4df5814d31b06352f999291becefa5e8fdd88afd14e6ede54e583ba224e474e1122e90b114da4136782cd8336afb467c61fc5400a7dd3a05e8 WHIRLPOOL c4bad3d35be8adb4af48562507ef213185e6d722541226e7d8bedd02578265c035874b371f432db4d1db222fc2776cc74374a508ca562a30dae622a86e0bab10 -MISC ChangeLog 13966 SHA256 bc5f8681a2e8e51bd2925177db30fa03e223d39fbea8efa801d3edd65346d634 SHA512 bffb5171f808750d367efa60d26b688220473505a2ef5a9f49bde5e931b9383926d42c0958e7abf929d5b3004e844d0d9c2c1db708365f9e554338a707dc9020 WHIRLPOOL 73d102fa7e209af73e6a46803ec20fa3e2827ae7630a8211f5e5a945349b1ac949e3a3a6c93e7cf8021ba82a87bb8cdffe9debc89e6eea1fb1f28c395d0c32f9 +MISC ChangeLog 14165 SHA256 70b5f4418594b99b7082e8f4c1dea741ff8c3a5f61b329365ddfea851f515f58 SHA512 5e99afe935c3af90c4b3e0990915632fbb9859c4f95bbe98326fc035a96efa5ea5d78ad1f018513a2b482d1cb51bf86b17eeceeca9f13b425e518cf3ec81fe42 WHIRLPOOL 6ad7086b991c7631676d3ce51a97e81f62da3e618622062d335d8deb21cb9d75f3c2c88a268972826565bd22f7aeca3ed65618bb2f07f28bdcddfa10a5d7b087 MISC metadata.xml 1452 SHA256 29bf3efaab7a4e45f5e442b26a7606edaed3f47e4ffec3e8990f95aea6bf2450 SHA512 537664b6ff29f4afe09eb4635c2cb06d87a6c3c3101e8ef89d1ab9b5b802c79024e94a0cce5a44ec2fd5b1cc37a251dd42156a015b6a294f219b90daff17c9c1 WHIRLPOOL c6e44f9a48fea6ae2a323e9e03d8805301fb0d94bb5634b1946909715f6c05d45c49180204d00221aae1e6dc6748347b4273fae838216b5d5d07932bc473a851 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTSAZ7AAoJECRx6z5ArFrDiFcP/igqkKRqbaHcIqjDoPvhvlL3 -n/5EVFaf6bFrChSPBYFtJBXuGPEJNu5Em1BqX0PmTjtT3AlrM0fjDDd3m6Z7ZKh4 -kjGaQn/AUAJ5m1T5gIBD0r/zYKHuEV/0vcGztJONcNiLkRlhWpTnW9ADHNG8hZPZ -ykWS0yTvHzaeyuXF40BJ/I5VsfOLNI5K8J+WwJyFkE7iUVOLC6SGLQqg62ToVGGY -f9Bv6aQfYShR9Xo/wa8HIofxu+YJLbNm1VZ7ZNIb2KAmxDaQsW4TGtvvmo/B2a8b -iUBvL1heE1d+5FImyHvTP749+oOyVcGT9Li2301r4/swY/Cg5JwTUxU2sQe82BLW -slCnlxWHKOR04hKzSiXAFzrXelWMbQbvXIacoIsds8aCoxf6dq0JT5ZKr1SD3N0E -m/mB3usN2XyyBDgbUb0ab5Xw+ofw0scFHu+27D+xw+NuGLPpLpG0ZXeaDQriS9uv -jajXj1AjvjLpC4ebqK8SMoVgjl+wZ2rmioe+BuW/h7nQ9ElFOKkVOMCzL3fMk7w5 -7139BMpidJKEjDYILr3W8F6wO62EXpupE+Y05JlKJSlUm0PKEVNm4N3ou3T9RVfl -uLCrJqFcIw91/yPYiquKCvM7WxwWAocLv8xkGpazSJHVCRYC4XHqnuQMpIh7nqVS -47RzgLRR0o7iojVl/GgD -=CFDN +iQIcBAEBCAAGBQJTXcU5AAoJECRx6z5ArFrDIZIQAMvAkkfZvgwJHoqFs/nc7wIh +G/uuG7MezM/dHr/yAxZmIbIgQqLOpTMYq7AfiwRnWTakakdTcXsaS22SB8eBRB0Y +nCJkVkTU/N4XEDPExCT+5/UK1baY95mTWEiommNnyWW+9FpWI69OvX/oMv6Q2yYu +z2Mwdd6vliMQXxPfJX1bnU4AizPIPOf6oQ/JyjkLwwCMy3asYJT6fMnQsVEE5YH+ +yiEadd+K/ouIw9a6AZRcVvakZgWF7pLTnaYRhYR/o7TT/WlKI1XbbZj3T1gZPdR4 +E3Xbfln5nKcls3Gzre95Uu3PFz3M+I/ATW4KFgabVjB0+3/QB2nFc7pd7PAVaT7p +QGyyzldoFHXNV2qwxd5Qcq2GlVWfdyKiEIopdliNvvUrOdcZSf9fWgIDR1OqGyRO +O+8sq6W8hjwhIPQ32q8pV31Cb9NXFxdHGMm38nXcViDrQoE3S7fuLpTQOzRmLcNp +aP9Pe+Nbl9DRFUxXL6xpmvvPwKcNaT2roGnqoJZHIqxFtdIJvRf8CHg2dE8nkzFr +Uo/EKS9HaZXWeUqR/Ixz5Qi6OUgkVCJIsooLfSNOQh+uTW/ISkVFTDOIEygmSrbl +HBlECpkhSQkM9/toiGuFBXO2v/VNJScvNfl9RNRSS0Pfvotn4cN7XEE6oxSyn+tW +8Rzg6YfrIGauebTqf376 +=KuKY -----END PGP SIGNATURE----- diff --git a/sys-cluster/nova/files/nova.initd b/sys-cluster/nova/files/nova.initd index e1f44f8913aa..ff1f4b11f7ca 100644 --- a/sys-cluster/nova/files/nova.initd +++ b/sys-cluster/nova/files/nova.initd @@ -17,4 +17,5 @@ depend() { start_pre() { checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0664 ${NOVA_RUN:-/var/run/nova} + checkpath --directory --owner ${NOVA_USER:-nova}:${NOVA_GROUP:-nova} --mode 0664 ${NOVA_RUN:-/var/lock/nova} } diff --git a/sys-cluster/nova/nova-2014.1.9999.ebuild b/sys-cluster/nova/nova-2014.1.9999.ebuild new file mode 100644 index 000000000000..99f31d92c8cc --- /dev/null +++ b/sys-cluster/nova/nova-2014.1.9999.ebuild @@ -0,0 +1,121 @@ +# 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.1.9999.ebuild,v 1.1 2014/04/28 03:03:58 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils git-2 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/icehouse" + +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.6[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + app-admin/sudo" + +RDEPEND="sqlite? ( >=dev-python/sqlalchemy-0.7.8[sqlite,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] ) + mysql? ( >=dev-python/sqlalchemy-0.7.8[mysql,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[mysql,${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/sqlalchemy-0.7.8[postgres,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[postgres,${PYTHON_USEDEP}] ) + >=dev-python/amqplib-0.6.1[${PYTHON_USEDEP}] + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + virtual/python-argparse[${PYTHON_USEDEP}] + >=dev-python/boto-2.12.0[${PYTHON_USEDEP}] + !~dev-python/boto-2.13.0[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}] + >=dev-python/lxml-2.3[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3-r1[${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.8.2[${PYTHON_USEDEP}] + !~dev-python/sqlalchemy-migrate-0.8.4[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}] + >=dev-python/suds-0.4[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.9.0[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + >=dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + >=dev-python/python-cinderclient-1.0.6[${PYTHON_USEDEP}] + >=dev-python/python-neutronclient-2.3.4[${PYTHON_USEDEP}] + <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}] + >=dev-python/python-glanceclient-0.9.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + >=dev-python/websockify-0.5.1[${PYTHON_USEDEP}] + <dev-python/websockify-0.6[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}] + dev-python/oslo-rootwrap[${PYTHON_USEDEP}] + >=dev-python/pycadf-0.4.1[${PYTHON_USEDEP}] + >=dev-python/oslo-messaging-1.3.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 + kvm? ( app-emulation/qemu ) + xen? ( app-emulation/xen + app-emulation/xen-tools )" + +PATCHES=( +) + +pkg_setup() { + enewgroup nova + enewuser nova -1 -1 /var/lib/nova 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 nova + dodir /var/log/nova /var/lib/nova/instances + + 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.1.ebuild b/sys-cluster/nova/nova-2014.1.ebuild new file mode 100644 index 000000000000..e4af705be717 --- /dev/null +++ b/sys-cluster/nova/nova-2014.1.ebuild @@ -0,0 +1,120 @@ +# 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.1.ebuild,v 1.1 2014/04/28 03:03:58 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils 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}/icehouse/${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.6[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + app-admin/sudo" + +RDEPEND="sqlite? ( >=dev-python/sqlalchemy-0.7.8[sqlite,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] ) + mysql? ( >=dev-python/sqlalchemy-0.7.8[mysql,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[mysql,${PYTHON_USEDEP}] ) + postgres? ( >=dev-python/sqlalchemy-0.7.8[postgres,${PYTHON_USEDEP}] + <dev-python/sqlalchemy-0.9.99[postgres,${PYTHON_USEDEP}] ) + >=dev-python/amqplib-0.6.1[${PYTHON_USEDEP}] + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + virtual/python-argparse[${PYTHON_USEDEP}] + >=dev-python/boto-2.12.0[${PYTHON_USEDEP}] + !~dev-python/boto-2.13.0[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}] + >=dev-python/lxml-2.3[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3-r1[${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.8.2[${PYTHON_USEDEP}] + !~dev-python/sqlalchemy-migrate-0.8.4[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}] + >=dev-python/suds-0.4[${PYTHON_USEDEP}] + >=dev-python/paramiko-1.9.0[${PYTHON_USEDEP}] + dev-python/pyasn1[${PYTHON_USEDEP}] + >=dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + >=dev-python/python-cinderclient-1.0.6[${PYTHON_USEDEP}] + >=dev-python/python-neutronclient-2.3.4[${PYTHON_USEDEP}] + <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}] + >=dev-python/python-glanceclient-0.9.0[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + >=dev-python/websockify-0.5.1[${PYTHON_USEDEP}] + <dev-python/websockify-0.6[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}] + dev-python/oslo-rootwrap[${PYTHON_USEDEP}] + >=dev-python/pycadf-0.4.1[${PYTHON_USEDEP}] + >=dev-python/oslo-messaging-1.3.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 + kvm? ( app-emulation/qemu ) + xen? ( app-emulation/xen + app-emulation/xen-tools )" + +PATCHES=( +) + +pkg_setup() { + enewgroup nova + enewuser nova -1 -1 /var/lib/nova 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 nova + dodir /var/log/nova /var/lib/nova/instances + + 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" +} |