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