1 |
commit: 4d9418bb5cb44567b63c15103f2e44466748ab1c |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 1 23:56:40 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 23:56:40 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d9418bb |
7 |
|
8 |
app-emulation/ganeti: drop 2.15.2-r1 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-emulation/ganeti/ganeti-2.15.2-r1.ebuild | 310 --------------------------- |
13 |
1 file changed, 310 deletions(-) |
14 |
|
15 |
diff --git a/app-emulation/ganeti/ganeti-2.15.2-r1.ebuild b/app-emulation/ganeti/ganeti-2.15.2-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index b220af7..0000000 |
18 |
--- a/app-emulation/ganeti/ganeti-2.15.2-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,310 +0,0 @@ |
21 |
-# Copyright 1999-2016 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 |
-PYTHON_REQ_USE="ipv6(+)?" |
28 |
- |
29 |
-inherit eutils user autotools bash-completion-r1 python-single-r1 versionator |
30 |
- |
31 |
-MY_PV="${PV/_rc/~rc}" |
32 |
-MY_PV="${MY_PV/_beta/~beta}" |
33 |
-MY_P="${PN}-${MY_PV}" |
34 |
-SERIES="$(get_version_component_range 1-2)" |
35 |
- |
36 |
-if [[ ${PV} =~ [9]{4,} ]] ; then |
37 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
38 |
- inherit git-2 |
39 |
- KEYWORDS="" |
40 |
- GIT_DEPEND="dev-python/docutils |
41 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
42 |
- media-gfx/graphviz |
43 |
- media-fonts/urw-fonts" |
44 |
-else |
45 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz" |
46 |
- KEYWORDS="~amd64 ~x86" |
47 |
-fi |
48 |
- |
49 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
50 |
-HOMEPAGE="http://www.ganeti.org/" |
51 |
- |
52 |
-LICENSE="GPL-2" |
53 |
-SLOT="0" |
54 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
55 |
-REQUIRED_USE="|| ( kvm xen lxc ) test? ( ipv6 ) ${PYTHON_REQUIRED_USE}" |
56 |
- |
57 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
58 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
59 |
- |
60 |
-DOC_DEPEND="dev-python/sphinx[${PYTHON_USEDEP}] |
61 |
- media-fonts/urw-fonts |
62 |
- media-gfx/graphviz" |
63 |
- |
64 |
-DEPEND=" |
65 |
- dev-libs/openssl:0 |
66 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
67 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
68 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
69 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
70 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
71 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
72 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
73 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
74 |
- dev-python/docutils[${PYTHON_USEDEP}] |
75 |
- net-analyzer/arping |
76 |
- net-analyzer/fping |
77 |
- net-misc/bridge-utils |
78 |
- net-misc/curl[ssl] |
79 |
- net-misc/openssh |
80 |
- net-misc/socat |
81 |
- sys-apps/iproute2 |
82 |
- sys-fs/lvm2 |
83 |
- >=sys-apps/baselayout-2.0 |
84 |
- dev-lang/ghc |
85 |
- dev-haskell/cabal:0= |
86 |
- dev-haskell/cabal-install:0= |
87 |
- >=dev-haskell/mtl-2.1.1:0= |
88 |
- >=dev-haskell/old-time-1.1.0.0:0= |
89 |
- >=dev-haskell/random-1.0.1.1:0= |
90 |
- haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= ) |
91 |
- >=dev-haskell/transformers-0.3.0.0:0= |
92 |
- |
93 |
- >=dev-haskell/attoparsec-0.10.1.1:0= |
94 |
- <dev-haskell/attoparsec-0.13:0 |
95 |
- >=dev-haskell/base64-bytestring-1.0.0.1:0= |
96 |
- <dev-haskell/base64-bytestring-1.1:0= |
97 |
- >=dev-haskell/crypto-4.2.4:0= |
98 |
- <dev-haskell/crypto-4.3:0= |
99 |
- >=dev-haskell/curl-1.3.7:0= |
100 |
- <dev-haskell/curl-1.4:0= |
101 |
- >=dev-haskell/hinotify-0.3.2:0= |
102 |
- <dev-haskell/hinotify-0.4:0= |
103 |
- >=dev-haskell/hslogger-1.1.4:0= |
104 |
- <dev-haskell/hslogger-1.3:0= |
105 |
- >=dev-haskell/json-0.5:0= |
106 |
- <dev-haskell/json-0.9:0= |
107 |
- >=dev-haskell/lens-3.10:0= |
108 |
- <dev-haskell/lens-4.8:0= |
109 |
- >=dev-haskell/lifted-base-0.2.0.3:0= |
110 |
- <dev-haskell/lifted-base-0.3:0= |
111 |
- >=dev-haskell/monad-control-0.3.1.3:0= |
112 |
- <dev-haskell/monad-control-1.1:0= |
113 |
- >=dev-haskell/network-2.3.0.13:0= |
114 |
- <dev-haskell/network-2.7:0= |
115 |
- >=dev-haskell/parallel-3.2.0.2:3= |
116 |
- <dev-haskell/parallel-3.3:3= |
117 |
- >=dev-haskell/temporary-1.1.2.3:0= |
118 |
- <dev-haskell/temporary-1.3:0= |
119 |
- >=dev-haskell/regex-pcre-0.94.2:0= |
120 |
- <dev-haskell/regex-pcre-0.95:0= |
121 |
- >=dev-haskell/transformers-base-0.4.1:0= |
122 |
- <dev-haskell/transformers-base-0.5:0= |
123 |
- >=dev-haskell/utf8-string-0.3.7:0= |
124 |
- <dev-haskell/utf8-string-0.4:0= |
125 |
- >=dev-haskell/zlib-0.5.3.3:0= |
126 |
- <dev-haskell/zlib-0.6:0= |
127 |
- |
128 |
- >=dev-haskell/psqueue-1.1:0= |
129 |
- <dev-haskell/psqueue-1.2:0= |
130 |
- >=dev-haskell/snap-core-0.8.1:0= |
131 |
- <dev-haskell/snap-core-0.10:0= |
132 |
- >=dev-haskell/snap-server-0.8.1:0= |
133 |
- <dev-haskell/snap-server-0.10:0= |
134 |
- >=dev-haskell/case-insensitive-0.4.0.1 |
135 |
- |
136 |
- dev-haskell/vector:0= |
137 |
- <dev-haskell/semigroupoids-4.1:0= |
138 |
- <dev-haskell/contravariant-0.6 |
139 |
- <dev-haskell/transformers-compat-0.4[three] |
140 |
- xen? ( >=app-emulation/xen-3.0 ) |
141 |
- kvm? ( |
142 |
- dev-python/psutil |
143 |
- app-emulation/qemu |
144 |
- ) |
145 |
- lxc? ( app-emulation/lxc ) |
146 |
- drbd? ( |
147 |
- || ( |
148 |
- <sys-cluster/drbd-8.5 |
149 |
- sys-cluster/drbd-utils |
150 |
- ) |
151 |
- ) |
152 |
- rbd? ( sys-cluster/ceph ) |
153 |
- ipv6? ( net-misc/ndisc6 ) |
154 |
- ${PYTHON_DEPS} |
155 |
- ${GIT_DEPEND}" |
156 |
-RDEPEND="${DEPEND} |
157 |
- !app-emulation/ganeti-htools" |
158 |
-DEPEND+="sys-devel/m4 |
159 |
- app-text/pandoc |
160 |
- >=dev-haskell/test-framework-0.6:0= |
161 |
- <dev-haskell/test-framework-0.9:0= |
162 |
- >=dev-haskell/test-framework-hunit-0.2.7:0= |
163 |
- <dev-haskell/test-framework-hunit-0.4:0= |
164 |
- >=dev-haskell/test-framework-quickcheck2-0.2.12.1:0= |
165 |
- <dev-haskell/test-framework-quickcheck2-0.4:0= |
166 |
- test? ( |
167 |
- dev-python/mock |
168 |
- dev-python/pyyaml |
169 |
- dev-haskell/haddock:0= |
170 |
- >=dev-haskell/hunit-1.2.4.2:0= |
171 |
- <dev-haskell/hunit-1.3:0= |
172 |
- >=dev-haskell/quickcheck-2.4.2:2= |
173 |
- <dev-haskell/quickcheck-2.8:2= |
174 |
- sys-apps/fakeroot |
175 |
- net-misc/socat |
176 |
- dev-util/shelltestrunner |
177 |
- ${DOC_DEPEND} |
178 |
- )" |
179 |
- |
180 |
-PATCHES=( |
181 |
- "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
182 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
183 |
- "${FILESDIR}/${PN}-2.15-daemon-util.patch" |
184 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
185 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
186 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
187 |
- "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
188 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
189 |
- "${FILESDIR}/${PN}-lockdir.patch" |
190 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
191 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
192 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
193 |
- "${FILESDIR}/${PN}-2.13-process_unittest.patch" |
194 |
- "${FILESDIR}/${PN}-2.15-python-mock.patch" |
195 |
- "${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch" |
196 |
- "${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch" |
197 |
-) |
198 |
- |
199 |
-REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
200 |
- |
201 |
-S="${WORKDIR}/${MY_P}" |
202 |
- |
203 |
-QA_WX_LOAD=" |
204 |
- usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d |
205 |
- usr/lib*/${PN}/${SERIES}/usr/bin/htools |
206 |
-" |
207 |
- |
208 |
-pkg_setup () { |
209 |
- local user |
210 |
- python-single-r1_pkg_setup |
211 |
- |
212 |
- if use multiple-users; then |
213 |
- for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
214 |
- enewgroup ${user} |
215 |
- enewuser ${user} -1 -1 -1 ${user} |
216 |
- done |
217 |
- fi |
218 |
-} |
219 |
- |
220 |
-src_prepare() { |
221 |
- local testfile |
222 |
- epatch "${PATCHES[@]}" |
223 |
- |
224 |
- # not sure why these tests are failing |
225 |
- # should remove this on next version bump if possible |
226 |
- for testfile in test/py/import-export_unittest.bash; do |
227 |
- printf '#!/bin/bash\ntrue\n' > "${testfile}" |
228 |
- done |
229 |
- |
230 |
- # take the sledgehammer approach to bug #526270 |
231 |
- grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g' |
232 |
- |
233 |
- [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh |
234 |
- rm autotools/missing |
235 |
- eautoreconf |
236 |
-} |
237 |
- |
238 |
-src_configure () { |
239 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
240 |
- local kvm_arch |
241 |
- |
242 |
- if use amd64; then |
243 |
- kvm_arch=x86_64 |
244 |
- elif use x86; then |
245 |
- kvm_arch=i386 |
246 |
- elif use kvm; then |
247 |
- die "Could not determine qemu system to use for kvm" |
248 |
- fi |
249 |
- |
250 |
- econf --localstatedir=/var \ |
251 |
- --sharedstatedir=/var \ |
252 |
- --disable-symlinks \ |
253 |
- --docdir=/usr/share/doc/${P} \ |
254 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
255 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
256 |
- --with-os-search-path=/usr/share/${PN}/os \ |
257 |
- $(use_enable test haskell-tests) \ |
258 |
- $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \ |
259 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
260 |
- $(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \ |
261 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
262 |
- $(use_enable syslog) \ |
263 |
- $(use_enable monitoring) \ |
264 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
265 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
266 |
-} |
267 |
- |
268 |
-src_install () { |
269 |
- emake V=1 DESTDIR="${D}" install || die "emake install failed" |
270 |
- |
271 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
272 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
273 |
- |
274 |
- if use kvm; then |
275 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
276 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
277 |
- fi |
278 |
- |
279 |
- # ganeti installs it's own docs in a generic location |
280 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
281 |
- |
282 |
- sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion |
283 |
- newbashcomp doc/examples/bash_completion gnt-instance |
284 |
- bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \ |
285 |
- h{space,check,scan,info,ail,arep,roller,squeeze,bal} \ |
286 |
- gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster} |
287 |
- |
288 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
289 |
- dohtml -r doc/html/* doc/css/*.css |
290 |
- |
291 |
- docinto examples |
292 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
293 |
- |
294 |
- docinto examples/hooks |
295 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
296 |
- |
297 |
- insinto /etc/cron.d |
298 |
- newins doc/examples/ganeti.cron ${PN} |
299 |
- |
300 |
- insinto /etc/logrotate.d |
301 |
- newins doc/examples/ganeti.logrotate ${PN} |
302 |
- |
303 |
- # need to dodir rather than keepdir here (bug #552482) |
304 |
- dodir /var/lib/${PN} |
305 |
- |
306 |
- keepdir /var/log/${PN}/ |
307 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
308 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
309 |
- |
310 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
311 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
312 |
- |
313 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
314 |
-} |
315 |
- |
316 |
-pkg_postinst() { |
317 |
- if use multiple-users; then |
318 |
- elog "You have enable multiple user support, the users for this must" |
319 |
- elog "be created. You can use the provided tool for this, which is" |
320 |
- elog "located at:" |
321 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
322 |
- fi |
323 |
-} |
324 |
- |
325 |
-src_test () { |
326 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
327 |
- TMPDIR="/tmp" \ |
328 |
- GANETI_MASTER="$(hostname -f)" \ |
329 |
- emake check || die "emake check failed" |
330 |
-} |