Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/neutron: neutron-2013.2.2-r1.ebuild ChangeLog neutron-2013.2.2.ebuild
Date: Thu, 27 Mar 2014 22:34:07
Message-Id: 20140327223402.CF47920051@flycatcher.gentoo.org
1 prometheanfire 14/03/27 22:34:02
2
3 Modified: ChangeLog
4 Added: neutron-2013.2.2-r1.ebuild
5 Removed: neutron-2013.2.2.ebuild
6 Log:
7 fix for bug 505980 CVE-2014-0056
8
9 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
10
11 Revision Changes Path
12 1.26 sys-cluster/neutron/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/neutron/ChangeLog?rev=1.26&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/neutron/ChangeLog?rev=1.26&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/neutron/ChangeLog?r1=1.25&r2=1.26
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v
21 retrieving revision 1.25
22 retrieving revision 1.26
23 diff -u -r1.25 -r1.26
24 --- ChangeLog 23 Mar 2014 20:27:12 -0000 1.25
25 +++ ChangeLog 27 Mar 2014 22:34:02 -0000 1.26
26 @@ -1,6 +1,13 @@
27 # ChangeLog for sys-cluster/neutron
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.25 2014/03/23 20:27:12 prometheanfire Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.26 2014/03/27 22:34:02 prometheanfire Exp $
31 +
32 +*neutron-2013.2.2-r1 (27 Mar 2014)
33 +
34 + 27 Mar 2014; Matthew Thode <prometheanfire@g.o>
35 + +files/2013.2.2-CVE-2014-0056.patch, +neutron-2013.2.2-r1.ebuild,
36 + -neutron-2013.2.2.ebuild:
37 + fix for bug 505980 CVE-2014-0056
38
39 *neutron-2013.1.5 (23 Mar 2014)
40
41
42
43
44 1.1 sys-cluster/neutron/neutron-2013.2.2-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/neutron/neutron-2013.2.2-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/neutron/neutron-2013.2.2-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: neutron-2013.2.2-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/neutron-2013.2.2-r1.ebuild,v 1.1 2014/03/27 22:34:02 prometheanfire Exp $
54
55 EAPI=5
56 PYTHON_COMPAT=( python2_7 )
57
58 inherit distutils-r1 user
59
60 DESCRIPTION="A virtual network service for Openstack."
61 HOMEPAGE="https://launchpad.net/neutron"
62 SRC_URI="http://launchpad.net/${PN}/havana/${PV}/+download/${P}.tar.gz"
63
64 LICENSE="Apache-2.0"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="+dhcp doc +l3 +metadata +openvswitch +server test sqlite mysql postgres"
68 REQUIRED_USE="|| ( mysql postgres sqlite )"
69
70 #the cliff dep is as below because it depends on pyparsing, which only has 2.7 OR 3.2, not both
71 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
72 >=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
73 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
74 app-admin/sudo
75 test? ( >=dev-python/cliff-1.4.3[${PYTHON_USEDEP}]
76 >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
77 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
78 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
79 >=dev-python/mox-0.5.3[${PYTHON_USEDEP}]
80 dev-python/subunit[${PYTHON_USEDEP}]
81 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
82 <dev-python/sphinx-1.2[${PYTHON_USEDEP}]
83 >=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}]
84 >=dev-python/testtools-0.9.32[${PYTHON_USEDEP}]
85 >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
86 dev-python/configobj[${PYTHON_USEDEP}]
87 <dev-python/hacking-0.8[${PYTHON_USEDEP}]
88 >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}]
89 dev-python/mimeparse[${PYTHON_USEDEP}] )"
90
91 RDEPEND="dev-python/paste[${PYTHON_USEDEP}]
92 >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
93 >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
94 >=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}]
95 >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
96 virtual/python-argparse[${PYTHON_USEDEP}]
97 >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
98 >=dev-python/eventlet-0.13.0[${PYTHON_USEDEP}]
99 >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
100 dev-python/httplib2[${PYTHON_USEDEP}]
101 >=dev-python/requests-1.1[${PYTHON_USEDEP}]
102 >=dev-python/iso8601-0.1.8[${PYTHON_USEDEP}]
103 dev-python/jsonrpclib[${PYTHON_USEDEP}]
104 dev-python/jinja[${PYTHON_USEDEP}]
105 >=dev-python/kombu-2.4.8[${PYTHON_USEDEP}]
106 dev-python/netaddr[${PYTHON_USEDEP}]
107 >=dev-python/python-neutronclient-2.3.0[${PYTHON_USEDEP}]
108 <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}]
109 sqlite? ( >=dev-python/sqlalchemy-0.7.8[sqlite,${PYTHON_USEDEP}]
110 <dev-python/sqlalchemy-0.7.99[sqlite,${PYTHON_USEDEP}] )
111 mysql? ( >=dev-python/sqlalchemy-0.7.8[mysql,${PYTHON_USEDEP}]
112 <dev-python/sqlalchemy-0.7.99[mysql,${PYTHON_USEDEP}] )
113 postgres? ( >=dev-python/sqlalchemy-0.7.8[postgres,${PYTHON_USEDEP}]
114 <dev-python/sqlalchemy-0.7.99[postgres,${PYTHON_USEDEP}] )
115 >=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
116 <dev-python/webob-1.3[${PYTHON_USEDEP}]
117 >=dev-python/python-keystoneclient-0.3.2[${PYTHON_USEDEP}]
118 >=dev-python/alembic-0.4.1[${PYTHON_USEDEP}]
119 >=dev-python/six-1.4.1[${PYTHON_USEDEP}]
120 >=dev-python/stevedore-0.10[${PYTHON_USEDEP}]
121 >=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}]
122 >=dev-python/python-novaclient-2.15.0[${PYTHON_USEDEP}]
123 dev-python/pyudev[${PYTHON_USEDEP}]
124 sys-apps/iproute2
125 openvswitch? ( net-misc/openvswitch )
126 dhcp? ( net-dns/dnsmasq[dhcp-tools] )"
127
128 PATCHES=( "${FILESDIR}/sphinx_mapping.patch"
129 "${FILESDIR}/nicira.patch"
130 "${FILESDIR}/2013.2.2-CVE-2014-0056.patch" )
131
132 pkg_setup() {
133 enewgroup neutron
134 enewuser neutron -1 -1 /var/lib/neutron neutron
135 }
136
137 pkg_config() {
138 fperms 0700 /var/log/neutron
139 fowners neutron:neutron /var/log neutron
140 }
141
142 src_prepare() {
143 #it's /bin/ip not /sbin/ip
144 sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/*
145 distutils-r1_src_prepare
146 }
147
148 python_compile_all() {
149 use doc && make -C doc html
150 }
151
152 python_test() {
153 # https://bugs.launchpad.net/neutron/+bug/1234857
154 # https://bugs.launchpad.net/swift/+bug/1249727
155 # https://bugs.launchpad.net/neutron/+bug/1251657
156 # turn multiprocessing off, testr will use it --parallel
157 local DISTUTILS_NO_PARALLEL_BUILD=1
158 # Move tests out that attempt net connection, have failures
159 mv $(find . -name test_ovs_tunnel.py) . || die
160 sed -e 's:test_app_using_ipv6_and_ssl:_&:' \
161 -e 's:test_start_random_port_with_ipv6:_&:' \
162 -i neutron/tests/unit/test_wsgi.py || die
163 testr init
164 testr run --parallel || die "failed testsuite under python2.7"
165 }
166
167 python_install() {
168 distutils-r1_python_install
169 newconfd "${FILESDIR}/neutron-confd" "neutron"
170 newinitd "${FILESDIR}/neutron-initd" "neutron"
171
172 use server && dosym /etc/init.d/neutron /etc/init.d/neutron-server
173 use dhcp && dosym /etc/init.d/neutron /etc/init.d/neutron-dhcp-agent
174 use l3 && dosym /etc/init.d/neutron /etc/init.d/neutron-l3-agent
175 use metadata && dosym /etc/init.d/neutron /etc/init.d/neutron-metadata-agent
176 use openvswitch && dosym /etc/init.d/neutron /etc/init.d/neutron-openvswitch-agent
177
178 diropts -m 750
179 dodir /var/log/neutron /var/log/neutron
180 fowners neutron:neutron /var/log/neutron
181 keepdir /etc/neutron
182 insinto /etc/neutron
183
184 doins "etc/api-paste.ini"
185 doins "etc/dhcp_agent.ini"
186 doins "etc/l3_agent.ini"
187 doins "etc/policy.json"
188 doins "etc/neutron.conf"
189 doins "etc/rootwrap.conf"
190 insinto /etc
191 doins -r "etc/neutron/"
192
193 #remove the etc stuff from usr...
194 rm -R "${D}/usr/etc/"
195
196 insinto "/usr/lib64/python2.7/site-packages/neutron/db/migration/alembic_migrations/"
197 doins -r "neutron/db/migration/alembic_migrations/versions"
198
199 #add sudoers definitions for user neutron
200 insinto /etc/sudoers.d/
201 doins "${FILESDIR}/neutron-sudoers"
202 }
203
204 python_install_all() {
205 use doc && local HTML_DOCS=( doc/build/html/. )
206 distutils-r1_python_install_all
207 }