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