1 |
commit: 7584e6ec1dfef0e61efd06f0b1861ed95b001228 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 03:14:38 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 03:14:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7584e6ec |
7 |
|
8 |
sys-cluster/swift: OCATA |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
sys-cluster/swift/Manifest | 1 + |
13 |
sys-cluster/swift/swift-2.13.0.ebuild | 113 ++++++++++++++++++++++++++++ |
14 |
sys-cluster/swift/swift-2017.1.9999.ebuild | 114 +++++++++++++++++++++++++++++ |
15 |
3 files changed, 228 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/swift/Manifest b/sys-cluster/swift/Manifest |
18 |
index 2ef896ae50..534f0047e0 100644 |
19 |
--- a/sys-cluster/swift/Manifest |
20 |
+++ b/sys-cluster/swift/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST swift-2.10.0.tar.gz 1868659 SHA256 8f6f05c1571173dc1c159f74dfe92ac4bb5a0aa3c9adf43fb71c57e643e5e355 SHA512 7f3e3280f0ccc4d3733fc7cf9d4d348f80de4dcd832af8e19c35f04f9ab07afe5eb7af465f20f6a37c8d8b6373ff01d491afdf0cf841949ac0cb0a26c139afb8 WHIRLPOOL d5add284951af467337ce9f856d27d29b491b7fc40df034b7c1350b9a067e2b969bb0a5894ecc4c85a3df267ce746ec05938585408ccec64d82fe28d73db1e07 |
23 |
DIST swift-2.10.1.tar.gz 1882648 SHA256 11efe34c68a3fee908b434ede79cdb387862e724971b44e9e02083117aea5d95 SHA512 8307ed1f014f502a6e2d63b1b9c28f3229c035e34397a9c5369470085c6e54a9ac33fde0106beee975bd860c4be169f4da7231b7991ab6472596f6c5b614b178 WHIRLPOOL bc010464b00bb8a7eed96767ec7fccb99baf03250ab64728bc712054276b4c2b28e1432bde76687451ebef26663d2f64335f6e90471e2666f7ca207e5acf7f4b |
24 |
+DIST swift-2.13.0.tar.gz 1928128 SHA256 166cf5181a1cad5a564fab3b387297a431e2ef9fb224753f64cc4ba04016fb48 SHA512 e8f26ede5d51282ca18c72e5b66579236ccce2416441381c60089365f197324af05538de5788df4e81c5dacfe808a7b6fdbaa43de19b3a5319b794ff13211710 WHIRLPOOL 3bbd9714b6ef36f968847fff95f013c60de48671af102c36ede437c72e5143d894f9934f4aa622e6d5334e8601ee6396db6efc2b9f3639e0b4b6faf87b3ec4b5 |
25 |
DIST swift-2.9.0.tar.gz 1799896 SHA256 61f786eabb4e4f329def36ee5a58975e8bc18cce2d3007f858f795d3ed52b2f4 SHA512 8d6c62274f09bfe2512b93f8e7c0084e00018b9a3786e8ae9e6bbcc753248611650ddc135fad5af5cd38ab22dd648305fdd54bac20fbe4ae2d4f259de36f9fef WHIRLPOOL 3cc3f8b57b690ff47229eaf17ce70252326b6ae3bf99ad3b0128b9edfa0df16ea5efe91207feeea4cc931f3dc865f7b58ae578868ec0ee503126b87a23612e87 |
26 |
|
27 |
diff --git a/sys-cluster/swift/swift-2.13.0.ebuild b/sys-cluster/swift/swift-2.13.0.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000000..6ce4c0551b |
30 |
--- /dev/null |
31 |
+++ b/sys-cluster/swift/swift-2.13.0.ebuild |
32 |
@@ -0,0 +1,113 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+ |
39 |
+inherit distutils-r1 eutils linux-info user |
40 |
+ |
41 |
+DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" |
42 |
+HOMEPAGE="https://launchpad.net/swift" |
43 |
+SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
48 |
+IUSE="proxy account container object +memcached" |
49 |
+REQUIRED_USE="|| ( proxy account container object )" |
50 |
+ |
51 |
+CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
52 |
+DEPEND=" |
53 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
54 |
+ ${CDEPEND}" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ ${CDEPEND} |
58 |
+ >=dev-python/dnspython-1.14.0:0[${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.3.1[${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 |
+pkg_pretend() { |
74 |
+ linux-info_pkg_setup |
75 |
+ CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR |
76 |
+ ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR |
77 |
+ ~ZFS" |
78 |
+ if linux_config_exists; then |
79 |
+ for module in ${CONFIG_CHECK}; do |
80 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
81 |
+ done |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ enewuser swift |
87 |
+ enewgroup swift |
88 |
+} |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ sed -i 's/xattr/pyxattr/g' requirements.txt || die |
92 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
93 |
+ distutils-r1_python_prepare_all |
94 |
+} |
95 |
+ |
96 |
+src_test () { |
97 |
+ # https://bugs.launchpad.net/swift/+bug/1249727 |
98 |
+ find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die |
99 |
+ SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die |
100 |
+} |
101 |
+ |
102 |
+python_install_all() { |
103 |
+ distutils-r1_python_install_all |
104 |
+ keepdir /etc/swift |
105 |
+ insinto /etc/swift |
106 |
+ |
107 |
+ newins "etc/swift.conf-sample" "swift.conf" |
108 |
+ newins "etc/rsyncd.conf-sample" "rsyncd.conf" |
109 |
+ newins "etc/mime.types-sample" "mime.types-sample" |
110 |
+ newins "etc/memcache.conf-sample" "memcache.conf-sample" |
111 |
+ newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" |
112 |
+ newins "etc/dispersion.conf-sample" "dispersion.conf-sample" |
113 |
+ |
114 |
+ if use proxy; then |
115 |
+ newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" |
116 |
+ newins "etc/proxy-server.conf-sample" "proxy-server.conf" |
117 |
+ if use memcached; then |
118 |
+ sed -i '/depend/a\ |
119 |
+ need memcached' "${D}/etc/init.d/swift-proxy" |
120 |
+ fi |
121 |
+ fi |
122 |
+ if use account; then |
123 |
+ newinitd "${FILESDIR}/swift-account.initd" "swift-account" |
124 |
+ newins "etc/account-server.conf-sample" "account-server.conf" |
125 |
+ fi |
126 |
+ if use container; then |
127 |
+ newinitd "${FILESDIR}/swift-container.initd" "swift-container" |
128 |
+ newins "etc/container-server.conf-sample" "container-server.conf" |
129 |
+ fi |
130 |
+ if use object; then |
131 |
+ newinitd "${FILESDIR}/swift-object.initd" "swift-object" |
132 |
+ newins "etc/object-server.conf-sample" "object-server.conf" |
133 |
+ newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
134 |
+ fi |
135 |
+ |
136 |
+ fowners swift:swift "/etc/swift" || die "fowners failed" |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ elog "Openstack swift will default to using insecure http unless a" |
141 |
+ elog "certificate is created in /etc/swift/cert.crt and the associated key" |
142 |
+ elog "in /etc/swift/cert.key. These can be created with the following:" |
143 |
+ elog " * cd /etc/swift" |
144 |
+ elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" |
145 |
+} |
146 |
|
147 |
diff --git a/sys-cluster/swift/swift-2017.1.9999.ebuild b/sys-cluster/swift/swift-2017.1.9999.ebuild |
148 |
new file mode 100644 |
149 |
index 0000000000..51ded18f8e |
150 |
--- /dev/null |
151 |
+++ b/sys-cluster/swift/swift-2017.1.9999.ebuild |
152 |
@@ -0,0 +1,114 @@ |
153 |
+# Copyright 1999-2017 Gentoo Foundation |
154 |
+# Distributed under the terms of the GNU General Public License v2 |
155 |
+ |
156 |
+EAPI=6 |
157 |
+PYTHON_COMPAT=( python2_7 ) |
158 |
+ |
159 |
+inherit distutils-r1 eutils git-r3 linux-info user |
160 |
+ |
161 |
+DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" |
162 |
+HOMEPAGE="https://launchpad.net/swift" |
163 |
+EGIT_REPO_URI="https://github.com/openstack/swift.git" |
164 |
+EGIT_BRANCH="stable/ocata" |
165 |
+ |
166 |
+LICENSE="Apache-2.0" |
167 |
+SLOT="0" |
168 |
+KEYWORDS="" |
169 |
+IUSE="proxy account container object +memcached" |
170 |
+REQUIRED_USE="|| ( proxy account container object )" |
171 |
+ |
172 |
+CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
173 |
+DEPEND=" |
174 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
175 |
+ ${CDEPEND}" |
176 |
+ |
177 |
+RDEPEND=" |
178 |
+ ${CDEPEND} |
179 |
+ >=dev-python/dnspython-1.14.0:0[${PYTHON_USEDEP}] |
180 |
+ >=dev-python/eventlet-0.17.4[${PYTHON_USEDEP}] |
181 |
+ >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] |
182 |
+ >=dev-python/netifaces-0.5[${PYTHON_USEDEP}] |
183 |
+ !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] |
184 |
+ !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] |
185 |
+ >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] |
186 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
187 |
+ dev-python/pyxattr[${PYTHON_USEDEP}] |
188 |
+ >=dev-python/PyECLib-1.3.1[${PYTHON_USEDEP}] |
189 |
+ >=dev-python/cryptography-1.0[${PYTHON_USEDEP}] |
190 |
+ !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}] |
191 |
+ memcached? ( net-misc/memcached ) |
192 |
+ net-misc/rsync[xattr]" |
193 |
+ |
194 |
+pkg_pretend() { |
195 |
+ linux-info_pkg_setup |
196 |
+ CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR |
197 |
+ ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR |
198 |
+ ~ZFS" |
199 |
+ if linux_config_exists; then |
200 |
+ for module in ${CONFIG_CHECK}; do |
201 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled" |
202 |
+ done |
203 |
+ fi |
204 |
+} |
205 |
+ |
206 |
+pkg_setup() { |
207 |
+ enewuser swift |
208 |
+ enewgroup swift |
209 |
+} |
210 |
+ |
211 |
+src_prepare() { |
212 |
+ sed -i 's/xattr/pyxattr/g' requirements.txt || die |
213 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
214 |
+ distutils-r1_python_prepare_all |
215 |
+} |
216 |
+ |
217 |
+src_test () { |
218 |
+ # https://bugs.launchpad.net/swift/+bug/1249727 |
219 |
+ find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die |
220 |
+ SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die |
221 |
+} |
222 |
+ |
223 |
+python_install_all() { |
224 |
+ distutils-r1_python_install_all |
225 |
+ keepdir /etc/swift |
226 |
+ insinto /etc/swift |
227 |
+ |
228 |
+ newins "etc/swift.conf-sample" "swift.conf" |
229 |
+ newins "etc/rsyncd.conf-sample" "rsyncd.conf" |
230 |
+ newins "etc/mime.types-sample" "mime.types-sample" |
231 |
+ newins "etc/memcache.conf-sample" "memcache.conf-sample" |
232 |
+ newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" |
233 |
+ newins "etc/dispersion.conf-sample" "dispersion.conf-sample" |
234 |
+ |
235 |
+ if use proxy; then |
236 |
+ newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" |
237 |
+ newins "etc/proxy-server.conf-sample" "proxy-server.conf" |
238 |
+ if use memcached; then |
239 |
+ sed -i '/depend/a\ |
240 |
+ need memcached' "${D}/etc/init.d/swift-proxy" |
241 |
+ fi |
242 |
+ fi |
243 |
+ if use account; then |
244 |
+ newinitd "${FILESDIR}/swift-account.initd" "swift-account" |
245 |
+ newins "etc/account-server.conf-sample" "account-server.conf" |
246 |
+ fi |
247 |
+ if use container; then |
248 |
+ newinitd "${FILESDIR}/swift-container.initd" "swift-container" |
249 |
+ newins "etc/container-server.conf-sample" "container-server.conf" |
250 |
+ fi |
251 |
+ if use object; then |
252 |
+ newinitd "${FILESDIR}/swift-object.initd" "swift-object" |
253 |
+ newins "etc/object-server.conf-sample" "object-server.conf" |
254 |
+ newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
255 |
+ fi |
256 |
+ |
257 |
+ fowners swift:swift "/etc/swift" || die "fowners failed" |
258 |
+} |
259 |
+ |
260 |
+pkg_postinst() { |
261 |
+ elog "Openstack swift will default to using insecure http unless a" |
262 |
+ elog "certificate is created in /etc/swift/cert.crt and the associated key" |
263 |
+ elog "in /etc/swift/cert.key. These can be created with the following:" |
264 |
+ elog " * cd /etc/swift" |
265 |
+ elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" |
266 |
+} |