Gentoo Archives: gentoo-commits

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