Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/swift/
Date: Thu, 23 Apr 2020 19:36:45
Message-Id: 1587670597.41237a16b418972b69e3cd360c91ec289285d329.prometheanfire@gentoo
1 commit: 41237a16b418972b69e3cd360c91ec289285d329
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 23 19:36:08 2020 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 23 19:36:37 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41237a16
7
8 sys-cluster/swift: 2.25.0 and 2020.1.9999 usurri bump
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 sys-cluster/swift/Manifest | 1 +
14 sys-cluster/swift/swift-2.25.0.ebuild | 119 +++++++++++++++++++++++++++++
15 sys-cluster/swift/swift-2020.1.9999.ebuild | 119 +++++++++++++++++++++++++++++
16 3 files changed, 239 insertions(+)
17
18 diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest
19 index cf21dc9fb82..5f23333459d 100644
20 --- a/sys-cluster/swift/Manifest
21 +++ b/sys-cluster/swift/Manifest
22 @@ -1,2 +1,3 @@
23 DIST swift-2.23.1.tar.gz 3044545 BLAKE2B b3b06aefa7c58b718f7d9c1c1b9bc92f442b83202b8d5c2dbbb777650088f2d939f5e9d0fbe83cea38fd6635d072cd8bb3894d64ed9767dde203064c1b81cfdb SHA512 48aa82b178f5e3901363c2b9eeeedeea12a58b1ba86cc46937dd9ec074ecc005b04a6ce732d4e9fce2497c6c62b659038da40ed43550256584bb371df4e596fb
24 DIST swift-2.24.0.tar.gz 3177018 BLAKE2B f465f0e8f58cc097b5b1fdbe5c9736ee3e2247d13d8ae1beeb7e736dd1246e7d8820cb7241afb67e651ad85c269a48d9dbeda3479dadd773bfc1fe3278731afe SHA512 f8e3b0fec06776e095067b2c12f782a9a787c814cea8039ec32930c562be5c74b4b2bf4cb9dad3481953e5163bd051fe32f3074be7776fd1af0be94982d113b6
25 +DIST swift-2.25.0.tar.gz 3183764 BLAKE2B 865cfcc832edb1f30a4529b0ff550c987a7413c841b9f1ef0d0a145f5be55762963b32ea332aa6f51690a871124e84dc7fb036309f38d4120a1e095e60bfaa34 SHA512 60cbc4bae61bb287e93d9a6a4e9a58a9c97f407d07927dde99c923d1ee7ab4ef79350c7c0cdcaab8aa0944aee09c27da549f3ebf86eb9bb92766b2b301d593a2
26
27 diff --git a/sys-cluster/swift/swift-2.25.0.ebuild b/sys-cluster/swift/swift-2.25.0.ebuild
28 new file mode 100644
29 index 00000000000..94ae1015614
30 --- /dev/null
31 +++ b/sys-cluster/swift/swift-2.25.0.ebuild
32 @@ -0,0 +1,119 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_6 python3_7 )
38 +
39 +inherit distutils-r1 eutils linux-info
40 +
41 +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store"
42 +HOMEPAGE="https://launchpad.net/swift"
43 +if [[ ${PV} == *9999 ]];then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/openstack/swift.git"
46 + EGIT_BRANCH="stable/ussuri"
47 +else
48 + SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm64 ~x86"
50 +fi
51 +
52 +LICENSE="Apache-2.0"
53 +SLOT="0"
54 +IUSE="account container doc +memcached +object proxy"
55 +REQUIRED_USE="|| ( proxy account container object )"
56 +
57 +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]"
58 +DEPEND="
59 + dev-python/setuptools[${PYTHON_USEDEP}]
60 + ${CDEPEND}"
61 +
62 +RDEPEND="
63 + ${CDEPEND}
64 + >=dev-python/eventlet-0.25.0[${PYTHON_USEDEP}]
65 + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
66 + >=dev-python/netifaces-0.8[${PYTHON_USEDEP}]
67 + !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
68 + !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
69 + >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
70 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
71 + dev-python/pyxattr[${PYTHON_USEDEP}]
72 + >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}]
73 + >=dev-python/cryptography-2.0.2[${PYTHON_USEDEP}]
74 + memcached? ( net-misc/memcached )
75 + net-misc/rsync[xattr]
76 + acct-user/swift
77 + acct-group/swift"
78 +
79 +pkg_pretend() {
80 + linux-info_pkg_setup
81 + CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
82 + ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
83 + ~ZFS"
84 + if linux_config_exists; then
85 + for module in ${CONFIG_CHECK}; do
86 + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
87 + done
88 + fi
89 +}
90 +
91 +src_prepare() {
92 + sed -i 's/xattr/pyxattr/g' requirements.txt || die
93 + sed -i '/^hacking/d' test-requirements.txt || die
94 + distutils-r1_python_prepare_all
95 +}
96 +
97 +src_test() {
98 + # https://bugs.launchpad.net/swift/+bug/1249727
99 + find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
100 + SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
101 +}
102 +
103 +python_install_all() {
104 + distutils-r1_python_install_all
105 + keepdir /etc/swift
106 + insinto /etc/swift
107 +
108 + newins "etc/swift.conf-sample" "swift.conf"
109 + newins "etc/rsyncd.conf-sample" "rsyncd.conf"
110 + newins "etc/mime.types-sample" "mime.types-sample"
111 + newins "etc/memcache.conf-sample" "memcache.conf-sample"
112 + newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
113 + newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
114 +
115 + if use proxy; then
116 + newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
117 + newins "etc/proxy-server.conf-sample" "proxy-server.conf"
118 + if use memcached; then
119 + sed -i '/depend/a\ need memcached' "${D}/etc/init.d/swift-proxy"
120 + fi
121 + fi
122 + if use account; then
123 + newinitd "${FILESDIR}/swift-account.initd" "swift-account"
124 + newins "etc/account-server.conf-sample" "account-server.conf"
125 + fi
126 + if use container; then
127 + newinitd "${FILESDIR}/swift-container.initd" "swift-container"
128 + newins "etc/container-server.conf-sample" "container-server.conf"
129 + fi
130 + if use object; then
131 + newinitd "${FILESDIR}/swift-object.initd" "swift-object"
132 + newins "etc/object-server.conf-sample" "object-server.conf"
133 + newins "etc/object-expirer.conf-sample" "object-expirer.conf"
134 + fi
135 +
136 + if use doc; then
137 + doman doc/manpages/*
138 + dodoc -r doc/{s3api,saio,source}
139 + fi
140 +
141 + fowners root:swift "/etc/swift"
142 + fperms 0750 /etc/swift
143 +}
144 +
145 +pkg_postinst() {
146 + elog "Openstack swift will default to using insecure http unless a"
147 + elog "certificate is created in /etc/swift/cert.crt and the associated key"
148 + elog "in /etc/swift/cert.key. These can be created with the following:"
149 + elog " * cd /etc/swift"
150 + elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
151 +}
152
153 diff --git a/sys-cluster/swift/swift-2020.1.9999.ebuild b/sys-cluster/swift/swift-2020.1.9999.ebuild
154 new file mode 100644
155 index 00000000000..94ae1015614
156 --- /dev/null
157 +++ b/sys-cluster/swift/swift-2020.1.9999.ebuild
158 @@ -0,0 +1,119 @@
159 +# Copyright 1999-2020 Gentoo Authors
160 +# Distributed under the terms of the GNU General Public License v2
161 +
162 +EAPI=7
163 +PYTHON_COMPAT=( python3_6 python3_7 )
164 +
165 +inherit distutils-r1 eutils linux-info
166 +
167 +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store"
168 +HOMEPAGE="https://launchpad.net/swift"
169 +if [[ ${PV} == *9999 ]];then
170 + inherit git-r3
171 + EGIT_REPO_URI="https://github.com/openstack/swift.git"
172 + EGIT_BRANCH="stable/ussuri"
173 +else
174 + SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
175 + KEYWORDS="~amd64 ~arm64 ~x86"
176 +fi
177 +
178 +LICENSE="Apache-2.0"
179 +SLOT="0"
180 +IUSE="account container doc +memcached +object proxy"
181 +REQUIRED_USE="|| ( proxy account container object )"
182 +
183 +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]"
184 +DEPEND="
185 + dev-python/setuptools[${PYTHON_USEDEP}]
186 + ${CDEPEND}"
187 +
188 +RDEPEND="
189 + ${CDEPEND}
190 + >=dev-python/eventlet-0.25.0[${PYTHON_USEDEP}]
191 + >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
192 + >=dev-python/netifaces-0.8[${PYTHON_USEDEP}]
193 + !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
194 + !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
195 + >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
196 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
197 + dev-python/pyxattr[${PYTHON_USEDEP}]
198 + >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}]
199 + >=dev-python/cryptography-2.0.2[${PYTHON_USEDEP}]
200 + memcached? ( net-misc/memcached )
201 + net-misc/rsync[xattr]
202 + acct-user/swift
203 + acct-group/swift"
204 +
205 +pkg_pretend() {
206 + linux-info_pkg_setup
207 + CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
208 + ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
209 + ~ZFS"
210 + if linux_config_exists; then
211 + for module in ${CONFIG_CHECK}; do
212 + linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled"
213 + done
214 + fi
215 +}
216 +
217 +src_prepare() {
218 + sed -i 's/xattr/pyxattr/g' requirements.txt || die
219 + sed -i '/^hacking/d' test-requirements.txt || die
220 + distutils-r1_python_prepare_all
221 +}
222 +
223 +src_test() {
224 + # https://bugs.launchpad.net/swift/+bug/1249727
225 + find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
226 + SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
227 +}
228 +
229 +python_install_all() {
230 + distutils-r1_python_install_all
231 + keepdir /etc/swift
232 + insinto /etc/swift
233 +
234 + newins "etc/swift.conf-sample" "swift.conf"
235 + newins "etc/rsyncd.conf-sample" "rsyncd.conf"
236 + newins "etc/mime.types-sample" "mime.types-sample"
237 + newins "etc/memcache.conf-sample" "memcache.conf-sample"
238 + newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
239 + newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
240 +
241 + if use proxy; then
242 + newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
243 + newins "etc/proxy-server.conf-sample" "proxy-server.conf"
244 + if use memcached; then
245 + sed -i '/depend/a\ need memcached' "${D}/etc/init.d/swift-proxy"
246 + fi
247 + fi
248 + if use account; then
249 + newinitd "${FILESDIR}/swift-account.initd" "swift-account"
250 + newins "etc/account-server.conf-sample" "account-server.conf"
251 + fi
252 + if use container; then
253 + newinitd "${FILESDIR}/swift-container.initd" "swift-container"
254 + newins "etc/container-server.conf-sample" "container-server.conf"
255 + fi
256 + if use object; then
257 + newinitd "${FILESDIR}/swift-object.initd" "swift-object"
258 + newins "etc/object-server.conf-sample" "object-server.conf"
259 + newins "etc/object-expirer.conf-sample" "object-expirer.conf"
260 + fi
261 +
262 + if use doc; then
263 + doman doc/manpages/*
264 + dodoc -r doc/{s3api,saio,source}
265 + fi
266 +
267 + fowners root:swift "/etc/swift"
268 + fperms 0750 /etc/swift
269 +}
270 +
271 +pkg_postinst() {
272 + elog "Openstack swift will default to using insecure http unless a"
273 + elog "certificate is created in /etc/swift/cert.crt and the associated key"
274 + elog "in /etc/swift/cert.key. These can be created with the following:"
275 + elog " * cd /etc/swift"
276 + elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
277 +}