1 |
commit: ad065d2a5763847d03f97c6738b256af104dad9f |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 3 20:19:45 2019 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 3 20:21:21 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad065d2a |
7 |
|
8 |
sys-cluster/swift: 2.23.1 stable amd64/x86 with cleanup |
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 | 2 - |
14 |
sys-cluster/swift/swift-2.20.0.ebuild | 122 ---------------------------- |
15 |
sys-cluster/swift/swift-2.23.0.ebuild | 125 ----------------------------- |
16 |
sys-cluster/swift/swift-2.23.1.ebuild | 2 +- |
17 |
sys-cluster/swift/swift-2018.2.9999.ebuild | 122 ---------------------------- |
18 |
5 files changed, 1 insertion(+), 372 deletions(-) |
19 |
|
20 |
diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest |
21 |
index 5212d1428d8..415523b38e8 100644 |
22 |
--- a/sys-cluster/swift/Manifest |
23 |
+++ b/sys-cluster/swift/Manifest |
24 |
@@ -1,5 +1,3 @@ |
25 |
-DIST swift-2.20.0.tar.gz 3012428 BLAKE2B 48cfb52bce8d89836ede3d82cde197e282b55cec7fa9366c18102a2259a2c96553c573c92b884e6471a3ff5a5fc88ff3eeadbb200c691db3c6b20b6881132576 SHA512 15f1082a94f16684001b1d6eaa635500d41dd2ed0b65b87d8fc2363f96179cbc4d40a6faee10e966ad954e45035ed77c31dc265daa2c7c9d17a0e81890e6bc79 |
26 |
DIST swift-2.21.0.tar.gz 3025042 BLAKE2B 847b11fa61620cdd07acadd1d4fcc43c9fc53ecfc958e8cb617dde6b643bce116662df74b9b2a01df8551847c4577fedd25aab3951ce437cf5d046552e3b22e0 SHA512 ceb96401aa5d1ab36dc0a08455970f9c1704868d778970cad9783463bf8a25dddc7431df0aa73e4d2d7d4f6ef2908fa5faede749fe94e32d5f67e61768edd964 |
27 |
DIST swift-2.22.0.tar.gz 3070436 BLAKE2B 53049ba901cf5a46d4567c7fa3620b0ad486d88897beb75887d81c5beb747a08ff52e7eba93eab9e9e087c82447d99f0fd85c97211fb4e930ce5b27a1bba41f1 SHA512 855f9d35399251ac86d687b652a9372da4d2f03dff8dee1743357c14c79f6ea8903b7c67d99fed08b6b4cdfa2cfd6ecb78b010b2ee83195eda30c4a9463a5a0c |
28 |
-DIST swift-2.23.0.tar.gz 3091166 BLAKE2B ec08e2617adc1dbe430215eca49728c7fd96e4b644a251852e4c90a709e8dde0e554e996cc4879efe32017a4e7098c0aa787bb344f79706eb2e0afcb2d7f977c SHA512 e90fc1ebc9613ab3da9300b18c15c4661b06dc11e527a665d9a186926ba5640f4f261841d03e6215f7b0bb01cb04b5e242280ffd178e5d7af9343b11e5a661e2 |
29 |
DIST swift-2.23.1.tar.gz 3044545 BLAKE2B b3b06aefa7c58b718f7d9c1c1b9bc92f442b83202b8d5c2dbbb777650088f2d939f5e9d0fbe83cea38fd6635d072cd8bb3894d64ed9767dde203064c1b81cfdb SHA512 48aa82b178f5e3901363c2b9eeeedeea12a58b1ba86cc46937dd9ec074ecc005b04a6ce732d4e9fce2497c6c62b659038da40ed43550256584bb371df4e596fb |
30 |
|
31 |
diff --git a/sys-cluster/swift/swift-2.20.0.ebuild b/sys-cluster/swift/swift-2.20.0.ebuild |
32 |
deleted file mode 100644 |
33 |
index 4590ab73cd1..00000000000 |
34 |
--- a/sys-cluster/swift/swift-2.20.0.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,122 +0,0 @@ |
37 |
-# Copyright 1999-2019 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI=6 |
41 |
-PYTHON_COMPAT=( python2_7 ) |
42 |
- |
43 |
-inherit distutils-r1 eutils linux-info user |
44 |
- |
45 |
-DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" |
46 |
-HOMEPAGE="https://launchpad.net/swift" |
47 |
-if [[ ${PV} == *9999 ]];then |
48 |
- inherit git-r3 |
49 |
- EGIT_REPO_URI="https://github.com/openstack/swift.git" |
50 |
- EGIT_BRANCH="stable/pike" |
51 |
-else |
52 |
- SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
53 |
- KEYWORDS="amd64 ~arm64 x86" |
54 |
-fi |
55 |
- |
56 |
-LICENSE="Apache-2.0" |
57 |
-SLOT="0" |
58 |
-IUSE="proxy account container object +memcached" |
59 |
-REQUIRED_USE="|| ( proxy account container object )" |
60 |
- |
61 |
-CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
62 |
-DEPEND=" |
63 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
64 |
- ${CDEPEND}" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- ${CDEPEND} |
68 |
- >=dev-python/dnspython-1.14.0:0[${PYTHON_USEDEP}] |
69 |
- >=dev-python/eventlet-0.17.4[${PYTHON_USEDEP}] |
70 |
- !~dev-python/eventlet-0.23.0[${PYTHON_USEDEP}] |
71 |
- >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] |
72 |
- >=dev-python/netifaces-0.5[${PYTHON_USEDEP}] |
73 |
- !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] |
74 |
- !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] |
75 |
- >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] |
76 |
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
77 |
- dev-python/pyxattr[${PYTHON_USEDEP}] |
78 |
- >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] |
79 |
- >=dev-python/cryptography-1.6.0[${PYTHON_USEDEP}] |
80 |
- !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] |
81 |
- >=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}] |
82 |
- memcached? ( net-misc/memcached ) |
83 |
- net-misc/rsync[xattr]" |
84 |
- |
85 |
-pkg_pretend() { |
86 |
- linux-info_pkg_setup |
87 |
- CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR |
88 |
- ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR |
89 |
- ~ZFS" |
90 |
- if linux_config_exists; then |
91 |
- for module in ${CONFIG_CHECK}; do |
92 |
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
93 |
- done |
94 |
- fi |
95 |
-} |
96 |
- |
97 |
-pkg_setup() { |
98 |
- enewuser swift |
99 |
- enewgroup swift |
100 |
-} |
101 |
- |
102 |
-src_prepare() { |
103 |
- sed -i 's/xattr/pyxattr/g' requirements.txt || die |
104 |
- sed -i '/^hacking/d' test-requirements.txt || die |
105 |
- distutils-r1_python_prepare_all |
106 |
-} |
107 |
- |
108 |
-src_test () { |
109 |
- # https://bugs.launchpad.net/swift/+bug/1249727 |
110 |
- find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die |
111 |
- SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die |
112 |
-} |
113 |
- |
114 |
-python_install_all() { |
115 |
- distutils-r1_python_install_all |
116 |
- keepdir /etc/swift |
117 |
- insinto /etc/swift |
118 |
- |
119 |
- newins "etc/swift.conf-sample" "swift.conf" |
120 |
- newins "etc/rsyncd.conf-sample" "rsyncd.conf" |
121 |
- newins "etc/mime.types-sample" "mime.types-sample" |
122 |
- newins "etc/memcache.conf-sample" "memcache.conf-sample" |
123 |
- newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" |
124 |
- newins "etc/dispersion.conf-sample" "dispersion.conf-sample" |
125 |
- |
126 |
- if use proxy; then |
127 |
- newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" |
128 |
- newins "etc/proxy-server.conf-sample" "proxy-server.conf" |
129 |
- if use memcached; then |
130 |
- sed -i '/depend/a\ |
131 |
- need memcached' "${D}/etc/init.d/swift-proxy" |
132 |
- fi |
133 |
- fi |
134 |
- if use account; then |
135 |
- newinitd "${FILESDIR}/swift-account.initd" "swift-account" |
136 |
- newins "etc/account-server.conf-sample" "account-server.conf" |
137 |
- fi |
138 |
- if use container; then |
139 |
- newinitd "${FILESDIR}/swift-container.initd" "swift-container" |
140 |
- newins "etc/container-server.conf-sample" "container-server.conf" |
141 |
- fi |
142 |
- if use object; then |
143 |
- newinitd "${FILESDIR}/swift-object.initd" "swift-object" |
144 |
- newins "etc/object-server.conf-sample" "object-server.conf" |
145 |
- newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
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-2.23.0.ebuild b/sys-cluster/swift/swift-2.23.0.ebuild |
161 |
deleted file mode 100644 |
162 |
index 73b14dde3ae..00000000000 |
163 |
--- a/sys-cluster/swift/swift-2.23.0.ebuild |
164 |
+++ /dev/null |
165 |
@@ -1,125 +0,0 @@ |
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 |
-} |
291 |
|
292 |
diff --git a/sys-cluster/swift/swift-2.23.1.ebuild b/sys-cluster/swift/swift-2.23.1.ebuild |
293 |
index 73b14dde3ae..aaecc71181d 100644 |
294 |
--- a/sys-cluster/swift/swift-2.23.1.ebuild |
295 |
+++ b/sys-cluster/swift/swift-2.23.1.ebuild |
296 |
@@ -14,7 +14,7 @@ if [[ ${PV} == *9999 ]];then |
297 |
EGIT_BRANCH="stable/train" |
298 |
else |
299 |
SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
300 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
301 |
+ KEYWORDS="amd64 ~arm64 x86" |
302 |
fi |
303 |
|
304 |
LICENSE="Apache-2.0" |
305 |
|
306 |
diff --git a/sys-cluster/swift/swift-2018.2.9999.ebuild b/sys-cluster/swift/swift-2018.2.9999.ebuild |
307 |
deleted file mode 100644 |
308 |
index fc811ca9d0e..00000000000 |
309 |
--- a/sys-cluster/swift/swift-2018.2.9999.ebuild |
310 |
+++ /dev/null |
311 |
@@ -1,122 +0,0 @@ |
312 |
-# Copyright 1999-2018 Gentoo Foundation |
313 |
-# Distributed under the terms of the GNU General Public License v2 |
314 |
- |
315 |
-EAPI=6 |
316 |
-PYTHON_COMPAT=( python2_7 ) |
317 |
- |
318 |
-inherit distutils-r1 eutils linux-info user |
319 |
- |
320 |
-DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" |
321 |
-HOMEPAGE="https://launchpad.net/swift" |
322 |
-if [[ ${PV} == *9999 ]];then |
323 |
- inherit git-r3 |
324 |
- EGIT_REPO_URI="https://github.com/openstack/swift.git" |
325 |
- EGIT_BRANCH="stable/rocky" |
326 |
-else |
327 |
- SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
328 |
- KEYWORDS="~amd64 ~arm64 ~x86" |
329 |
-fi |
330 |
- |
331 |
-LICENSE="Apache-2.0" |
332 |
-SLOT="0" |
333 |
-IUSE="proxy account container object +memcached" |
334 |
-REQUIRED_USE="|| ( proxy account container object )" |
335 |
- |
336 |
-CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
337 |
-DEPEND=" |
338 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
339 |
- ${CDEPEND}" |
340 |
- |
341 |
-RDEPEND=" |
342 |
- ${CDEPEND} |
343 |
- >=dev-python/dnspython-1.14.0:0[${PYTHON_USEDEP}] |
344 |
- >=dev-python/eventlet-0.17.4[${PYTHON_USEDEP}] |
345 |
- !~dev-python/eventlet-0.23.0[${PYTHON_USEDEP}] |
346 |
- >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] |
347 |
- >=dev-python/netifaces-0.5[${PYTHON_USEDEP}] |
348 |
- !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] |
349 |
- !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] |
350 |
- >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] |
351 |
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
352 |
- dev-python/pyxattr[${PYTHON_USEDEP}] |
353 |
- >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] |
354 |
- >=dev-python/cryptography-1.6.0[${PYTHON_USEDEP}] |
355 |
- !~dev-python/cryptography-2.0[${PYTHON_USEDEP}] |
356 |
- >=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}] |
357 |
- memcached? ( net-misc/memcached ) |
358 |
- net-misc/rsync[xattr]" |
359 |
- |
360 |
-pkg_pretend() { |
361 |
- linux-info_pkg_setup |
362 |
- CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR |
363 |
- ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR |
364 |
- ~ZFS" |
365 |
- if linux_config_exists; then |
366 |
- for module in ${CONFIG_CHECK}; do |
367 |
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
368 |
- done |
369 |
- fi |
370 |
-} |
371 |
- |
372 |
-pkg_setup() { |
373 |
- enewuser swift |
374 |
- enewgroup swift |
375 |
-} |
376 |
- |
377 |
-src_prepare() { |
378 |
- sed -i 's/xattr/pyxattr/g' requirements.txt || die |
379 |
- sed -i '/^hacking/d' test-requirements.txt || die |
380 |
- distutils-r1_python_prepare_all |
381 |
-} |
382 |
- |
383 |
-src_test () { |
384 |
- # https://bugs.launchpad.net/swift/+bug/1249727 |
385 |
- find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die |
386 |
- SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die |
387 |
-} |
388 |
- |
389 |
-python_install_all() { |
390 |
- distutils-r1_python_install_all |
391 |
- keepdir /etc/swift |
392 |
- insinto /etc/swift |
393 |
- |
394 |
- newins "etc/swift.conf-sample" "swift.conf" |
395 |
- newins "etc/rsyncd.conf-sample" "rsyncd.conf" |
396 |
- newins "etc/mime.types-sample" "mime.types-sample" |
397 |
- newins "etc/memcache.conf-sample" "memcache.conf-sample" |
398 |
- newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" |
399 |
- newins "etc/dispersion.conf-sample" "dispersion.conf-sample" |
400 |
- |
401 |
- if use proxy; then |
402 |
- newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" |
403 |
- newins "etc/proxy-server.conf-sample" "proxy-server.conf" |
404 |
- if use memcached; then |
405 |
- sed -i '/depend/a\ |
406 |
- need memcached' "${D}/etc/init.d/swift-proxy" |
407 |
- fi |
408 |
- fi |
409 |
- if use account; then |
410 |
- newinitd "${FILESDIR}/swift-account.initd" "swift-account" |
411 |
- newins "etc/account-server.conf-sample" "account-server.conf" |
412 |
- fi |
413 |
- if use container; then |
414 |
- newinitd "${FILESDIR}/swift-container.initd" "swift-container" |
415 |
- newins "etc/container-server.conf-sample" "container-server.conf" |
416 |
- fi |
417 |
- if use object; then |
418 |
- newinitd "${FILESDIR}/swift-object.initd" "swift-object" |
419 |
- newins "etc/object-server.conf-sample" "object-server.conf" |
420 |
- newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
421 |
- fi |
422 |
- |
423 |
- fowners root:swift "/etc/swift" || die "fowners failed" |
424 |
- fperms 0750 /etc/swift |
425 |
-} |
426 |
- |
427 |
-pkg_postinst() { |
428 |
- elog "Openstack swift will default to using insecure http unless a" |
429 |
- elog "certificate is created in /etc/swift/cert.crt and the associated key" |
430 |
- elog "in /etc/swift/cert.key. These can be created with the following:" |
431 |
- elog " * cd /etc/swift" |
432 |
- elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" |
433 |
-} |