diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2014-04-28 02:59:22 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2014-04-28 02:59:22 +0000 |
commit | dc715b99e37cff24440ae3f9547d408de43c5622 (patch) | |
tree | bc44e4aa1383acc4cc2ca7d7495b940a3c13631c /sys-cluster | |
parent | yet more shit (diff) | |
download | historical-dc715b99e37cff24440ae3f9547d408de43c5622.tar.gz historical-dc715b99e37cff24440ae3f9547d408de43c5622.tar.bz2 historical-dc715b99e37cff24440ae3f9547d408de43c5622.zip |
more and more
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/neutron/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/neutron/Manifest | 31 | ||||
-rw-r--r-- | sys-cluster/neutron/neutron-2014.1.9999.ebuild | 155 | ||||
-rw-r--r-- | sys-cluster/neutron/neutron-2014.1.ebuild | 154 |
4 files changed, 334 insertions, 15 deletions
diff --git a/sys-cluster/neutron/ChangeLog b/sys-cluster/neutron/ChangeLog index 11d853a3fd2d..d31329f0295d 100644 --- a/sys-cluster/neutron/ChangeLog +++ b/sys-cluster/neutron/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-cluster/neutron # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.28 2014/04/06 06:22:16 prometheanfire Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.29 2014/04/28 02:59:13 prometheanfire Exp $ + +*neutron-2014.1.9999 (28 Apr 2014) +*neutron-2014.1 (28 Apr 2014) + + 28 Apr 2014; Matthew Thode <prometheanfire@gentoo.org> + +neutron-2014.1.9999.ebuild, +neutron-2014.1.ebuild: + more and more *neutron-2013.2.3 (06 Apr 2014) diff --git a/sys-cluster/neutron/Manifest b/sys-cluster/neutron/Manifest index 9f3a9fcc6d75..db17a8d9c01e 100644 --- a/sys-cluster/neutron/Manifest +++ b/sys-cluster/neutron/Manifest @@ -10,25 +10,28 @@ AUX neutron-sudoers 88 SHA256 bb631691e67d9ddc405fd1f6a23b066120ecebfbf3a48bca75 AUX nicira.patch 5757 SHA256 62484fa9d817feee1edc0a51ea1eeca068406f8f76e34c845b85ea51664e20d6 SHA512 f160a36f78d9a1186e19cdfb4f97b17e39e1a6f3e20bcaf84e76e71c632b0a6e8af89645d507f2c6f60a9f7d09a741302d476731c2fc798dfa999aaf38f1e273 WHIRLPOOL b7b5e0618caa8c6acc65f46c315d81b427810f3d6b1e89b48fc79567717c90a2e81e091d532ea192ac68ad432374fb9debe79d7b2c0a5a82d7d8cec8ca64f50e AUX sphinx_mapping.patch 835 SHA256 f4745338474c9191ba386f81705cc8c9a6effb09116c65664654eb733d081252 SHA512 988236676ef0550ca96cc05e606d43280969e89b31971244ece89d63cdcbcbcfd3ac595adca03a6308996ef58ebc4f75b0dfd65a938ad7c3fb67fb785e09f8c9 WHIRLPOOL 6154ee51ecd63040d9a6c2058f369a7243c719cbda3f73484d55ea9425a5c9982d3921d91d152aa27c61c5635d74f2afa57ff1b5aaa10b1be1e7c1475ff74e5f DIST neutron-2013.2.3.tar.gz 4019060 SHA256 116cc2ce9f2f5b2dcbd5a314d78a496b180a148dadd02a076ff664b0f3c20cd3 SHA512 5da42379e16b06c371f460b919731c88d451b6a245fc2370378d58cae7a1e3a4f4c743efbfba5466161e60a13084e0a18b9441b1e394d11074b52a26439ff8ff WHIRLPOOL 3b248ee9c5db8636740e400c45d69147cfe34a5fd81cfd2bb4706dbb293d91a73fd387df7f70012d524a457f8cb5898bf0313f4d72a70f7454381c65baae47f6 +DIST neutron-2014.1.tar.gz 6386204 SHA256 455c0e7c8d59a6c41f0596977441d970669859272e2303ba9852290f60a3d0a6 SHA512 a00c5896a459efcc83cd48812fe378e40aaaac0756f7a51c489b14ddebb1cbecc444370fd3904b4adedde5c8fe2409beb4f4d9676a57c7d6729275328cb5c123 WHIRLPOOL 847043a76c5b6038fb2f61e495af820f3671eff26089be33153c806709212196420acce0da4b8c394d10e9ff7239dbefe8e0b061bf4b4320354cb3e7cf318b68 EBUILD neutron-2013.2.3.ebuild 5696 SHA256 5b8e1d5deb6e9bfae30ade8e1f4bb609b78bd70949a41ae42faf8fd826421825 SHA512 84c03e924fd8e0c02e86047b23b2109bfa43f7724e63c548690ba0db71b5586d17ff62376fbb6b777527cc4d3f0891c666f594a75072f0a733fbc0570850547a WHIRLPOOL 07b1ada0e233f1ff08d4b161aefa163045db42c28caa0bf23eedb4a3ee3b09069997e0edaa5962adbd2868679cfd85a1b974cdc657a66b0f340475380e89f07a EBUILD neutron-2013.2.9999.ebuild 5699 SHA256 eca1d474ea110482cc901ada794f72efb495de226834b11a87c005185af7bb1d SHA512 94bc0bf14894f20772586b7f19694f38fba9654404c6b507cfa9e483a90df166e32f6ab1db04d24f5a0147438fbc8f4def248d08101fec59d2849744bca5dde9 WHIRLPOOL fefec821fcfb38c3af2d84e961816486b86eeb2419ee33d6353991f6fd7fa710e5ee183c2469597850116028560eb67dec1a8ab17d471dd3b5aff3ba2523950c +EBUILD neutron-2014.1.9999.ebuild 5646 SHA256 512be457a6af1c08bd0fcde34db2c9deb5da098390ca4c25e66d48dd9330cd75 SHA512 6fb3063e75b4178182417978f21280b7fd618cb2f6bccb2e9f3353f668d2795b7377af8bd1a78d771770e11f2fef3c47f744db7039df29b10a4bcfb77fa02b99 WHIRLPOOL cf9ddce505837c90fa11f78ab1fe7b448d094117df2f0927a915020d310051f0329212b8f0abb54ff8202c98e52000acc64c5ffec51ef01c00b4c12db87ffab9 +EBUILD neutron-2014.1.ebuild 5633 SHA256 33a20236bbeaf62fbd600ee921c1c90094796dff499e3c48cffb57b3ad54b59c SHA512 951cb3b71937db61c48ef2fc83dd3d7d08f2216aaffa44cb69a1964f0f0260ebc65694f05e12180d86eaf9c9deec627528e543e34729c9c9c59e188f0bf62f99 WHIRLPOOL 05bf51b172825c5aa4f3f1799f23c04c3f774af10678943bbd1bc7684b916fba066cf3504ad2c78700875bdf4557e0bec3c4b9b9f05c2bee31621bf4da76d138 EBUILD neutron-9999.ebuild 4409 SHA256 7e81a4614bc6813ac6c71f330f02afdd4986de592bed8deb9ff662823f349b97 SHA512 cdca470997f7b31d5f99a682ae21f22870678437a1bd8128e3e7140589b3b6041f133108fdb3f390f8da768f4e131f327000ee3f3c7adb1bcc7332e038adde9d WHIRLPOOL 2288062acc8e99c6707917fc2ff80bf54ebf736cac1b3158b42148c6575e3f23c01257383ac030d75af9d0dcb422486bccc8f0d564c6eb805ff5c245d3cbcd4a -MISC ChangeLog 10062 SHA256 103ec2b2741edbe4da68661cb7316d2abb87234ff41c3cc24f4f0335824a3b10 SHA512 966e1b3f86e867ebdd4c8bfb789c8f5a60edfaf79f5dd1c1549230a28086180185d84e47b2b7e548cc20c7ba3ae90780c0f78075118360942ff81f8a8726b1a0 WHIRLPOOL 5aa6b3140fb3737407027dffd6c9d469e1c7ade3ca070eb779cc297beb5f75dbd40f4f94e6b5afe0a8f0d82932a2018a1725c1ae7d32a3301d2187a073bf7a28 +MISC ChangeLog 10257 SHA256 f8455c1cbaec56641a6fb3239b594098ba938669069d63d3dbb4077bdd2e950d SHA512 2f1cc49dd48c8c32c9a9eb56b34e28bf0980ab18c7454d453ea8a369511379e2fd607b5feb84d1249467a7b8b4e377584affaa98538e536ed9970864d00a1162 WHIRLPOOL 99574905d183dc3d1c8f10c99d3c82c09200158fcab5c8094a1ce5828d09e3ce9bfc9c363fc7e993d0a0317869c567a779c15dd8a299ab74bbe39d3cd7ddf5de MISC metadata.xml 1175 SHA256 95ceaccefb744f80032d97a4cc13c43c13d7e4116d6810d5779df5be3ebe11ce SHA512 74a46511f82bef78397bfaef2901606c6f468f532bbd7112fc8196b69362a4666fafbda8023a281514ada958cd2b4ba567f11dfa071d0b76bc94e456d96ed287 WHIRLPOOL 783aa30c05484b68b2a8f1ebcfd39294a21731cfa9587c0e1cd07ff291416d10912066e23c0572ac63a125f9836374c73b91775858c863abb0779eb13356ca11 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQIcBAEBCAAGBQJTQPLTAAoJECRx6z5ArFrDDCsP/1DDZizOi41QYZKi4rusTDXQ -PHX6YiHa87GlGgqLI0O+Thp5jikd71k8BsD/S2RjV86OzFJBgD7S5BgCIa4aT3MD -XNK6YspZM0OsqhXqGTWVSssfr9tLDO1aPJGIGeukIq4xE7rFXF+Yk5f6jnETkHNF -2nMcpBwclS6jtlVgXhp0BwFEiaR5cWxYlDDF2Pt7MCmU7fZmElZqacLqsWjD5j5t -aDcs9YIgeO8jGteldtV6j2U3WmQHuz/UakLRBZEvsMqwzq9TMYPCHG7YGoVpL+5n -nA8tKCEuOp2UI/jGLtCgS9ssLGQxR6Oh9vRxZzOH4cUycQpwE1wMwrzJc+s6Rf/r -LryLlb80krMVBypOl6G9KMcAgEA1ereKmCiUxW67F/AjMU9188JLM8YNQzvBnBe9 -7dcK1ls+0TtO0EeseBOB3HZQITEiVRoIT94YewfQeT0Xm2TnDOou4rY6LQLr6CPV -PvLbkuVY1IQNiIILdA6qCGwTW8vCJ7Yhv/qAncxGWgEhcjFGf7x+gkvZWlFBhIMv -DkQ3Jh1GUzR51CLgCM5CqBnv1Qsvx5WRHsu3ksIntMpB4AJ1AOZL99HlAyBxf+29 -eCWFTLrVKgb5mwemRvLMhyNr4fSUO49fYyR68z6NT+b+wnlMfvI8IXMMK/kv6ReI -1gKHM58pO302FKjC8ka6 -=sAcg +iQIcBAEBCAAGBQJTXcQaAAoJECRx6z5ArFrDK54P/2A/K0CZ8bbmxTPo5rxckQf8 +5R7jPvK6ju/HE+crcuV/0Dztmw1UkHFgXRhM+OMIUX7H80nELPNZgNsmPNDFiwyp +zW2kXTrbnN8DcgFJfNPQRPne44K8OX7738N6Xs1xJDlpSoG8ZkdSj86NtOGlUoD5 +E4vxTOpRXpNYHKxd0aOyteqcTtItEh3PnQxDvOEvdf+tShfWsGP34LBBUxBevcmg +IxkWbC7BVKf/MEaYgnxd9IZ77Q9ioiMW7Bkj1pRZKhB+rM/MV/LKJJLGPgSsphNo +cJaEndOQImU+QHB0OVnmu/VI6HHUMLVdzW1KIa0yl3ps75NlZ1NdJEHcLhpCZMZz +6/mZmSTgxA06ALUQke3KlybflxaJJ5TAVuIRhF7Stk3DH5/05OP2C0HtDzWOhBVO +tAPfEZw5/KrY9/6ivdEum4Xp4vuGthw49o6bMO+OIgOSzSpKXd6hymkj6nQ+mFSi +i07IYAZQvK3kBmfxkROvhcyE28XC1bS0kr9bUBfgSK3bJs5jnD7Yvh7qMjQfWRAc +edvjXtobwNbtC3I907rK/G8t+RJOBKY1sFZRe7mwezt0YOu1I6s7QsRWvofz2fOu +a78Z8NjA3XX1qsV+XL77+vy2ReMefetSNcuSb4F9plK4RXL0WQqmIt10OS953Uru +k+3z/2piC2ID3e9s2f4f +=QRpD -----END PGP SIGNATURE----- diff --git a/sys-cluster/neutron/neutron-2014.1.9999.ebuild b/sys-cluster/neutron/neutron-2014.1.9999.ebuild new file mode 100644 index 000000000000..2f19bc976d19 --- /dev/null +++ b/sys-cluster/neutron/neutron-2014.1.9999.ebuild @@ -0,0 +1,155 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/neutron-2014.1.9999.ebuild,v 1.1 2014/04/28 02:59:13 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 git-2 user + +DESCRIPTION="A virtual network service for Openstack." +HOMEPAGE="https://launchpad.net/neutron" +EGIT_REPO_URI="https://github.com/openstack/neutron.git" +EGIT_BRANCH="stable/icehouse" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="" +IUSE="+dhcp doc +l3 +metadata +openvswitch +server test sqlite mysql postgres" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +#the cliff dep is as below because it depends on pyparsing, which only has 2.7 OR 3.2, not both +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.6[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + app-admin/sudo + test? ( >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.9[${PYTHON_USEDEP}] + >=dev-python/cliff-1.4.3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + <dev-python/sphinx-1.2[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] + >=dev-python/webtest-2.0[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] )" + +RDEPEND="dev-python/paste[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] + >=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}] + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + virtual/python-argparse[${PYTHON_USEDEP}] + >=dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + dev-python/jsonrpclib[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}] + >=dev-python/python-neutronclient-2.3.4[${PYTHON_USEDEP}] + <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}] + 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/webob-1.2.3[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/alembic-0.4.1[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}] + dev-python/oslo-rootwrap[${PYTHON_USEDEP}] + >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + sys-apps/iproute2 + openvswitch? ( net-misc/openvswitch ) + dhcp? ( net-dns/dnsmasq[dhcp-tools] )" + +PATCHES=( "${FILESDIR}/sphinx_mapping.patch" + "${FILESDIR}/nicira.patch" ) + +pkg_setup() { + enewgroup neutron + enewuser neutron -1 -1 /var/lib/neutron neutron +} + +pkg_config() { + fperms 0700 /var/log/neutron + fowners neutron:neutron /var/log neutron +} + +src_prepare() { + #it's /bin/ip not /sbin/ip + sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* + distutils-r1_src_prepare +} + +python_compile_all() { + use doc && make -C doc html +} + +python_test() { + # https://bugs.launchpad.net/neutron/+bug/1234857 + # https://bugs.launchpad.net/swift/+bug/1249727 + # https://bugs.launchpad.net/neutron/+bug/1251657 + # turn multiprocessing off, testr will use it --parallel + local DISTUTILS_NO_PARALLEL_BUILD=1 + # Move tests out that attempt net connection, have failures + mv $(find . -name test_ovs_tunnel.py) . || die + sed -e 's:test_app_using_ipv6_and_ssl:_&:' \ + -e 's:test_start_random_port_with_ipv6:_&:' \ + -i neutron/tests/unit/test_wsgi.py || die + testr init + testr run --parallel || die "failed testsuite under python2.7" +} + +python_install() { + distutils-r1_python_install + newconfd "${FILESDIR}/neutron-confd" "neutron" + newinitd "${FILESDIR}/neutron-initd" "neutron" + + use server && dosym /etc/init.d/neutron /etc/init.d/neutron-server + use dhcp && dosym /etc/init.d/neutron /etc/init.d/neutron-dhcp-agent + use l3 && dosym /etc/init.d/neutron /etc/init.d/neutron-l3-agent + use metadata && dosym /etc/init.d/neutron /etc/init.d/neutron-metadata-agent + use openvswitch && dosym /etc/init.d/neutron /etc/init.d/neutron-openvswitch-agent + + diropts -m 750 + dodir /var/log/neutron /var/log/neutron + fowners neutron:neutron /var/log/neutron + keepdir /etc/neutron + insinto /etc/neutron + + doins "etc/api-paste.ini" + doins "etc/dhcp_agent.ini" + doins "etc/l3_agent.ini" + doins "etc/policy.json" + doins "etc/neutron.conf" + doins "etc/rootwrap.conf" + insinto /etc + doins -r "etc/neutron/" + + #remove the etc stuff from usr... + rm -R "${D}/usr/etc/" + + insinto "/usr/lib64/python2.7/site-packages/neutron/db/migration/alembic_migrations/" + doins -r "neutron/db/migration/alembic_migrations/versions" + + #add sudoers definitions for user neutron + insinto /etc/sudoers.d/ + doins "${FILESDIR}/neutron-sudoers" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all +} diff --git a/sys-cluster/neutron/neutron-2014.1.ebuild b/sys-cluster/neutron/neutron-2014.1.ebuild new file mode 100644 index 000000000000..05d3e25d2020 --- /dev/null +++ b/sys-cluster/neutron/neutron-2014.1.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/neutron-2014.1.ebuild,v 1.1 2014/04/28 02:59:13 prometheanfire Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 user + +DESCRIPTION="A virtual network service for Openstack." +HOMEPAGE="https://launchpad.net/neutron" +SRC_URI="http://launchpad.net/${PN}/icehouse/${PV}/+download/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+dhcp doc +l3 +metadata +openvswitch +server test sqlite mysql postgres" +REQUIRED_USE="|| ( mysql postgres sqlite )" + +#the cliff dep is as below because it depends on pyparsing, which only has 2.7 OR 3.2, not both +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/pbr-0.6[${PYTHON_USEDEP}] + <dev-python/pbr-1.0[${PYTHON_USEDEP}] + app-admin/sudo + test? ( >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] + <dev-python/hacking-0.9[${PYTHON_USEDEP}] + >=dev-python/cliff-1.4.3[${PYTHON_USEDEP}] + >=dev-python/coverage-3.6[${PYTHON_USEDEP}] + >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}] + >=dev-python/mock-1.0[${PYTHON_USEDEP}] + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] + >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] + <dev-python/sphinx-1.2[${PYTHON_USEDEP}] + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] + >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] + >=dev-python/webtest-2.0[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] )" + +RDEPEND="dev-python/paste[${PYTHON_USEDEP}] + >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}] + >=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}] + >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}] + virtual/python-argparse[${PYTHON_USEDEP}] + >=dev-python/Babel-1.3[${PYTHON_USEDEP}] + >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}] + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}] + >=dev-python/requests-1.1[${PYTHON_USEDEP}] + >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] + dev-python/jsonrpclib[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}] + >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}] + >=dev-python/python-neutronclient-2.3.4[${PYTHON_USEDEP}] + <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}] + 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/webob-1.2.3[${PYTHON_USEDEP}] + >=dev-python/python-keystoneclient-0.7.0[${PYTHON_USEDEP}] + >=dev-python/alembic-0.4.1[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] + >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}] + dev-python/oslo-rootwrap[${PYTHON_USEDEP}] + >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] + dev-python/pyudev[${PYTHON_USEDEP}] + sys-apps/iproute2 + openvswitch? ( net-misc/openvswitch ) + dhcp? ( net-dns/dnsmasq[dhcp-tools] )" + +PATCHES=( "${FILESDIR}/sphinx_mapping.patch" + "${FILESDIR}/nicira.patch" ) + +pkg_setup() { + enewgroup neutron + enewuser neutron -1 -1 /var/lib/neutron neutron +} + +pkg_config() { + fperms 0700 /var/log/neutron + fowners neutron:neutron /var/log neutron +} + +src_prepare() { + #it's /bin/ip not /sbin/ip + sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* + distutils-r1_src_prepare +} + +python_compile_all() { + use doc && make -C doc html +} + +python_test() { + # https://bugs.launchpad.net/neutron/+bug/1234857 + # https://bugs.launchpad.net/swift/+bug/1249727 + # https://bugs.launchpad.net/neutron/+bug/1251657 + # turn multiprocessing off, testr will use it --parallel + local DISTUTILS_NO_PARALLEL_BUILD=1 + # Move tests out that attempt net connection, have failures + mv $(find . -name test_ovs_tunnel.py) . || die + sed -e 's:test_app_using_ipv6_and_ssl:_&:' \ + -e 's:test_start_random_port_with_ipv6:_&:' \ + -i neutron/tests/unit/test_wsgi.py || die + testr init + testr run --parallel || die "failed testsuite under python2.7" +} + +python_install() { + distutils-r1_python_install + newconfd "${FILESDIR}/neutron-confd" "neutron" + newinitd "${FILESDIR}/neutron-initd" "neutron" + + use server && dosym /etc/init.d/neutron /etc/init.d/neutron-server + use dhcp && dosym /etc/init.d/neutron /etc/init.d/neutron-dhcp-agent + use l3 && dosym /etc/init.d/neutron /etc/init.d/neutron-l3-agent + use metadata && dosym /etc/init.d/neutron /etc/init.d/neutron-metadata-agent + use openvswitch && dosym /etc/init.d/neutron /etc/init.d/neutron-openvswitch-agent + + diropts -m 750 + dodir /var/log/neutron /var/log/neutron + fowners neutron:neutron /var/log/neutron + keepdir /etc/neutron + insinto /etc/neutron + + doins "etc/api-paste.ini" + doins "etc/dhcp_agent.ini" + doins "etc/l3_agent.ini" + doins "etc/policy.json" + doins "etc/neutron.conf" + doins "etc/rootwrap.conf" + insinto /etc + doins -r "etc/neutron/" + + #remove the etc stuff from usr... + rm -R "${D}/usr/etc/" + + insinto "/usr/lib64/python2.7/site-packages/neutron/db/migration/alembic_migrations/" + doins -r "neutron/db/migration/alembic_migrations/versions" + + #add sudoers definitions for user neutron + insinto /etc/sudoers.d/ + doins "${FILESDIR}/neutron-sudoers" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + distutils-r1_python_install_all +} |