1 |
commit: 0ff1530a3a589c95d71741d8d91b45c0068e86d5 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 26 23:45:25 2015 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 26 23:45:25 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff1530a |
7 |
|
8 |
sys-cluster/swift: removing vulerable ebuild bug 558834 |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
sys-cluster/swift/swift-2.3.0.ebuild | 122 ----------------------------------- |
13 |
1 file changed, 122 deletions(-) |
14 |
|
15 |
diff --git a/sys-cluster/swift/swift-2.3.0.ebuild b/sys-cluster/swift/swift-2.3.0.ebuild |
16 |
deleted file mode 100644 |
17 |
index 7dcbf95..0000000 |
18 |
--- a/sys-cluster/swift/swift-2.3.0.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,122 +0,0 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-PYTHON_COMPAT=( python2_7 ) |
27 |
- |
28 |
-inherit distutils-r1 eutils linux-info user |
29 |
- |
30 |
-DESCRIPTION="A highly available, distributed, and eventually consistent object/blob store" |
31 |
-HOMEPAGE="https://launchpad.net/swift" |
32 |
-SRC_URI="https://launchpad.net/${PN}/kilo/${PV}/+download/${P}.tar.gz" |
33 |
- |
34 |
-LICENSE="Apache-2.0" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="amd64 x86" |
37 |
-IUSE="proxy account container object test +memcached" |
38 |
-REQUIRED_USE="|| ( proxy account container object )" |
39 |
- |
40 |
-DEPEND=" |
41 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
42 |
- >=dev-python/pbr-0.8.0[${PYTHON_USEDEP}] |
43 |
- <dev-python/pbr-1.0[${PYTHON_USEDEP}] |
44 |
- test? ( |
45 |
- ${RDEPEND} |
46 |
- >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}] |
47 |
- <dev-python/hacking-0.9[${PYTHON_USEDEP}] |
48 |
- dev-python/coverage[${PYTHON_USEDEP}] |
49 |
- dev-python/nose[${PYTHON_USEDEP}] |
50 |
- dev-python/nosexcover[${PYTHON_USEDEP}] |
51 |
- dev-python/openstack-nose-plugin[${PYTHON_USEDEP}] |
52 |
- dev-python/nosehtmloutput[${PYTHON_USEDEP}] |
53 |
- dev-python/oslo-sphinx[${PYTHON_USEDEP}] |
54 |
- >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
55 |
- <dev-python/sphinx-1.2[${PYTHON_USEDEP}] |
56 |
- >=dev-python/mock-1.0[${PYTHON_USEDEP}] |
57 |
- dev-python/python-swiftclient[${PYTHON_USEDEP}] |
58 |
- )" |
59 |
- |
60 |
-RDEPEND=" |
61 |
- >=dev-python/dnspython-1.9.4[${PYTHON_USEDEP}] |
62 |
- >=dev-python/eventlet-0.16.1[${PYTHON_USEDEP}] |
63 |
- !~dev-python/eventlet-0.17.0[${PYTHON_USEDEP}] |
64 |
- >=dev-python/greenlet-0.3.1[${PYTHON_USEDEP}] |
65 |
- >=dev-python/netifaces-0.5[${PYTHON_USEDEP}] |
66 |
- !~dev-python/netifaces-0.10.0[${PYTHON_USEDEP}] |
67 |
- !~dev-python/netifaces-0.10.1[${PYTHON_USEDEP}] |
68 |
- >=dev-python/pastedeploy-1.3.3[${PYTHON_USEDEP}] |
69 |
- >=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}] |
70 |
- dev-python/pyxattr[${PYTHON_USEDEP}] |
71 |
- >=dev-python/PyECLib-1.0.7[${PYTHON_USEDEP}] |
72 |
- memcached? ( net-misc/memcached ) |
73 |
- net-misc/rsync[xattr]" |
74 |
- |
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 |
- |
79 |
-PATCHES=( |
80 |
-) |
81 |
- |
82 |
-pkg_setup() { |
83 |
- enewuser swift |
84 |
- enewgroup swift |
85 |
-} |
86 |
- |
87 |
-src_prepare() { |
88 |
- sed -i 's/xattr/pyxattr/g' "${S}/swift.egg-info/requires.txt" |
89 |
- sed -i 's/xattr/pyxattr/g' "${S}/requirements.txt" |
90 |
- distutils-r1_python_prepare_all |
91 |
-} |
92 |
- |
93 |
-src_test () { |
94 |
- # https://bugs.launchpad.net/swift/+bug/1249727 |
95 |
- find . \( -name test_wsgi.py -o -name test_locale.py -o -name test_utils.py \) -delete || die |
96 |
- SKIP_PIP_INSTALL=1 PBR_VERSION=0.6.0 sh .unittests || die |
97 |
-} |
98 |
- |
99 |
-python_install() { |
100 |
- distutils-r1_python_install |
101 |
- keepdir /etc/swift |
102 |
- insinto /etc/swift |
103 |
- |
104 |
- newins "etc/swift.conf-sample" "swift.conf" |
105 |
- newins "etc/rsyncd.conf-sample" "rsyncd.conf" |
106 |
- newins "etc/mime.types-sample" "mime.types-sample" |
107 |
- newins "etc/memcache.conf-sample" "memcache.conf-sample" |
108 |
- newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample" |
109 |
- newins "etc/dispersion.conf-sample" "dispersion.conf-sample" |
110 |
- |
111 |
- if use proxy; then |
112 |
- newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy" |
113 |
- newins "etc/proxy-server.conf-sample" "proxy-server.conf" |
114 |
- if use memcached; then |
115 |
- sed -i '/depend/a\ |
116 |
- need memcached' "${D}/etc/init.d/swift-proxy" |
117 |
- fi |
118 |
- fi |
119 |
- if use account; then |
120 |
- newinitd "${FILESDIR}/swift-account.initd" "swift-account" |
121 |
- newins "etc/account-server.conf-sample" "account-server.conf" |
122 |
- fi |
123 |
- if use container; then |
124 |
- newinitd "${FILESDIR}/swift-container.initd" "swift-container" |
125 |
- newins "etc/container-server.conf-sample" "container-server.conf" |
126 |
- fi |
127 |
- if use object; then |
128 |
- newinitd "${FILESDIR}/swift-object.initd" "swift-object" |
129 |
- newins "etc/object-server.conf-sample" "object-server.conf" |
130 |
- newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
131 |
- fi |
132 |
- |
133 |
- fowners swift:swift "/etc/swift" || die "fowners failed" |
134 |
-} |
135 |
- |
136 |
-pkg_postinst() { |
137 |
- elog "Openstack swift will default to using insecure http unless a" |
138 |
- elog "certificate is created in /etc/swift/cert.crt and the associated key" |
139 |
- elog "in /etc/swift/cert.key. These can be created with the following:" |
140 |
- elog " * cd /etc/swift" |
141 |
- elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key" |
142 |
-} |