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