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-1.10.0.ebuild ChangeLog
Date: Tue, 29 Oct 2013 05:30:06
Message-Id: 20131029052957.3AD4920047@flycatcher.gentoo.org
1 prometheanfire 13/10/29 05:29:57
2
3 Modified: ChangeLog
4 Added: swift-1.10.0.ebuild
5 Log:
6 adding swift-1.10.0
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
9
10 Revision Changes Path
11 1.17 sys-cluster/swift/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 22 Oct 2013 18:05:46 -0000 1.16
24 +++ ChangeLog 29 Oct 2013 05:29:57 -0000 1.17
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/swift
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.16 2013/10/22 18:05:46 prometheanfire Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.17 2013/10/29 05:29:57 prometheanfire Exp $
30 +
31 +*swift-1.10.0 (29 Oct 2013)
32 +
33 + 29 Oct 2013; Matthew Thode <prometheanfire@g.o> +swift-1.10.0.ebuild:
34 + adding swift-1.10.0
35
36 22 Oct 2013; Matthew Thode <prometheanfire@g.o>
37 swift-2013.2.9999.ebuild:
38
39
40
41 1.1 sys-cluster/swift/swift-1.10.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-1.10.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-1.10.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: swift-1.10.0.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/swift-1.10.0.ebuild,v 1.1 2013/10/29 05:29:57 prometheanfire Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python2_7 )
54
55 inherit distutils-r1 eutils linux-info
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}/havana/${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.5.21[${PYTHON_USEDEP}]
69 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
70 test? ( ~dev-python/pep8-1.4.5[${PYTHON_USEDEP}]
71 ~dev-python/pyflakes-0.7.2[${PYTHON_USEDEP}]
72 ~dev-python/flake8-2.0[${PYTHON_USEDEP}]
73 >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}]
74 <dev-python/hacking-0.6[${PYTHON_USEDEP}]
75 dev-python/nose[${PYTHON_USEDEP}]
76 dev-python/coverage[${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/pep8-1.4.5[${PYTHON_USEDEP}]
81 >=dev-python/mock-0.8.0[${PYTHON_USEDEP}]
82 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] )"
83
84 RDEPEND=">=dev-python/dnspython-1.9.4[${PYTHON_USEDEP}]
85 >=dev-python/eventlet-0.9.15[${PYTHON_USEDEP}]
86 >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}]
87 >=dev-python/netifaces-0.5[${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 dev-python/python-swiftclient[${PYTHON_USEDEP}]
92 memcache? ( net-misc/memcached )
93 net-misc/rsync[xattr]"
94
95 CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
96 ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
97 ~ZFS"
98
99 src_test () {
100 sh .unittests || die
101 }
102
103 pkg_setup() {
104 enewuser swift
105 enewgroup swift
106 }
107
108 src_prepare() {
109 sed -i 's/xattr/pyxattr/g' "${S}/swift.egg-info/requires.txt"
110 sed -i 's/xattr/pyxattr/g' "${S}/tools/pip-requires"
111 }
112
113 python_install() {
114 distutils-r1_python_install
115 keepdir /etc/swift
116 insinto /etc/swift
117
118 newins "etc/swift.conf-sample" "swift.conf"
119 newins "etc/swift-bench.conf-sample" "swift-bench.conf-sample"
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 memcache; 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 swift:swift "/etc/swift" || die "fowners failed"
149 }
150
151 pkg_postinst() {
152 elog "Openstack swift will default to using insecure http unless a"
153 elog "certificate is created in /etc/swift/cert.crt and the associated key"
154 elog "in /etc/swift/cert.key. These can be created with the following:"
155 elog " * cd /etc/swift"
156 elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
157 }
158
159 #src_install()
160 #{
161 # distutils_src_install
162 #
163 # dodir "/var/run/swift"
164 #
165 # if use proxy-server; then
166 # newinitd "${FILESDIR}/swift-proxy-server.initd" swift-proxy-server
167 # fi
168 #
169 # if use storage-server; then
170 # newinitd "${FILESDIR}/swift-storage-server.initd" swift-storage-server
171 # newconfd "${FILESDIR}/swift-storage-server.confd" swift-storage-server
172 # fi
173 #}