Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/neutron/
Date: Fri, 03 Jul 2020 00:32:01
Message-Id: 1593736303.ae9510be44badfab66435c62fae9d828835a0e1c.prometheanfire@gentoo
1 commit: ae9510be44badfab66435c62fae9d828835a0e1c
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 3 00:25:51 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 3 00:31:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae9510be
7
8 sys-cluster/neutron: remove train
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.23
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 sys-cluster/neutron/Manifest | 5 -
14 sys-cluster/neutron/neutron-15.1.0.ebuild | 229 -------------------------
15 sys-cluster/neutron/neutron-2019.2.9999.ebuild | 229 -------------------------
16 3 files changed, 463 deletions(-)
17
18 diff --git a/sys-cluster/neutron/Manifest b/sys-cluster/neutron/Manifest
19 index 6e0b4af34a3..c561ad8d858 100644
20 --- a/sys-cluster/neutron/Manifest
21 +++ b/sys-cluster/neutron/Manifest
22 @@ -1,10 +1,5 @@
23 -DIST neutron-15.1.0.tar.gz 10549248 BLAKE2B f9e4dff7c8ae1568187284c2676a67a572902a67ccf08998dcc0620938e6a15320a69297771c9686dd19c93f4363c7193e1b9f3763ef7423c62a85df6ec155b6 SHA512 89d737c52fd098fab13bfe6548d9a723bfcf4c97e2f6669915d07efe55d5e707ab19ea1af8fa7c328b9426998cc835c5ddb619799949efb1a9291d0654ea7b1e
24 DIST neutron-16.0.0.tar.gz 12746070 BLAKE2B 659ae3bc6971393522dc98ee5b4eccddd85aae17571734f24571e13892376ad2d9a25c09224e703a5b89511c2d696b69842469789649a1f239115ad2422af951 SHA512 f2c23a04d75328b8a671ac65163e6f84cd48880864331f6713793a037a23043779656cfdbe4aab6772fb4e5f5c606db9d97f3d4f3dc8f234920381a9929778cc
25 -DIST neutron-configs-15.1.0.tar.gz 23546 BLAKE2B df706681e63e4f36b54be33a6619da15d642803f40afe737bd31426f9b3643a6a032cb8bfcb95899d1e67b759155fd14bb45f41460cefdc7d9f91d3377a90d5d SHA512 ef4555be50dfb81a0558ed28eb917a1d0634d913a2b0b58deeae3132a0e3c61521074b21d195e51e348a08b55c21919b537ac3c7122f4d5524ead824642292fe
26 DIST neutron-configs-16.0.0.tar.gz 24350 BLAKE2B 8f6eeae762fa297651f07667387beac6677cfa9a6c0d13d3fc90ac09753022fd284fc56c53557ab83cda99ab4fe03acc2d2049e4bb62f9496b310b1cd6f42099 SHA512 b087b23a1aa19678d4b9a76ae82243d03fe82706712e8c37b759a8521062f79e83307769b4ba639f67aa402f8b03cdf12d3274d821c3f8ecfd17ded9f4f2c881
27 -DIST neutron-configs-2019.2.9999.tar.gz 23546 BLAKE2B df706681e63e4f36b54be33a6619da15d642803f40afe737bd31426f9b3643a6a032cb8bfcb95899d1e67b759155fd14bb45f41460cefdc7d9f91d3377a90d5d SHA512 ef4555be50dfb81a0558ed28eb917a1d0634d913a2b0b58deeae3132a0e3c61521074b21d195e51e348a08b55c21919b537ac3c7122f4d5524ead824642292fe
28 DIST neutron-configs-2020.1.9999.tar.gz 24350 BLAKE2B 8f6eeae762fa297651f07667387beac6677cfa9a6c0d13d3fc90ac09753022fd284fc56c53557ab83cda99ab4fe03acc2d2049e4bb62f9496b310b1cd6f42099 SHA512 b087b23a1aa19678d4b9a76ae82243d03fe82706712e8c37b759a8521062f79e83307769b4ba639f67aa402f8b03cdf12d3274d821c3f8ecfd17ded9f4f2c881
29 -DIST neutron-ml2-plugins-15.1.0.tar.gz 8669 BLAKE2B 3c34a857c0e7dd4e5313f5f9a1bb22384aeae6d1e43e719c50eab8dc3e842e98f202eb12cbb788127603931292deeed802f0592bad232e6a05121939e3b26fe0 SHA512 0e6858425ee3d3e2233c8ebf19aa8e62b5ff849532a2fdceb953f384f3b33432137537afbb2878f23ec5eb57e185eda36a6d6ff71d8be5f32b43abcb5c186082
30 DIST neutron-ml2-plugins-16.0.0.tar.gz 8887 BLAKE2B 5887027ce4585a523bb3379c002acdde1faa9ed24d0c83c931f2a387b56e8baf8352ae9f82ba46c85a6a3e5b1d68792da1e1ca1fae9b6dde525e6f6c67849ac4 SHA512 4ae70fe3e386932e0327333d29dc526b5f0f0f800ac14d17faa4c1e3fc2dd8524760b84bbb4767e73e70647984aa50702e5e47dc42deb47f66c47c5e3e965111
31 -DIST neutron-ml2-plugins-2019.2.9999.tar.gz 8669 BLAKE2B 3c34a857c0e7dd4e5313f5f9a1bb22384aeae6d1e43e719c50eab8dc3e842e98f202eb12cbb788127603931292deeed802f0592bad232e6a05121939e3b26fe0 SHA512 0e6858425ee3d3e2233c8ebf19aa8e62b5ff849532a2fdceb953f384f3b33432137537afbb2878f23ec5eb57e185eda36a6d6ff71d8be5f32b43abcb5c186082
32 DIST neutron-ml2-plugins-2020.1.9999.tar.gz 8887 BLAKE2B 5887027ce4585a523bb3379c002acdde1faa9ed24d0c83c931f2a387b56e8baf8352ae9f82ba46c85a6a3e5b1d68792da1e1ca1fae9b6dde525e6f6c67849ac4 SHA512 4ae70fe3e386932e0327333d29dc526b5f0f0f800ac14d17faa4c1e3fc2dd8524760b84bbb4767e73e70647984aa50702e5e47dc42deb47f66c47c5e3e965111
33
34 diff --git a/sys-cluster/neutron/neutron-15.1.0.ebuild b/sys-cluster/neutron/neutron-15.1.0.ebuild
35 deleted file mode 100644
36 index 5deaec79742..00000000000
37 --- a/sys-cluster/neutron/neutron-15.1.0.ebuild
38 +++ /dev/null
39 @@ -1,229 +0,0 @@
40 -# Copyright 1999-2020 Gentoo Authors
41 -# Distributed under the terms of the GNU General Public License v2
42 -
43 -EAPI=7
44 -PYTHON_COMPAT=( python3_{6,7} )
45 -# still no 34 :( https://bugs.launchpad.net/neutron/+bug/1630439
46 -
47 -inherit distutils-r1 linux-info
48 -
49 -DESCRIPTION="A virtual network service for Openstack"
50 -HOMEPAGE="https://launchpad.net/neutron"
51 -if [[ ${PV} == *9999 ]];then
52 - inherit git-r3
53 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/configs.tar.gz -> neutron-configs-${PV}.tar.gz
54 - https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz"
55 - EGIT_REPO_URI="https://github.com/openstack/neutron.git"
56 - EGIT_BRANCH="stable/train"
57 -else
58 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/configs.tar.gz -> neutron-configs-${PV}.tar.gz
59 - https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz
60 - https://tarballs.openstack.org/${PN}/${P}.tar.gz"
61 - KEYWORDS="amd64 ~arm64 x86"
62 -fi
63 -
64 -LICENSE="Apache-2.0"
65 -SLOT="0"
66 -IUSE="compute-only dhcp haproxy ipv6 l3 metadata openvswitch linuxbridge server sqlite +mysql postgres"
67 -REQUIRED_USE="!compute-only? ( || ( mysql postgres sqlite ) )
68 - compute-only? ( !mysql !postgres !sqlite !dhcp !l3 !metadata !server
69 - || ( openvswitch linuxbridge ) )"
70 -
71 -CDEPEND=">=dev-python/pbr-4.0.0[${PYTHON_USEDEP}]"
72 -DEPEND="
73 - dev-python/setuptools[${PYTHON_USEDEP}]
74 - ${CDEPEND}
75 - app-admin/sudo"
76 -
77 -RDEPEND="
78 - ${CDEPEND}
79 - >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
80 - >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
81 - >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
82 - >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
83 - >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
84 - >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
85 - !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
86 - >=dev-python/pecan-1.3.2[${PYTHON_USEDEP}]
87 - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
88 - >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
89 - >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
90 - >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
91 - >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
92 - >=dev-python/neutron-lib-1.29.1[${PYTHON_USEDEP}]
93 - >=dev-python/python-neutronclient-6.3.0[${PYTHON_USEDEP}]
94 - >=dev-python/tenacity-3.2.1[${PYTHON_USEDEP}]
95 - compute-only? (
96 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
97 - )
98 - sqlite? (
99 - >=dev-python/sqlalchemy-1.2.0[sqlite,${PYTHON_USEDEP}]
100 - )
101 - mysql? (
102 - >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
103 - !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
104 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
105 - )
106 - postgres? (
107 - >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
108 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
109 - )
110 - >=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
111 - >=dev-python/keystoneauth-3.4.0[${PYTHON_USEDEP}]
112 - >=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
113 - >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
114 - >=dev-python/stevedore-1.20.1[${PYTHON_USEDEP}]
115 - >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
116 - >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
117 - >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
118 - >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
119 - >=dev-python/oslo-db-4.37.0[${PYTHON_USEDEP}]
120 - >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
121 - >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
122 - >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}]
123 - >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
124 - >=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}]
125 - >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
126 - >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
127 - >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
128 - >=dev-python/oslo-serialization-1.18.0[${PYTHON_USEDEP}]
129 - !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
130 - >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
131 - !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
132 - >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
133 - >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
134 - >=dev-python/oslo-versionedobjects-1.35.1[${PYTHON_USEDEP}]
135 - >=dev-python/osprofiler-2.3.0[${PYTHON_USEDEP}]
136 - >=dev-python/os-ken-0.3.0[${PYTHON_USEDEP}]
137 - >=dev-python/ovs-2.8.0[${PYTHON_USEDEP}]
138 - >=dev-python/ovsdbapp-0.9.1[${PYTHON_USEDEP}]
139 - >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
140 - >=dev-python/pyroute2-0.5.3[${PYTHON_USEDEP}]
141 - >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
142 - >=dev-python/openstacksdk-0.31.2[${PYTHON_USEDEP}]
143 - >=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
144 - >=dev-python/os-xenapi-0.3.1[${PYTHON_USEDEP}]
145 - >=dev-python/os-vif-1.15.1[${PYTHON_USEDEP}]
146 - dev-python/pyudev[${PYTHON_USEDEP}]
147 - sys-apps/iproute2
148 - net-misc/iputils[arping]
149 - net-misc/bridge-utils
150 - net-firewall/ipset
151 - net-firewall/iptables
152 - net-firewall/ebtables
153 - net-firewall/conntrack-tools
154 - haproxy? ( net-proxy/haproxy )
155 - openvswitch? ( net-misc/openvswitch )
156 - ipv6? (
157 - net-misc/radvd
158 - >=net-misc/dibbler-1.0.1
159 - )
160 - dhcp? ( net-dns/dnsmasq[dhcp-tools] )
161 - acct-group/neutron
162 - acct-user/neutron"
163 -
164 -#PATCHES=(
165 -#)
166 -
167 -pkg_pretend() {
168 - linux-info_pkg_setup
169 - CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
170 - IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 \
171 - NF_NAT_IPV4 NF_NAT NF_CONNTRACK IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
172 - if linux_config_exists; then
173 - for module in ${CONFIG_CHECK_MODULES}; do
174 - linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
175 - done
176 - fi
177 -}
178 -
179 -pkg_config() {
180 - fperms 0700 /var/log/neutron
181 - fowners neutron:neutron /var/log neutron
182 -}
183 -
184 -src_prepare() {
185 - sed -i '/^hacking/d' test-requirements.txt || die
186 - # it's /bin/ip not /sbin/ip
187 - sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* || die
188 - distutils-r1_python_prepare_all
189 -}
190 -
191 -python_install_all() {
192 - distutils-r1_python_install_all
193 - if use server; then
194 - newinitd "${FILESDIR}/neutron.initd" "neutron-server"
195 - newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
196 - dosym ../../plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
197 - fi
198 - if use dhcp; then
199 - newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
200 - newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
201 - fi
202 - if use l3; then
203 - newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
204 - newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
205 - fi
206 - if use metadata; then
207 - newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
208 - newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
209 - fi
210 - if use openvswitch; then
211 - newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
212 - newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
213 - newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
214 - newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
215 - fi
216 - if use linuxbridge; then
217 - newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
218 - newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
219 - fi
220 - diropts -m 755 -o neutron -g neutron
221 - dodir /var/log/neutron /var/lib/neutron
222 - keepdir /etc/neutron
223 - insinto /etc/neutron
224 - insopts -m 0640 -o neutron -g neutron
225 -
226 - doins etc/*
227 - # stupid renames
228 - insinto /etc/neutron
229 - doins -r "etc/neutron/plugins"
230 - insopts -m 0640 -o root -g root
231 - doins "etc/rootwrap.conf"
232 - doins -r "etc/neutron/rootwrap.d"
233 -
234 - #add sudoers definitions for user neutron
235 - insinto /etc/sudoers.d/
236 - insopts -m 0440 -o root -g root
237 - newins "${FILESDIR}/neutron.sudoersd" neutron
238 -
239 - # add generated configs
240 - cd "${D}/etc/neutron" || die
241 - unpack "neutron-configs-${PV}.tar.gz"
242 - cd "${D}/etc/neutron/plugins/ml2" || die
243 - unpack "neutron-ml2-plugins-${PV}.tar.gz"
244 -
245 - # correcting perms
246 - fowners neutron:neutron -R "/etc/neutron"
247 - fperms o-rwx -R "/etc/neutron/"
248 -
249 - #remove superfluous stuff
250 - rm -R "${D}/usr/etc/"
251 -}
252 -
253 -python_install() {
254 - distutils-r1_python_install
255 - # copy migration conf file (not coppied on install via setup.py script)
256 - python_moduleinto neutron/db/migration/alembic_migrations
257 - python_domodule "neutron/db/migration/alembic_migrations/versions"
258 -}
259 -
260 -pkg_postinst() {
261 - elog
262 - elog "neutron-server's conf.d file may need updating to include additional ini files"
263 - elog "We currently assume the ml2 plugin will be used but do not make assumptions"
264 - elog "on if you will use openvswitch or linuxbridge (or something else)"
265 - elog
266 - elog "Other conf.d files may need updating too, but should be good for the default use case"
267 - elog
268 -}
269
270 diff --git a/sys-cluster/neutron/neutron-2019.2.9999.ebuild b/sys-cluster/neutron/neutron-2019.2.9999.ebuild
271 deleted file mode 100644
272 index 0e695046904..00000000000
273 --- a/sys-cluster/neutron/neutron-2019.2.9999.ebuild
274 +++ /dev/null
275 @@ -1,229 +0,0 @@
276 -# Copyright 1999-2020 Gentoo Authors
277 -# Distributed under the terms of the GNU General Public License v2
278 -
279 -EAPI=7
280 -PYTHON_COMPAT=( python3_{6,7} )
281 -# still no 34 :( https://bugs.launchpad.net/neutron/+bug/1630439
282 -
283 -inherit distutils-r1 linux-info
284 -
285 -DESCRIPTION="A virtual network service for Openstack"
286 -HOMEPAGE="https://launchpad.net/neutron"
287 -if [[ ${PV} == *9999 ]];then
288 - inherit git-r3
289 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/configs.tar.gz -> neutron-configs-${PV}.tar.gz
290 - https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz"
291 - EGIT_REPO_URI="https://github.com/openstack/neutron.git"
292 - EGIT_BRANCH="stable/train"
293 -else
294 - SRC_URI="https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/configs.tar.gz -> neutron-configs-${PV}.tar.gz
295 - https://dev.gentoo.org/~prometheanfire/dist/openstack/neutron/train/ml2_plugins.tar.gz -> neutron-ml2-plugins-${PV}.tar.gz
296 - https://tarballs.openstack.org/${PN}/${P}.tar.gz"
297 - KEYWORDS="~amd64 ~arm64 ~x86"
298 -fi
299 -
300 -LICENSE="Apache-2.0"
301 -SLOT="0"
302 -IUSE="compute-only dhcp haproxy ipv6 l3 metadata openvswitch linuxbridge server sqlite +mysql postgres"
303 -REQUIRED_USE="!compute-only? ( || ( mysql postgres sqlite ) )
304 - compute-only? ( !mysql !postgres !sqlite !dhcp !l3 !metadata !server
305 - || ( openvswitch linuxbridge ) )"
306 -
307 -CDEPEND=">=dev-python/pbr-4.0.0[${PYTHON_USEDEP}]"
308 -DEPEND="
309 - dev-python/setuptools[${PYTHON_USEDEP}]
310 - ${CDEPEND}
311 - app-admin/sudo"
312 -
313 -RDEPEND="
314 - ${CDEPEND}
315 - >=dev-python/paste-2.0.2[${PYTHON_USEDEP}]
316 - >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
317 - >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
318 - >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
319 - >=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
320 - >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
321 - !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
322 - >=dev-python/pecan-1.3.2[${PYTHON_USEDEP}]
323 - >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
324 - >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
325 - >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
326 - >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
327 - >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
328 - >=dev-python/neutron-lib-1.29.1[${PYTHON_USEDEP}]
329 - >=dev-python/python-neutronclient-6.3.0[${PYTHON_USEDEP}]
330 - >=dev-python/tenacity-3.2.1[${PYTHON_USEDEP}]
331 - compute-only? (
332 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
333 - )
334 - sqlite? (
335 - >=dev-python/sqlalchemy-1.2.0[sqlite,${PYTHON_USEDEP}]
336 - )
337 - mysql? (
338 - >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
339 - !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
340 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
341 - )
342 - postgres? (
343 - >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
344 - >=dev-python/sqlalchemy-1.2.0[${PYTHON_USEDEP}]
345 - )
346 - >=dev-python/webob-1.8.2[${PYTHON_USEDEP}]
347 - >=dev-python/keystoneauth-3.4.0[${PYTHON_USEDEP}]
348 - >=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
349 - >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
350 - >=dev-python/stevedore-1.20.1[${PYTHON_USEDEP}]
351 - >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}]
352 - >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}]
353 - >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}]
354 - >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}]
355 - >=dev-python/oslo-db-4.37.0[${PYTHON_USEDEP}]
356 - >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
357 - >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}]
358 - >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}]
359 - >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}]
360 - >=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}]
361 - >=dev-python/oslo-privsep-1.32.0[${PYTHON_USEDEP}]
362 - >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}]
363 - >=dev-python/oslo-rootwrap-5.8.0[${PYTHON_USEDEP}]
364 - >=dev-python/oslo-serialization-1.18.0[${PYTHON_USEDEP}]
365 - !~dev-python/oslo-serialization-2.19.1[${PYTHON_USEDEP}]
366 - >=dev-python/oslo-service-1.24.0[${PYTHON_USEDEP}]
367 - !~dev-python/oslo-service-1.28.1[${PYTHON_USEDEP}]
368 - >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}]
369 - >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}]
370 - >=dev-python/oslo-versionedobjects-1.35.1[${PYTHON_USEDEP}]
371 - >=dev-python/osprofiler-2.3.0[${PYTHON_USEDEP}]
372 - >=dev-python/os-ken-0.3.0[${PYTHON_USEDEP}]
373 - >=dev-python/ovs-2.8.0[${PYTHON_USEDEP}]
374 - >=dev-python/ovsdbapp-0.9.1[${PYTHON_USEDEP}]
375 - >=dev-python/psutil-3.2.2[${PYTHON_USEDEP}]
376 - >=dev-python/pyroute2-0.5.3[${PYTHON_USEDEP}]
377 - >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}]
378 - >=dev-python/openstacksdk-0.31.2[${PYTHON_USEDEP}]
379 - >=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}]
380 - >=dev-python/os-xenapi-0.3.1[${PYTHON_USEDEP}]
381 - >=dev-python/os-vif-1.15.1[${PYTHON_USEDEP}]
382 - dev-python/pyudev[${PYTHON_USEDEP}]
383 - sys-apps/iproute2
384 - net-misc/iputils[arping]
385 - net-misc/bridge-utils
386 - net-firewall/ipset
387 - net-firewall/iptables
388 - net-firewall/ebtables
389 - net-firewall/conntrack-tools
390 - haproxy? ( net-proxy/haproxy )
391 - openvswitch? ( net-misc/openvswitch )
392 - ipv6? (
393 - net-misc/radvd
394 - >=net-misc/dibbler-1.0.1
395 - )
396 - dhcp? ( net-dns/dnsmasq[dhcp-tools] )
397 - acct-group/neutron
398 - acct-user/neutron"
399 -
400 -#PATCHES=(
401 -#)
402 -
403 -pkg_pretend() {
404 - linux-info_pkg_setup
405 - CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
406 - IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_DEFRAG_IPV4 NF_NAT NF_CONNTRACK \
407 - IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
408 - if linux_config_exists; then
409 - for module in ${CONFIG_CHECK_MODULES}; do
410 - linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
411 - done
412 - fi
413 -}
414 -
415 -pkg_config() {
416 - fperms 0700 /var/log/neutron
417 - fowners neutron:neutron /var/log neutron
418 -}
419 -
420 -src_prepare() {
421 - sed -i '/^hacking/d' test-requirements.txt || die
422 - # it's /bin/ip not /sbin/ip
423 - sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* || die
424 - distutils-r1_python_prepare_all
425 -}
426 -
427 -python_install_all() {
428 - distutils-r1_python_install_all
429 - if use server; then
430 - newinitd "${FILESDIR}/neutron.initd" "neutron-server"
431 - newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
432 - dosym ../../plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
433 - fi
434 - if use dhcp; then
435 - newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
436 - newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
437 - fi
438 - if use l3; then
439 - newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
440 - newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
441 - fi
442 - if use metadata; then
443 - newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
444 - newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
445 - fi
446 - if use openvswitch; then
447 - newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
448 - newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
449 - newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
450 - newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
451 - fi
452 - if use linuxbridge; then
453 - newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
454 - newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
455 - fi
456 - diropts -m 755 -o neutron -g neutron
457 - dodir /var/log/neutron /var/lib/neutron
458 - keepdir /etc/neutron
459 - insinto /etc/neutron
460 - insopts -m 0640 -o neutron -g neutron
461 -
462 - doins etc/*
463 - # stupid renames
464 - insinto /etc/neutron
465 - doins -r "etc/neutron/plugins"
466 - insopts -m 0640 -o root -g root
467 - doins "etc/rootwrap.conf"
468 - doins -r "etc/neutron/rootwrap.d"
469 -
470 - #add sudoers definitions for user neutron
471 - insinto /etc/sudoers.d/
472 - insopts -m 0440 -o root -g root
473 - newins "${FILESDIR}/neutron.sudoersd" neutron
474 -
475 - # add generated configs
476 - cd "${D}/etc/neutron" || die
477 - unpack "neutron-configs-${PV}.tar.gz"
478 - cd "${D}/etc/neutron/plugins/ml2" || die
479 - unpack "neutron-ml2-plugins-${PV}.tar.gz"
480 -
481 - # correcting perms
482 - fowners neutron:neutron -R "/etc/neutron"
483 - fperms o-rwx -R "/etc/neutron/"
484 -
485 - #remove superfluous stuff
486 - rm -R "${D}/usr/etc/"
487 -}
488 -
489 -python_install() {
490 - distutils-r1_python_install
491 - # copy migration conf file (not coppied on install via setup.py script)
492 - python_moduleinto neutron/db/migration/alembic_migrations
493 - python_domodule "neutron/db/migration/alembic_migrations/versions"
494 -}
495 -
496 -pkg_postinst() {
497 - elog
498 - elog "neutron-server's conf.d file may need updating to include additional ini files"
499 - elog "We currently assume the ml2 plugin will be used but do not make assumptions"
500 - elog "on if you will use openvswitch or linuxbridge (or something else)"
501 - elog
502 - elog "Other conf.d files may need updating too, but should be good for the default use case"
503 - elog
504 -}