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.2.2.ebuild ChangeLog
Date: Sun, 08 Feb 2015 02:22:24
Message-Id: 20150208022219.DF588114A6@oystercatcher.gentoo.org
1 prometheanfire 15/02/08 02:22:19
2
3 Modified: ChangeLog
4 Added: swift-2.2.2.ebuild
5 Log:
6 bup
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)
9
10 Revision Changes Path
11 1.37 sys-cluster/swift/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?r1=1.36&r2=1.37
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- ChangeLog 13 Jan 2015 03:24:49 -0000 1.36
24 +++ ChangeLog 8 Feb 2015 02:22:19 -0000 1.37
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.36 2015/01/13 03:24:49 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.37 2015/02/08 02:22:19 prometheanfire Exp $
30 +
31 +*swift-2.2.2 (08 Feb 2015)
32 +
33 + 08 Feb 2015; Matthew Thode <prometheanfire@g.o> +swift-2.2.2.ebuild:
34 + bup
35
36 13 Jan 2015; Matthew Thode <prometheanfire@g.o>
37 -files/CVE-2013-2161.patch, -files/CVE-2014-0006-havana.diff,
38
39
40
41 1.1 sys-cluster/swift/swift-2.2.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: swift-2.2.2.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.2.2.ebuild,v 1.1 2015/02/08 02:22:19 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, 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.6.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/sphinx-1.1.2[${PYTHON_USEDEP}]
81 <dev-python/sphinx-1.2[${PYTHON_USEDEP}]
82 dev-python/oslo-sphinx[${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.9.15[${PYTHON_USEDEP}]
90 >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
91 >=dev-python/netifaces-0.5[${PYTHON_USEDEP}]
92 !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
93 !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
94 >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
95 >=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
96 dev-python/pyxattr[${PYTHON_USEDEP}]
97 memcache? ( net-misc/memcached )
98 net-misc/rsync[xattr]"
99
100 CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
101 ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
102 ~ZFS"
103
104 PATCHES=(
105 )
106
107 pkg_setup() {
108 enewuser swift
109 enewgroup swift
110 }
111
112 src_prepare() {
113 sed -i 's/xattr/pyxattr/g' "${S}/swift.egg-info/requires.txt"
114 sed -i 's/xattr/pyxattr/g' "${S}/requirements.txt"
115 distutils-r1_python_prepare_all
116 }
117
118 src_test () {
119 # https://bugs.launchpad.net/swift/+bug/1249727
120 find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
121 SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
122 }
123
124 python_install() {
125 distutils-r1_python_install
126 keepdir /etc/swift
127 insinto /etc/swift
128
129 newins "etc/swift.conf-sample" "swift.conf"
130 # newins "etc/swift-bench.conf-sample" "swift-bench.conf-sample"
131 newins "etc/rsyncd.conf-sample" "rsyncd.conf"
132 newins "etc/mime.types-sample" "mime.types-sample"
133 newins "etc/memcache.conf-sample" "memcache.conf-sample"
134 newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
135 newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
136
137 if use proxy; then
138 newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
139 newins "etc/proxy-server.conf-sample" "proxy-server.conf"
140 if use memcache; then
141 sed -i '/depend/a\
142 need memcached' "${D}/etc/init.d/swift-proxy"
143 fi
144 fi
145 if use account; then
146 newinitd "${FILESDIR}/swift-account.initd" "swift-account"
147 newins "etc/account-server.conf-sample" "account-server.conf"
148 fi
149 if use container; then
150 newinitd "${FILESDIR}/swift-container.initd" "swift-container"
151 newins "etc/container-server.conf-sample" "container-server.conf"
152 fi
153 if use object; then
154 newinitd "${FILESDIR}/swift-object.initd" "swift-object"
155 newins "etc/object-server.conf-sample" "object-server.conf"
156 newins "etc/object-expirer.conf-sample" "object-expirer.conf"
157 fi
158
159 fowners swift:swift "/etc/swift" || die "fowners failed"
160 }
161
162 pkg_postinst() {
163 elog "Openstack swift will default to using insecure http unless a"
164 elog "certificate is created in /etc/swift/cert.crt and the associated key"
165 elog "in /etc/swift/cert.key. These can be created with the following:"
166 elog " * cd /etc/swift"
167 elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
168 }