Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/swift/
Date: Wed, 28 Sep 2016 02:51:11
Message-Id: 1475031028.e03de93d88f00dbe126a2a110c22d5e9ce9a6bde.prometheanfire@gentoo
1 commit: e03de93d88f00dbe126a2a110c22d5e9ce9a6bde
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 02:50:28 2016 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 02:50:28 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e03de93d
7
8 sys-cluster/swift: bup
9
10 Package-Manager: portage-2.3.0
11
12 sys-cluster/swift/Manifest | 1 +
13 sys-cluster/swift/swift-2.10.0.ebuild | 109 ++++++++++++++++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest
17 index 890d6ad..822251b 100644
18 --- a/sys-cluster/swift/Manifest
19 +++ b/sys-cluster/swift/Manifest
20 @@ -1 +1,2 @@
21 +DIST swift-2.10.0.tar.gz 1868659 SHA256 8f6f05c1571173dc1c159f74dfe92ac4bb5a0aa3c9adf43fb71c57e643e5e355 SHA512 7f3e3280f0ccc4d3733fc7cf9d4d348f80de4dcd832af8e19c35f04f9ab07afe5eb7af465f20f6a37c8d8b6373ff01d491afdf0cf841949ac0cb0a26c139afb8 WHIRLPOOL d5add284951af467337ce9f856d27d29b491b7fc40df034b7c1350b9a067e2b969bb0a5894ecc4c85a3df267ce746ec05938585408ccec64d82fe28d73db1e07
22 DIST swift-2.9.0.tar.gz 1799896 SHA256 61f786eabb4e4f329def36ee5a58975e8bc18cce2d3007f858f795d3ed52b2f4 SHA512 8d6c62274f09bfe2512b93f8e7c0084e00018b9a3786e8ae9e6bbcc753248611650ddc135fad5af5cd38ab22dd648305fdd54bac20fbe4ae2d4f259de36f9fef WHIRLPOOL 3cc3f8b57b690ff47229eaf17ce70252326b6ae3bf99ad3b0128b9edfa0df16ea5efe91207feeea4cc931f3dc865f7b58ae578868ec0ee503126b87a23612e87
23
24 diff --git a/sys-cluster/swift/swift-2.10.0.ebuild b/sys-cluster/swift/swift-2.10.0.ebuild
25 new file mode 100644
26 index 00000000..f5b0344
27 --- /dev/null
28 +++ b/sys-cluster/swift/swift-2.10.0.ebuild
29 @@ -0,0 +1,109 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +PYTHON_COMPAT=( python2_7 )
36 +
37 +inherit distutils-r1 eutils linux-info user
38 +
39 +DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store"
40 +HOMEPAGE="https://launchpad.net/swift"
41 +SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm64 ~x86"
46 +IUSE="proxy account container object +memcached"
47 +REQUIRED_USE="|| ( proxy account container object )"
48 +
49 +CDEPEND="
50 + >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}]
51 + <dev-python/pbr-2.0[${PYTHON_USEDEP}]"
52 +DEPEND="
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + ${CDEPEND}"
55 +
56 +RDEPEND="
57 + ${CDEPEND}
58 + virtual/python-dnspython[${PYTHON_USEDEP}]
59 + >=dev-python/eventlet-0.17.4[${PYTHON_USEDEP}]
60 + >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
61 + >=dev-python/netifaces-0.5[${PYTHON_USEDEP}]
62 + !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
63 + !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
64 + >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
65 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
66 + dev-python/pyxattr[${PYTHON_USEDEP}]
67 + >=dev-python/PyECLib-1.2.0[${PYTHON_USEDEP}]
68 + >=dev-python/cryptography-1.0[${PYTHON_USEDEP}]
69 + !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}]
70 + memcached? ( net-misc/memcached )
71 + net-misc/rsync[xattr]"
72 +
73 +CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
74 +~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
75 +~ZFS"
76 +
77 +pkg_setup() {
78 + enewuser swift
79 + enewgroup swift
80 +}
81 +
82 +src_prepare() {
83 + sed -i 's/xattr/pyxattr/g' swift.egg-info/requires.txt || die
84 + sed -i 's/xattr/pyxattr/g' requirements.txt || die
85 + sed -i '/^hacking/d' test-requirements.txt || die
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +src_test () {
90 + # https://bugs.launchpad.net/swift/+bug/1249727
91 + find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
92 + SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
93 +}
94 +
95 +python_install() {
96 + distutils-r1_python_install
97 + keepdir /etc/swift
98 + insinto /etc/swift
99 +
100 + newins "etc/swift.conf-sample" "swift.conf"
101 + newins "etc/rsyncd.conf-sample" "rsyncd.conf"
102 + newins "etc/mime.types-sample" "mime.types-sample"
103 + newins "etc/memcache.conf-sample" "memcache.conf-sample"
104 + newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
105 + newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
106 +
107 + if use proxy; then
108 + newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
109 + newins "etc/proxy-server.conf-sample" "proxy-server.conf"
110 + if use memcached; then
111 + sed -i '/depend/a\
112 + need memcached' "${D}/etc/init.d/swift-proxy"
113 + fi
114 + fi
115 + if use account; then
116 + newinitd "${FILESDIR}/swift-account.initd" "swift-account"
117 + newins "etc/account-server.conf-sample" "account-server.conf"
118 + fi
119 + if use container; then
120 + newinitd "${FILESDIR}/swift-container.initd" "swift-container"
121 + newins "etc/container-server.conf-sample" "container-server.conf"
122 + fi
123 + if use object; then
124 + newinitd "${FILESDIR}/swift-object.initd" "swift-object"
125 + newins "etc/object-server.conf-sample" "object-server.conf"
126 + newins "etc/object-expirer.conf-sample" "object-expirer.conf"
127 + fi
128 +
129 + fowners swift:swift "/etc/swift" || die "fowners failed"
130 +}
131 +
132 +pkg_postinst() {
133 + elog "Openstack swift will default to using insecure http unless a"
134 + elog "certificate is created in /etc/swift/cert.crt and the associated key"
135 + elog "in /etc/swift/cert.key. These can be created with the following:"
136 + elog " * cd /etc/swift"
137 + elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
138 +}