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