1 |
commit: 8fb20d526c35c3deed096b8f5a6a2e03ae85cac7 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 20 14:13:52 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 20 14:13:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb20d52 |
7 |
|
8 |
app-admin/salt: Version bump to 2016.11.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
app-admin/salt/Manifest | 1 + |
13 |
app-admin/salt/salt-2016.11.6.ebuild | 146 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 147 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/salt/Manifest b/app-admin/salt/Manifest |
17 |
index 4284c4bc6b5..743950ce7d9 100644 |
18 |
--- a/app-admin/salt/Manifest |
19 |
+++ b/app-admin/salt/Manifest |
20 |
@@ -2,4 +2,5 @@ DIST salt-2015.5.10.tar.gz 5693422 SHA256 863a96e70f8521af35fe11b10d25b3205a0bfb |
21 |
DIST salt-2015.8.13.tar.gz 7036243 SHA256 cca82c9a4f267692660b098c1f76e54ab6a24131391893719bde0eb3a1ed2959 SHA512 ec8626f7360542bfeea90fc3d6fd9d9d015da4c2a6adf9957c22501ed9531b0a44d2cbc4853c41856b4cd46c142d2441884ec99700f3c0a5310cc428f9f1ec2a WHIRLPOOL c21f3bdc5fd674ea664c7e8fd58ef6685328a6ee3679850f3e9a085b1e604e1224a3323b906b47075fb8dd39f373583fb549e7b0f3f725d44928bcf716955a10 |
22 |
DIST salt-2016.11.4.tar.gz 9360198 SHA256 fb4109b28d3fd898291c162e42ef843fbd4c3e57244075670fa8f366e705765f SHA512 ba928b61766d34774ce2e623fa79a46f6d373295c55b336e1b451e6a4afb0d547d78ceb9e466b64d8ba8bdbf2e750cbb77d008bc76308602729ae08241b8d346 WHIRLPOOL cb599c83d1adb3c0281106cf447df42da1439f033f23cfc8370edc537fd2d60af66c4451dcedb12aee0447499184ab413ce1cf200b26b3ef48c8932bccb977be |
23 |
DIST salt-2016.11.5.tar.gz 9246550 SHA256 b81427a4a3e47a98726f948bdc16a5b6b366f93fdac0b2c817e8f87d9036f8be SHA512 9afb40dbd3a508eacc43500566660763e2b219817d7de25ccf2d61d7f74b857238922ea40cc4c6372fd520bc6f524d84fb0a2d65f9890bedd79d0fc6c177edf9 WHIRLPOOL 684c8f147fbe38928b3f7510e704654270fcc4aacdf81c4f3b90a9f275566a2b8cf2155aff223d3ead2740d79e479d10cf233b4386b8e76ddb7b481f3471ebb6 |
24 |
+DIST salt-2016.11.6.tar.gz 9410028 SHA256 9031af68d31d0416fe3161526ef122a763afc6182bd63fe48b6c4d0a16a0703a SHA512 8b375eeaf8380c750700ae9b500e012f0b8ae281c8b5aa68d3443393a5bb7dd46612f2aeb3ba01719dd28d9e128dc88f1faa8023f5f5e7ff684a1f0483c30120 WHIRLPOOL c74aa93b60851a4978746fd0fe60f4fcbe0e8bb447cb19fcd3eede9d5880ef3ece96b2d9dc4cab4d8f09f08ce9ad2fd9d4bb63c295aefcf25b178e4c3c77d992 |
25 |
DIST salt-2016.3.6.tar.gz 8432840 SHA256 4cc45f48255b7e46631807b071674552872c322ab77f398c9beefbf14d6a212f SHA512 949d70504310cd88139c520812a870e4c68e6b0c7ec6decfd157283994d6be659e7823a4453d1b6464c24fc762bc9ba61d4f6a767c4d6f65e496c7f5b6589a8d WHIRLPOOL 3d5abdbe0e297cbfc1b0f7fce0d6959132bbe917abc80ad7bb368a2ec657c0c0019123a22558c3fbdec489cb20430243ff837658d55da6755a07d4ec4d35158c |
26 |
|
27 |
diff --git a/app-admin/salt/salt-2016.11.6.ebuild b/app-admin/salt/salt-2016.11.6.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..872e4bab594 |
30 |
--- /dev/null |
31 |
+++ b/app-admin/salt/salt-2016.11.6.ebuild |
32 |
@@ -0,0 +1,146 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+ |
39 |
+inherit eutils systemd distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Salt is a remote execution and configuration manager" |
42 |
+HOMEPAGE="http://saltstack.org/" |
43 |
+ |
44 |
+if [[ ${PV} == 9999* ]]; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git" |
47 |
+ EGIT_BRANCH="develop" |
48 |
+ SRC_URI="" |
49 |
+ KEYWORDS="" |
50 |
+else |
51 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
52 |
+ KEYWORDS="~x86 ~amd64" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="Apache-2.0" |
56 |
+SLOT="0" |
57 |
+IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova" |
58 |
+IUSE+=" openssl portage profile redis selinux test timelib raet +zeromq vim-syntax" |
59 |
+ |
60 |
+RDEPEND="sys-apps/pciutils |
61 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/msgpack-0.3[${PYTHON_USEDEP}] |
63 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
64 |
+ dev-python/markupsafe[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/requests-1.0.0[${PYTHON_USEDEP}] |
66 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
67 |
+ >=www-servers/tornado-4.2.1[${PYTHON_USEDEP}] |
68 |
+ virtual/python-futures[${PYTHON_USEDEP}] |
69 |
+ libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] ) |
70 |
+ mako? ( dev-python/mako[${PYTHON_USEDEP}] ) |
71 |
+ ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] ) |
72 |
+ libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] ) |
73 |
+ openssl? ( |
74 |
+ dev-libs/openssl:*[-bindist] |
75 |
+ dev-python/pyopenssl[${PYTHON_USEDEP}] |
76 |
+ ) |
77 |
+ raet? ( |
78 |
+ >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/raet-0.6.0[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+ zeromq? ( |
83 |
+ >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/pycrypto-2.6.1[${PYTHON_USEDEP}] |
85 |
+ ) |
86 |
+ cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] ) |
87 |
+ mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] ) |
88 |
+ portage? ( sys-apps/portage[${PYTHON_USEDEP}] ) |
89 |
+ keyring? ( dev-python/keyring[${PYTHON_USEDEP}] ) |
90 |
+ mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
91 |
+ redis? ( dev-python/redis-py[${PYTHON_USEDEP}] ) |
92 |
+ selinux? ( sec-policy/selinux-salt ) |
93 |
+ timelib? ( dev-python/timelib[${PYTHON_USEDEP}] ) |
94 |
+ nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] ) |
95 |
+ neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] ) |
96 |
+ gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] ) |
97 |
+ profile? ( dev-python/yappi[${PYTHON_USEDEP}] ) |
98 |
+ vim-syntax? ( app-vim/salt-vim )" |
99 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
100 |
+ test? ( |
101 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
102 |
+ dev-python/pip[${PYTHON_USEDEP}] |
103 |
+ dev-python/virtualenv[${PYTHON_USEDEP}] |
104 |
+ dev-python/mock[${PYTHON_USEDEP}] |
105 |
+ dev-python/timelib[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/boto-2.32.1[${PYTHON_USEDEP}] |
107 |
+ !x86? ( dev-python/boto3[${PYTHON_USEDEP}] ) |
108 |
+ >=dev-python/moto-0.3.6[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/SaltTesting-2016.5.11[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] |
111 |
+ ${RDEPEND} |
112 |
+ )" |
113 |
+ |
114 |
+DOCS=( README.rst AUTHORS ) |
115 |
+ |
116 |
+REQUIRED_USE="|| ( raet zeromq )" |
117 |
+RESTRICT="x86? ( test )" |
118 |
+ |
119 |
+PATCHES=( |
120 |
+ "${FILESDIR}/${PN}-2016.11.0-tmpdir.patch" |
121 |
+ "${FILESDIR}/${PN}-2016.3.1-dont-realpath-tmpdir.patch" |
122 |
+ "${FILESDIR}/${PN}-2016.3.4-test-nonexist-dirs.patch" |
123 |
+ "${FILESDIR}/${PN}-2016.11.0-remove-file-tree-test.patch" |
124 |
+ "${FILESDIR}/${PN}-2016.11.0-broken-tests.patch" |
125 |
+) |
126 |
+ |
127 |
+python_prepare() { |
128 |
+ # this test fails because it trys to "pip install distribute" |
129 |
+ rm tests/unit/{modules,states}/zcbuildout_test.py \ |
130 |
+ tests/unit/modules/{rh_ip,win_network,random_org}_test.py || die |
131 |
+ |
132 |
+ # https://github.com/saltstack/salt/issues/39095 |
133 |
+ rm tests/unit/utils/parsers_test.py |
134 |
+ |
135 |
+ # apparently libcloud does not know about this? |
136 |
+ rm tests/unit/cloud/clouds/dimensiondata_test.py || die |
137 |
+ |
138 |
+ # seriously? "ValueError: Missing (or not readable) key file: '/home/dany/PRIVKEY.pem'" |
139 |
+ rm tests/unit/cloud/clouds/gce_test.py || die |
140 |
+} |
141 |
+ |
142 |
+python_install_all() { |
143 |
+ local svc |
144 |
+ USE_SETUPTOOLS=1 distutils-r1_python_install_all |
145 |
+ |
146 |
+ for svc in minion master syndic api; do |
147 |
+ newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc} |
148 |
+ newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc} |
149 |
+ systemd_dounit "${FILESDIR}"/salt-${svc}.service |
150 |
+ done |
151 |
+ |
152 |
+ insinto /etc/${PN} |
153 |
+ doins -r conf/* |
154 |
+} |
155 |
+ |
156 |
+python_test() { |
157 |
+ local tempdir |
158 |
+ # testsuite likes lots of files |
159 |
+ ulimit -n 3072 || die |
160 |
+ |
161 |
+ # ${T} is too long a path for the tests to work |
162 |
+ tempdir="$(mktemp -dup /tmp salt-XXX)" |
163 |
+ mkdir "${T}/$(basename "${tempdir}")" |
164 |
+ |
165 |
+ ( |
166 |
+ cleanup() { rm -f "${tempdir}"; } |
167 |
+ trap cleanup EXIT |
168 |
+ |
169 |
+ addwrite "${tempdir}" |
170 |
+ ln -s "$(realpath --relative-to=/tmp "${T}/$(basename "${tempdir}")")" "${tempdir}" |
171 |
+ |
172 |
+ USE_SETUPTOOLS=1 SHELL="/bin/bash" \ |
173 |
+ TMPDIR="${tempdir}" \ |
174 |
+ ${EPYTHON} tests/runtests.py \ |
175 |
+ --unit-tests --no-report --verbose |
176 |
+ |
177 |
+ ) || die "testing failed" |
178 |
+} |