Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/swift: swift-2.3.0.ebuild ChangeLog
Date: Thu, 30 Apr 2015 19:40:25
Message-Id: 20150430194022.1E5A09AA@oystercatcher.gentoo.org
1 prometheanfire 15/04/30 19:40:22
2
3 Modified: ChangeLog
4 Added: swift-2.3.0.ebuild
5 Log:
6 more kilo
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)
9
10 Revision Changes Path
11 1.44 sys-cluster/swift/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.44&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.44&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?r1=1.43&r2=1.44
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v
20 retrieving revision 1.43
21 retrieving revision 1.44
22 diff -u -r1.43 -r1.44
23 --- ChangeLog 28 Apr 2015 20:33:39 -0000 1.43
24 +++ ChangeLog 30 Apr 2015 19:40:22 -0000 1.44
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/swift
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.43 2015/04/28 20:33:39 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.44 2015/04/30 19:40:22 prometheanfire Exp $
30 +
31 +*swift-2.3.0 (30 Apr 2015)
32 +
33 + 30 Apr 2015; Matthew Thode <prometheanfire@g.o> +swift-2.3.0.ebuild:
34 + more kilo
35
36 28 Apr 2015; Matthew Thode <prometheanfire@g.o> -swift-9999.ebuild:
37 removing swift based on git master (because keeping up to date on deps sucks)
38
39
40
41 1.1 sys-cluster/swift/swift-2.3.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.3.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.3.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: swift-2.3.0.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/swift-2.3.0.ebuild,v 1.1 2015/04/30 19:40:22 prometheanfire Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python2_7 )
54
55 inherit distutils-r1 eutils linux-info user
56
57 DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store"
58 HOMEPAGE="https://launchpad.net/swift"
59 SRC_URI="http://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz"
60
61 LICENSE="Apache-2.0"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="proxy account container object test +memcache"
65 REQUIRED_USE="|| ( proxy account container object )"
66
67 DEPEND="
68 dev-python/setuptools[${PYTHON_USEDEP}]
69 >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}]
70 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
71 test? (
72 ${RDEPEND}
73 >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}]
74 <dev-python/hacking-0.9[${PYTHON_USEDEP}]
75 dev-python/coverage[${PYTHON_USEDEP}]
76 dev-python/nose[${PYTHON_USEDEP}]
77 dev-python/nosexcover[${PYTHON_USEDEP}]
78 dev-python/openstack-nose-plugin[${PYTHON_USEDEP}]
79 dev-python/nosehtmloutput[${PYTHON_USEDEP}]
80 dev-python/oslo-sphinx[${PYTHON_USEDEP}]
81 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
82 <dev-python/sphinx-1.2[${PYTHON_USEDEP}]
83 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
84 dev-python/python-swiftclient[${PYTHON_USEDEP}]
85 )"
86
87 RDEPEND="
88 >=dev-python/dnspython-1.9.4[${PYTHON_USEDEP}]
89 >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}]
90 !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}]
91 >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
92 >=dev-python/netifaces-0.5[${PYTHON_USEDEP}]
93 !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
94 !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
95 >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
96 >=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
97 dev-python/pyxattr[${PYTHON_USEDEP}]
98 >=dev-python/PyECLib-1.0.7[${PYTHON_USEDEP}]
99 memcache? ( net-misc/memcached )
100 net-misc/rsync[xattr]"
101
102 CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
103 ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
104 ~ZFS"
105
106 PATCHES=(
107 "${FILESDIR}/cve-2015-1856-master-kilo.patch"
108 )
109
110 pkg_setup() {
111 enewuser swift
112 enewgroup swift
113 }
114
115 src_prepare() {
116 sed -i 's/xattr/pyxattr/g' "${S}/swift.egg-info/requires.txt"
117 sed -i 's/xattr/pyxattr/g' "${S}/requirements.txt"
118 distutils-r1_python_prepare_all
119 }
120
121 src_test () {
122 # https://bugs.launchpad.net/swift/+bug/1249727
123 find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
124 SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
125 }
126
127 python_install() {
128 distutils-r1_python_install
129 keepdir /etc/swift
130 insinto /etc/swift
131
132 newins "etc/swift.conf-sample" "swift.conf"
133 newins "etc/rsyncd.conf-sample" "rsyncd.conf"
134 newins "etc/mime.types-sample" "mime.types-sample"
135 newins "etc/memcache.conf-sample" "memcache.conf-sample"
136 newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
137 newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
138
139 if use proxy; then
140 newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
141 newins "etc/proxy-server.conf-sample" "proxy-server.conf"
142 if use memcache; then
143 sed -i '/depend/a\
144 need memcached' "${D}/etc/init.d/swift-proxy"
145 fi
146 fi
147 if use account; then
148 newinitd "${FILESDIR}/swift-account.initd" "swift-account"
149 newins "etc/account-server.conf-sample" "account-server.conf"
150 fi
151 if use container; then
152 newinitd "${FILESDIR}/swift-container.initd" "swift-container"
153 newins "etc/container-server.conf-sample" "container-server.conf"
154 fi
155 if use object; then
156 newinitd "${FILESDIR}/swift-object.initd" "swift-object"
157 newins "etc/object-server.conf-sample" "object-server.conf"
158 newins "etc/object-expirer.conf-sample" "object-expirer.conf"
159 fi
160
161 fowners swift:swift "/etc/swift" || die "fowners failed"
162 }
163
164 pkg_postinst() {
165 elog "Openstack swift will default to using insecure http unless a"
166 elog "certificate is created in /etc/swift/cert.crt and the associated key"
167 elog "in /etc/swift/cert.key. These can be created with the following:"
168 elog " * cd /etc/swift"
169 elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
170 }