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