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: ChangeLog swift-1.7.6-r1.ebuild swift-1.7.6.ebuild
Date: Mon, 04 Mar 2013 21:57:01
Message-Id: 20130304215657.057512171D@flycatcher.gentoo.org
1 prometheanfire 13/03/04 21:56:56
2
3 Modified: ChangeLog
4 Added: swift-1.7.6-r1.ebuild
5 Removed: swift-1.7.6.ebuild
6 Log:
7 sys-cluster/swift spelling fix for bug 457628
8
9 (Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
10
11 Revision Changes Path
12 1.4 sys-cluster/swift/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/ChangeLog?r1=1.3&r2=1.4
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- ChangeLog 26 Jan 2013 09:23:51 -0000 1.3
25 +++ ChangeLog 4 Mar 2013 21:56:56 -0000 1.4
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-cluster/swift
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.3 2013/01/26 09:23:51 prometheanfire Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/ChangeLog,v 1.4 2013/03/04 21:56:56 prometheanfire Exp $
31 +
32 +*swift-1.7.6-r1 (04 Mar 2013)
33 +
34 + 04 Mar 2013; Matthew Thode <prometheanfire@g.o> -swift-1.7.6.ebuild,
35 + +swift-1.7.6-r1.ebuild:
36 + spelling fix for bug 457628
37
38 *swift-1.7.6 (26 Jan 2013)
39
40
41
42
43 1.1 sys-cluster/swift/swift-1.7.6-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-1.7.6-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/swift/swift-1.7.6-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: swift-1.7.6-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/swift/swift-1.7.6-r1.ebuild,v 1.1 2013/03/04 21:56:56 prometheanfire Exp $
53
54 EAPI=5
55 PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
56
57 inherit distutils-r1 eutils linux-info
58
59 DESCRIPTION="A highly available, distributed, eventually consistent object/blob store"
60 HOMEPAGE="https://launchpad.net/swift"
61 SRC_URI="http://launchpad.net/${PN}/grizzly/${PV}/+download/${P}.tar.gz"
62
63 LICENSE="Apache-2.0"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="proxy account container object test +memcache"
67
68 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
69 test? ( dev-python/nose
70 dev-python/coverage
71 dev-python/nosexcover
72 dev-python/pep8
73 dev-python/mock
74 >=dev-python/sphinx-1.1.2 )"
75
76 RDEPEND="dev-python/eventlet
77 dev-python/greenlet
78 dev-python/netifaces
79 dev-python/pastedeploy
80 dev-python/simplejson[${PYTHON_USEDEP}]
81 dev-python/pyxattr
82 dev-python/configobj
83 dev-python/webob
84 >=dev-python/webob-1.0.8
85 <dev-python/webob-1.3
86 >=dev-python/python-swiftclient-1.2.0
87 memcache? ( net-misc/memcached )
88 net-misc/rsync"
89
90 REQUIRED_USE="|| ( proxy account container object )"
91
92 CONFIG_CHECK="~EXT3_FS_XATTR ~SQUASHFS_XATTR ~CIFS_XATTR ~JFFS2_FS_XATTR
93 ~TMPFS_XATTR ~UBIFS_FS_XATTR ~EXT2_FS_XATTR ~REISERFS_FS_XATTR ~EXT4_FS_XATTR
94 ~ZFS"
95
96 src_test () {
97 sh .unittests || die
98 }
99
100 pkg_setup() {
101 enewuser swift
102 enewgroup swift
103 }
104
105 python_install() {
106 distutils-r1_python_install
107 keepdir /etc/swift
108 insinto /etc/swift
109
110 newins "etc/swift.conf-sample" "swift.conf"
111 newins "etc/swift-bench.conf-sample" "swift-bench.conf-sample"
112 newins "etc/rsyncd.conf-sample" "rsyncd.conf"
113 newins "etc/mime.types-sample" "mime.types-sample"
114 newins "etc/memcache.conf-sample" "memcache.conf-sample"
115 newins "etc/drive-audit.conf-sample" "drive-audit.conf-sample"
116 newins "etc/dispersion.conf-sample" "dispersion.conf-sample"
117
118 if use proxy; then
119 newinitd "${FILESDIR}/swift-proxy.initd" "swift-proxy"
120 newins "etc/proxy-server.conf-sample" "proxy-server.conf"
121 if use memcache; then
122 sed -i '/depend/a\
123 need memcached' "${D}/etc/init.d/swift-proxy"
124 fi
125 fi
126 if use account; then
127 newinitd "${FILESDIR}/swift-account.initd" "swift-account"
128 newins "etc/account-server.conf-sample" "account-server.conf"
129 fi
130 if use container; then
131 newinitd "${FILESDIR}/swift-container.initd" "swift-container"
132 newins "etc/container-server.conf-sample" "container-server.conf"
133 fi
134 if use object; then
135 newinitd "${FILESDIR}/swift-object.initd" "swift-object"
136 newins "etc/object-server.conf-sample" "object-server.conf"
137 newins "etc/object-expirer.conf-sample" "object-expirer.conf"
138 fi
139
140 fowners swift:swift "/etc/swift" || die "fowners failed"
141 }
142
143 pkg_postinst() {
144 elog "Openstack swift will default to using insecure http unless a"
145 elog "certificate is created in /etc/swift/cert.crt and the associated key"
146 elog "in /etc/swift/cert.key. These can be created with the following:"
147 elog " * cd /etc/swift"
148 elog " * openssl req -new -x509 -nodes -out cert.crt -keyout cert.key"
149 }
150
151 #src_install()
152 #{
153 # distutils_src_install
154 #
155 # dodir "/var/run/swift"
156 #
157 # if use proxy-server; then
158 # newinitd "${FILESDIR}/swift-proxy-server.initd" swift-proxy-server
159 # fi
160 #
161 # if use storage-server; then
162 # newinitd "${FILESDIR}/swift-storage-server.initd" swift-storage-server
163 # newconfd "${FILESDIR}/swift-storage-server.confd" swift-storage-server
164 # fi
165 #}