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.0.0.ebuild ChangeLog
Date: Tue, 08 Jul 2014 23:30:36
Message-Id: 20140708233032.28A052004E@flycatcher.gentoo.org
1 prometheanfire 14/07/08 23:30:32
2
3 Modified: ChangeLog
4 Added: swift-2.0.0.ebuild
5 Log:
6 bup
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
9
10 Revision Changes Path
11 1.32 sys-cluster/swift/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 24 Jun 2014 15:08:49 -0000 1.31
24 +++ ChangeLog 8 Jul 2014 23:30:31 -0000 1.32
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/swift
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.31 2014/06/24 15:08:49 idella4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.32 2014/07/08 23:30:31 prometheanfire Exp $
30 +
31 +*swift-2.0.0 (08 Jul 2014)
32 +
33 + 08 Jul 2014; Matthew Thode <prometheanfire@g.o> +swift-2.0.0.ebuild:
34 + bup
35
36 24 Jun 2014; Ian Delaney <idella4@g.o> -swift-1.12.0.ebuild:
37 rm old
38
39
40
41 1.1 sys-cluster/swift/swift-2.0.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.0.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-2.0.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: swift-2.0.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.0.0.ebuild,v 1.1 2014/07/08 23:30:31 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}/juno/${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="dev-python/setuptools[${PYTHON_USEDEP}]
68 >=dev-python/pbr-0.6.0[${PYTHON_USEDEP}]
69 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
70 test? ( >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}]
71 <dev-python/hacking-0.9[${PYTHON_USEDEP}]
72 dev-python/coverage[${PYTHON_USEDEP}]
73 dev-python/nose[${PYTHON_USEDEP}]
74 dev-python/nosexcover[${PYTHON_USEDEP}]
75 dev-python/openstack-nose-plugin[${PYTHON_USEDEP}]
76 dev-python/nosehtmloutput[${PYTHON_USEDEP}]
77 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
78 <dev-python/sphinx-1.2[${PYTHON_USEDEP}]
79 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
80 dev-python/python-swiftclient[${PYTHON_USEDEP}] )"
81
82 RDEPEND=">=dev-python/dnspython-1.9.4[${PYTHON_USEDEP}]
83 >=dev-python/eventlet-0.9.15[${PYTHON_USEDEP}]
84 >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
85 >=dev-python/netifaces-0.5[${PYTHON_USEDEP}]
86 !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}]
87 !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}]
88 >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}]
89 >=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
90 dev-python/pyxattr[${PYTHON_USEDEP}]
91 memcache? ( net-misc/memcached )
92 net-misc/rsync[xattr]"
93
94 CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
95 ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
96 ~ZFS"
97
98 PATCHES=(
99 )
100
101 pkg_setup() {
102 enewuser swift
103 enewgroup swift
104 }
105
106 src_prepare() {
107 sed -i 's/xattr/pyxattr/g' "${S}/swift.egg-info/requires.txt"
108 sed -i 's/xattr/pyxattr/g' "${S}/requirements.txt"
109 distutils-r1_python_prepare_all
110 }
111
112 src_test () {
113 # https://bugs.launchpad.net/swift/+bug/1249727
114 find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die
115 SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die
116 }
117
118 python_install() {
119 distutils-r1_python_install
120 keepdir /etc/swift
121 insinto /etc/swift
122
123 newins "etc/swift.conf-sample" "swift.conf"
124 # newins "etc/swift-bench.conf-sample" "swift-bench.conf-sample"
125 newins "etc/rsyncd.conf-sample" "rsyncd.conf"
126 newins "etc/mime.types-sample" "mime.types-sample"
127 newins "etc/memcache.conf-sample" "memcache.conf-sample"
128 newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
129 newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
130
131 if use proxy; then
132 newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
133 newins "etc/proxy-server.conf-sample" "proxy-server.conf"
134 if use memcache; then
135 sed -i '/depend/a\
136 need memcached' "${D}/etc/init.d/swift-proxy"
137 fi
138 fi
139 if use account; then
140 newinitd "${FILESDIR}/swift-account.initd" "swift-account"
141 newins "etc/account-server.conf-sample" "account-server.conf"
142 fi
143 if use container; then
144 newinitd "${FILESDIR}/swift-container.initd" "swift-container"
145 newins "etc/container-server.conf-sample" "container-server.conf"
146 fi
147 if use object; then
148 newinitd "${FILESDIR}/swift-object.initd" "swift-object"
149 newins "etc/object-server.conf-sample" "object-server.conf"
150 newins "etc/object-expirer.conf-sample" "object-expirer.conf"
151 fi
152
153 fowners swift:swift "/etc/swift" || die "fowners failed"
154 }
155
156 pkg_postinst() {
157 elog "Openstack swift will default to using insecure http unless a"
158 elog "certificate is created in /etc/swift/cert.crt and the associated key"
159 elog "in /etc/swift/cert.key. These can be created with the following:"
160 elog " * cd /etc/swift"
161 elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
162 }