1 |
commit: af6ecbcad3f14044a32a6d4b4b9ddf6970b04fa1 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 23:21:49 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 23:21:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6ecbca |
7 |
|
8 |
app-admin/salt: Clean out older versions |
9 |
|
10 |
Gentoo-Bug: 607824 |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
app-admin/salt/Manifest | 3 - |
15 |
app-admin/salt/salt-2015.8.12.ebuild | 140 ---------------------------------- |
16 |
app-admin/salt/salt-2016.11.0.ebuild | 144 ----------------------------------- |
17 |
app-admin/salt/salt-2016.3.4.ebuild | 143 ---------------------------------- |
18 |
4 files changed, 430 deletions(-) |
19 |
|
20 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
21 |
index 8f2baee..7aa4c14 100644 |
22 |
--- a/app-admin/salt/Manifest |
23 |
+++ b/app-admin/salt/Manifest |
24 |
@@ -1,7 +1,4 @@ |
25 |
DIST salt-2015.5.10.tar.gz 5693422 SHA256 863a96e70f8521af35fe11b10d25b3205a0bfbba9a8aee02e2842aa7106496fd SHA512 78a4cbe5c771208e957360689a25ae4e44566987e07e7fda54e6db9028485eacc6ad016c65c981090f9b5d95331e46048a094aecc27703b3956c06ab6ebad95d WHIRLPOOL 805b48df07707d85d8338251f26c72164a5421731fc11f5c933b72af97348a2f11ee35889f72ec032acbea275e98575d35786b56fd84a7917f8fdbc30567ae86 |
26 |
-DIST salt-2015.8.12.tar.gz 7033938 SHA256 712f72b30a9555ea46a51bc677e05ffa2eefaeefa6b48d4f7ae45dbcb1073c69 SHA512 8ce940a413c740bd82c6c96103d48b376a47cb8161a5d72ece3f4bf6b39134bd722787a427249726dc137064d032fa913c7f6c6db22d0808ba1a829d4f25e9ec WHIRLPOOL 723660eac1346c3ba29b88c7db1a4485a194aebbdf33ea6dc411c420059767a3feb5c863941d772b504cede4a78a57e3ce696601872d21d29f4def373db697d4 |
27 |
DIST salt-2015.8.13.tar.gz 7036243 SHA256 cca82c9a4f267692660b098c1f76e54ab6a24131391893719bde0eb3a1ed2959 SHA512 ec8626f7360542bfeea90fc3d6fd9d9d015da4c2a6adf9957c22501ed9531b0a44d2cbc4853c41856b4cd46c142d2441884ec99700f3c0a5310cc428f9f1ec2a WHIRLPOOL c21f3bdc5fd674ea664c7e8fd58ef6685328a6ee3679850f3e9a085b1e604e1224a3323b906b47075fb8dd39f373583fb549e7b0f3f725d44928bcf716955a10 |
28 |
-DIST salt-2016.11.0.tar.gz 9044879 SHA256 b516285926ee95cedc64ecddab05d14422b7c8819c9f6d046a431c41d608e6bc SHA512 0cddebe9fda1f7d08aa7ee5d4e49e182c67e7bc179136da30d20c991bc10d7299034198f6721b89eda2604480aa2cfe6960f37fadde4d72adf166a065a9f6443 WHIRLPOOL 595ab7c7e50cafdfc7d69a1e24964a88092e93416dc23b295e1ab59f1ce3ae8fa10b24c4e9fe45c1d2d8557290aceae66f93d3da81a1f1be62c98e537cb8ad6a |
29 |
DIST salt-2016.11.2.tar.gz 9114042 SHA256 f5c3d3cf4293d5b80a93790c76dec61421991c9c54222abd7327b3437ad13a43 SHA512 0dbc861424643af664edd2d9cb8bcbde7e9bcf7c1d202a5e844af83c21dc2d75fd7034db27dffc58dc2a6e47cfe2ea2c42e2a9af867c7ca78f93166eb4fd03ad WHIRLPOOL e1757de32d41e356a423ca347f59fdce05b574bb7bd9dbeffd34e7f6e90e8f0a2afb48ac209736fa6b7da86525c85e7ac5c7539dde621c533fa1e5b3475c5392 |
30 |
-DIST salt-2016.3.4.tar.gz 8354090 SHA256 5d4c822719d7fb2d79b0103cd9b015d251300890f8aa174e16b73fcfd6eb22f9 SHA512 ca17c5607d23d09e95fb4b6afbcf1b4f0be6bab47ff3eee883c1464e13b5271b71f0e7bedfa8afe05f32bf3a0a6f4050a91afb9285b52aa0f3da6105221397e0 WHIRLPOOL 95347b1f8447e8701074727430ef0a232e92aa9e961451c445890552c6d9533569e470dfa4864f673c6c3b3eccb16ec9c3615cfcab6d29e74756861afe43fcac |
31 |
DIST salt-2016.3.5.tar.gz 8405980 SHA256 fec215dfdec33ca6826453e5437656f9ed5e4a121ef3db6341f91f799cd3e751 SHA512 ca9ae85f8174aa55fefeaef70d65981d581f25f14f219f437ad4dc0db08e5944f356564c92aee46e796547db38312efedc8db5080576d578982f963a742635e6 WHIRLPOOL 72b504dd669adf4ffc6818083f40b07b78914c8f168ab496d628a3f5cd136d7c4266906007e095aff4c18e123dfcf03391f577fb09b841eb71bc30ea6a46de07 |
32 |
|
33 |
diff --git a/app-admin/salt/salt-2015.8.12.ebuild b/app-admin/salt/salt-2015.8.12.ebuild |
34 |
deleted file mode 100644 |
35 |
index 052b772..00000000 |
36 |
--- a/app-admin/salt/salt-2015.8.12.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,140 +0,0 @@ |
39 |
-# Copyright 1999-2016 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
-# $Id$ |
42 |
- |
43 |
-EAPI=5 |
44 |
-PYTHON_COMPAT=(python2_7) |
45 |
- |
46 |
-inherit eutils systemd distutils-r1 |
47 |
- |
48 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
49 |
-HOMEPAGE="http://saltstack.org/" |
50 |
- |
51 |
-if [[ ${PV} == 9999* ]]; then |
52 |
- inherit git-r3 |
53 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
54 |
- EGIT_BRANCH="develop" |
55 |
- SRC_URI="" |
56 |
- KEYWORDS="" |
57 |
-else |
58 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
59 |
- KEYWORDS="~x86 ~amd64" |
60 |
-fi |
61 |
- |
62 |
-LICENSE="Apache-2.0" |
63 |
-SLOT="0" |
64 |
-IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" |
65 |
-IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax" |
66 |
- |
67 |
-RDEPEND="sys-apps/pciutils |
68 |
- dev-python/jinja[${PYTHON_USEDEP}] |
69 |
- >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] |
70 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
71 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
72 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
73 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
74 |
- >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}] |
75 |
- virtual/python-futures[${PYTHON_USEDEP}] |
76 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
77 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
78 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
79 |
- libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) |
80 |
- openssl? ( |
81 |
- dev-libs/openssl:*[-bindist] |
82 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
83 |
- ) |
84 |
- raet? ( |
85 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
86 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
87 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
88 |
- ) |
89 |
- zeromq? ( |
90 |
- >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] |
91 |
- >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}] |
92 |
- ) |
93 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
94 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
95 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
96 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
97 |
- mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
98 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
99 |
- selinux? ( sec-policy/selinux-salt ) |
100 |
- timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) |
101 |
- nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) |
102 |
- neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) |
103 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
104 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
105 |
- vim-syntax? ( app-vim/salt-vim )" |
106 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
107 |
- test? ( |
108 |
- dev-python/psutil[${PYTHON_USEDEP}] |
109 |
- dev-python/pip[${PYTHON_USEDEP}] |
110 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
111 |
- dev-python/mock[${PYTHON_USEDEP}] |
112 |
- dev-python/timelib[${PYTHON_USEDEP}] |
113 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
114 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
115 |
- >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}] |
116 |
- ${RDEPEND} |
117 |
- )" |
118 |
- |
119 |
-DOCS=(README.rst AUTHORS) |
120 |
- |
121 |
-REQUIRED_USE="|| ( raet zeromq )" |
122 |
- |
123 |
-PATCHES=( |
124 |
- "${FILESDIR}/${PN}-2015.8.0-remove-buggy-tests.patch" |
125 |
- "${FILESDIR}/${PN}-2015.5.5-auth-tests.patch" |
126 |
- "${FILESDIR}/${PN}-2015.5.5-cron-tests.patch" |
127 |
- "${FILESDIR}/${PN}-2015.5.5-remove-buggy-tests.patch" |
128 |
- "${FILESDIR}/${PN}-2015.8.2-tmpdir.patch" |
129 |
- "${FILESDIR}/${PN}-2015.8.10-remove-failing-boto-test.patch" |
130 |
-) |
131 |
- |
132 |
-python_prepare() { |
133 |
- # this test fails because it trys to "pip install distribute" |
134 |
- rm tests/unit/{modules,states}/zcbuildout_test.py \ |
135 |
- tests/unit/modules/{rh_ip,win_network,random_org}_test.py |
136 |
-} |
137 |
- |
138 |
-python_install_all() { |
139 |
- local svc |
140 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
141 |
- |
142 |
- for svc in minion master syndic api; do |
143 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
144 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
145 |
- if [[ -e pkg/salt-${svc}.service ]]; then |
146 |
- sed -i -r 's/After=(.*)/After=syslog.target \1/' pkg/salt-${svc}.service || die |
147 |
- systemd_dounit pkg/salt-${svc}.service |
148 |
- elif [[ -e "${FILESDIR}"/salt-${svc}.service ]]; then |
149 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
150 |
- fi |
151 |
- done |
152 |
- |
153 |
- insinto /etc/${PN} |
154 |
- doins -r conf/* |
155 |
-} |
156 |
- |
157 |
-python_test() { |
158 |
- local tempdir |
159 |
- # testsuite likes lots of files |
160 |
- ulimit -n 3072 |
161 |
- |
162 |
- # ${T} is too long a path for the tests to work |
163 |
- tempdir="$(mktemp -dup /tmp salt-XXX)" |
164 |
- mkdir "${T}/$(basename "${tempdir}")" |
165 |
- |
166 |
- ( |
167 |
- cleanup() { rm -f "${tempdir}"; } |
168 |
- trap cleanup EXIT |
169 |
- |
170 |
- addwrite "${tempdir}" |
171 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" |
172 |
- |
173 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="${tempdir}" \ |
174 |
- ${EPYTHON} tests/runtests.py \ |
175 |
- --unit-tests --no-report --verbose |
176 |
- |
177 |
- ) || die "testing failed" |
178 |
-} |
179 |
|
180 |
diff --git a/app-admin/salt/salt-2016.11.0.ebuild b/app-admin/salt/salt-2016.11.0.ebuild |
181 |
deleted file mode 100644 |
182 |
index c2db5f5..00000000 |
183 |
--- a/app-admin/salt/salt-2016.11.0.ebuild |
184 |
+++ /dev/null |
185 |
@@ -1,144 +0,0 @@ |
186 |
-# Copyright 1999-2016 Gentoo Foundation |
187 |
-# Distributed under the terms of the GNU General Public License v2 |
188 |
-# $Id$ |
189 |
- |
190 |
-EAPI=6 |
191 |
-PYTHON_COMPAT=( python2_7 ) |
192 |
- |
193 |
-inherit eutils systemd distutils-r1 |
194 |
- |
195 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
196 |
-HOMEPAGE="http://saltstack.org/" |
197 |
- |
198 |
-if [[ ${PV} == 9999* ]]; then |
199 |
- inherit git-r3 |
200 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
201 |
- EGIT_BRANCH="develop" |
202 |
- SRC_URI="" |
203 |
- KEYWORDS="" |
204 |
-else |
205 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
206 |
- KEYWORDS="~x86 ~amd64" |
207 |
-fi |
208 |
- |
209 |
-LICENSE="Apache-2.0" |
210 |
-SLOT="0" |
211 |
-IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" |
212 |
-IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax" |
213 |
- |
214 |
-RDEPEND="sys-apps/pciutils |
215 |
- dev-python/jinja[${PYTHON_USEDEP}] |
216 |
- >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] |
217 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
218 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
219 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
220 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
221 |
- >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}] |
222 |
- virtual/python-futures[${PYTHON_USEDEP}] |
223 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
224 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
225 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
226 |
- libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) |
227 |
- openssl? ( |
228 |
- dev-libs/openssl:*[-bindist] |
229 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
230 |
- ) |
231 |
- raet? ( |
232 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
233 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
234 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
235 |
- ) |
236 |
- zeromq? ( |
237 |
- >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] |
238 |
- >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}] |
239 |
- ) |
240 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
241 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
242 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
243 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
244 |
- mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
245 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
246 |
- selinux? ( sec-policy/selinux-salt ) |
247 |
- timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) |
248 |
- nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) |
249 |
- neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) |
250 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
251 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
252 |
- vim-syntax? ( app-vim/salt-vim )" |
253 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
254 |
- test? ( |
255 |
- dev-python/psutil[${PYTHON_USEDEP}] |
256 |
- dev-python/pip[${PYTHON_USEDEP}] |
257 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
258 |
- dev-python/mock[${PYTHON_USEDEP}] |
259 |
- dev-python/timelib[${PYTHON_USEDEP}] |
260 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
261 |
- !x86? ( dev-python/boto3[${PYTHON_USEDEP}] ) |
262 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
263 |
- >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
264 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
265 |
- ${RDEPEND} |
266 |
- )" |
267 |
- |
268 |
-DOCS=( README.rst AUTHORS ) |
269 |
- |
270 |
-REQUIRED_USE="|| ( raet zeromq )" |
271 |
-RESTRICT="x86? ( test )" |
272 |
- |
273 |
-PATCHES=( |
274 |
- "${FILESDIR}/${PN}-2016.11.0-tmpdir.patch" |
275 |
- "${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch" |
276 |
- "${FILESDIR}/${PN}-2016.3.4-test-nonexist-dirs.patch" |
277 |
- "${FILESDIR}/${PN}-2016.11.0-remove-file-tree-test.patch" |
278 |
- "${FILESDIR}/${PN}-2016.11.0-broken-tests.patch" |
279 |
-) |
280 |
- |
281 |
-python_prepare() { |
282 |
- # this test fails because it trys to "pip install distribute" |
283 |
- rm tests/unit/{modules,states}/zcbuildout_test.py \ |
284 |
- tests/unit/modules/{rh_ip,win_network,random_org}_test.py || die |
285 |
- |
286 |
- # apparently libcloud does not know about this? |
287 |
- rm tests/unit/cloud/clouds/dimensiondata_test.py || die |
288 |
- |
289 |
- # seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'" |
290 |
- rm tests/unit/cloud/clouds/gce_test.py || die |
291 |
-} |
292 |
- |
293 |
-python_install_all() { |
294 |
- local svc |
295 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
296 |
- |
297 |
- for svc in minion master syndic api; do |
298 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
299 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
300 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
301 |
- done |
302 |
- |
303 |
- insinto /etc/${PN} |
304 |
- doins -r conf/* |
305 |
-} |
306 |
- |
307 |
-python_test() { |
308 |
- local tempdir |
309 |
- # testsuite likes lots of files |
310 |
- ulimit -n 3072 || die |
311 |
- |
312 |
- # ${T} is too long a path for the tests to work |
313 |
- tempdir="$(mktemp -dup /tmp salt-XXX)" |
314 |
- mkdir "${T}/$(basename "${tempdir}")" |
315 |
- |
316 |
- ( |
317 |
- cleanup() { rm -f "${tempdir}"; } |
318 |
- trap cleanup EXIT |
319 |
- |
320 |
- addwrite "${tempdir}" |
321 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" |
322 |
- |
323 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
324 |
- TMPDIR="${tempdir}" \ |
325 |
- ${EPYTHON} tests/runtests.py \ |
326 |
- --unit-tests --no-report --verbose |
327 |
- |
328 |
- ) || die "testing failed" |
329 |
-} |
330 |
|
331 |
diff --git a/app-admin/salt/salt-2016.3.4.ebuild b/app-admin/salt/salt-2016.3.4.ebuild |
332 |
deleted file mode 100644 |
333 |
index 14593b8..00000000 |
334 |
--- a/app-admin/salt/salt-2016.3.4.ebuild |
335 |
+++ /dev/null |
336 |
@@ -1,143 +0,0 @@ |
337 |
-# Copyright 1999-2016 Gentoo Foundation |
338 |
-# Distributed under the terms of the GNU General Public License v2 |
339 |
-# $Id$ |
340 |
- |
341 |
-EAPI=6 |
342 |
-PYTHON_COMPAT=( python2_7 ) |
343 |
- |
344 |
-inherit eutils systemd distutils-r1 |
345 |
- |
346 |
-DESCRIPTION="Salt is a remote execution and configuration manager" |
347 |
-HOMEPAGE="http://saltstack.org/" |
348 |
- |
349 |
-if [[ ${PV} == 9999* ]]; then |
350 |
- inherit git-r3 |
351 |
- EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
352 |
- EGIT_BRANCH="develop" |
353 |
- SRC_URI="" |
354 |
- KEYWORDS="" |
355 |
-else |
356 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
357 |
- KEYWORDS="~x86 ~amd64" |
358 |
-fi |
359 |
- |
360 |
-LICENSE="Apache-2.0" |
361 |
-SLOT="0" |
362 |
-IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" |
363 |
-IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax" |
364 |
- |
365 |
-RDEPEND="sys-apps/pciutils |
366 |
- dev-python/jinja[${PYTHON_USEDEP}] |
367 |
- >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] |
368 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
369 |
- dev-python/markupsafe[${PYTHON_USEDEP}] |
370 |
- >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
371 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
372 |
- >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}] |
373 |
- virtual/python-futures[${PYTHON_USEDEP}] |
374 |
- libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
375 |
- mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
376 |
- ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
377 |
- libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) |
378 |
- openssl? ( |
379 |
- dev-libs/openssl:*[-bindist] |
380 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
381 |
- ) |
382 |
- raet? ( |
383 |
- >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
384 |
- >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
385 |
- >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
386 |
- ) |
387 |
- zeromq? ( |
388 |
- >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] |
389 |
- >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}] |
390 |
- ) |
391 |
- cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
392 |
- mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
393 |
- portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
394 |
- keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
395 |
- mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
396 |
- redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
397 |
- selinux? ( sec-policy/selinux-salt ) |
398 |
- timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) |
399 |
- nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) |
400 |
- neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) |
401 |
- gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
402 |
- profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
403 |
- vim-syntax? ( app-vim/salt-vim )" |
404 |
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
405 |
- test? ( |
406 |
- dev-python/psutil[${PYTHON_USEDEP}] |
407 |
- dev-python/pip[${PYTHON_USEDEP}] |
408 |
- dev-python/virtualenv[${PYTHON_USEDEP}] |
409 |
- dev-python/mock[${PYTHON_USEDEP}] |
410 |
- dev-python/timelib[${PYTHON_USEDEP}] |
411 |
- >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
412 |
- !x86? ( dev-python/boto3[${PYTHON_USEDEP}] ) |
413 |
- >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
414 |
- >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
415 |
- >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
416 |
- ${RDEPEND} |
417 |
- )" |
418 |
- |
419 |
-DOCS=( README.rst AUTHORS ) |
420 |
- |
421 |
-REQUIRED_USE="|| ( raet zeromq )" |
422 |
-RESTRICT="x86? ( test )" |
423 |
- |
424 |
-PATCHES=( |
425 |
- "${FILESDIR}/${PN}-2015.8.2-tmpdir.patch" |
426 |
- "${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch" |
427 |
- "${FILESDIR}/${PN}-2016.3.4-test-nonexist-dirs.patch" |
428 |
- "${FILESDIR}/${PN}-2016.3.4-dont-test-ordering.patch" |
429 |
-) |
430 |
- |
431 |
-python_prepare() { |
432 |
- # this test fails because it trys to "pip install distribute" |
433 |
- rm tests/unit/{modules,states}/zcbuildout_test.py \ |
434 |
- tests/unit/modules/{rh_ip,win_network,random_org}_test.py || die |
435 |
- |
436 |
- # apparently libcloud does not know about this? |
437 |
- rm tests/unit/cloud/clouds/dimensiondata_test.py || die |
438 |
- |
439 |
- # seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'" |
440 |
- rm tests/unit/cloud/clouds/gce_test.py || die |
441 |
-} |
442 |
- |
443 |
-python_install_all() { |
444 |
- local svc |
445 |
- USE_SETUPTOOLS=1 distutils-r1_python_install_all |
446 |
- |
447 |
- for svc in minion master syndic api; do |
448 |
- newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
449 |
- newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
450 |
- systemd_dounit "${FILESDIR}"/salt-${svc}.service |
451 |
- done |
452 |
- |
453 |
- insinto /etc/${PN} |
454 |
- doins -r conf/* |
455 |
-} |
456 |
- |
457 |
-python_test() { |
458 |
- local tempdir |
459 |
- # testsuite likes lots of files |
460 |
- ulimit -n 3072 || die |
461 |
- |
462 |
- # ${T} is too long a path for the tests to work |
463 |
- tempdir="$(mktemp -dup /tmp salt-XXX)" |
464 |
- mkdir "${T}/$(basename "${tempdir}")" |
465 |
- |
466 |
- ( |
467 |
- cleanup() { rm -f "${tempdir}"; } |
468 |
- trap cleanup EXIT |
469 |
- |
470 |
- addwrite "${tempdir}" |
471 |
- ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" |
472 |
- |
473 |
- USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
474 |
- TMPDIR="${tempdir}" \ |
475 |
- ${EPYTHON} tests/runtests.py \ |
476 |
- --unit-tests --no-report --verbose |
477 |
- |
478 |
- ) || die "testing failed" |
479 |
-} |