1 |
commit: 260a9b7b4570e9993ca3a957be6f4b24a288d9e2 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 2 00:56:30 2016 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 2 00:56:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=260a9b7b |
7 |
|
8 |
app-emulation/ganeti: Remove all versions except 2.15.2-r5 |
9 |
|
10 |
Gentoo-Bug: 570240 |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
app-emulation/ganeti/Manifest | 4 - |
15 |
app-emulation/ganeti/ganeti-2.11.6-r2.ebuild | 225 ------------------- |
16 |
app-emulation/ganeti/ganeti-2.12.3-r2.ebuild | 267 ----------------------- |
17 |
app-emulation/ganeti/ganeti-2.13.0-r3.ebuild | 260 ---------------------- |
18 |
app-emulation/ganeti/ganeti-2.14.1-r2.ebuild | 296 ------------------------- |
19 |
app-emulation/ganeti/ganeti-2.15.2-r4.ebuild | 313 --------------------------- |
20 |
6 files changed, 1365 deletions(-) |
21 |
|
22 |
diff --git a/app-emulation/ganeti/Manifest b/app-emulation/ganeti/Manifest |
23 |
index 7936b35..d0025a3 100644 |
24 |
--- a/app-emulation/ganeti/Manifest |
25 |
+++ b/app-emulation/ganeti/Manifest |
26 |
@@ -1,6 +1,2 @@ |
27 |
-DIST ganeti-2.11.6.tar.gz 4145886 SHA256 db11659ae7aaab5933b55b35f703236edc91ec763e443ac80679a057ba57af5e SHA512 c68ba0661f7598b2fbd67a96fd897e9a8fe7c3a79e914200c08a8e6cb78ad7ea8a85ce7cfee157e22c07d5f46ae6ed61d946cf2cc3852624cd303deb96f1e449 WHIRLPOOL 9bd0acd85ed86b8d05164d6ee70ea960fd42128f9144739c148e70917675d53c1d808d22df981a1ea0d843dfc5fd14fd516d6d39330634beec7eb0ecae4cbe5b |
28 |
-DIST ganeti-2.12.3.tar.gz 4373350 SHA256 e66fc4c3dde1e90d85749ceb5c1c90bd6eaed1d139796829833b74337d2d4148 SHA512 7715db8e472e4ac99bf184028cd9853495153485c6638bcddba2d05ce958b6b44d3be07290780bb27b22337ae646881d6b0a30bbe87b7249106ac34d22bdd6c2 WHIRLPOOL e24d695d5acc582905ae7ba003e3fe6e6aa6ea4f9135daf76b953864c392803cd1c6ed81eb0e96652038f289bf450f3ac1a428c46d7a2573bc39a9451a47694e |
29 |
-DIST ganeti-2.13.0.tar.gz 4573781 SHA256 30ccfa971b15d49b45a4bfb75bb9631c0993adbd7feac0562c11305ae8c13753 SHA512 bd847ae7e12cb978fae59a458a4d0e33fee470c51748964453b5d0ea6615e6d959519c84922e92229e942a88f1ad88a6d1cb655f58391d033d5f5dfc249ef941 WHIRLPOOL 925159e36fde1cd36214b4fe54b4e06958cc8bd3ded28e32bc4f99842aafcb4c53c701c8a651421559dc13b4d18ae2cc11f1b9d1d2da1e862561cca81d009bda |
30 |
-DIST ganeti-2.14.1.tar.gz 4655994 SHA256 ae90c69f0c02d2ee558363a1c021dfaaaf4ccb59b662a72fa6485b406766e133 SHA512 2d3927bf888ea56df6b6275a869979c53d4b01e2e527e2dddea2a4835c90e85831e9e7691162999e5c58e9d214e03a37690e84f8fde9f1a0631897b06db348c3 WHIRLPOOL 3554161afd646af41e587fffa9dc85788f6ef13102121c636802946b64161cdeaeea326103171b70577b06635eebf6988b2f3942024a944612642aefd92b89bb |
31 |
DIST ganeti-2.15.2.tar.gz 4723007 SHA256 1e09d29cae5020142d20a96165b23f3b62b5511b875051b6374d09c4c13c0b83 SHA512 e0707aa535857779622e0eb18cccb89bc34fe4acf373628c30524e3f7e572c4b3d628946ad219149c14615d6471c4d72dbd0c6e3e1855a9f3644b4605544df85 WHIRLPOOL a09a13d64e7c6fa7823072d767fa6495cd814bb22e7a5fc708c8b339103a41da4e45f38574a2c665fe89c8774f220a2715c3aba180eb674eae603730dd2d25ad |
32 |
DIST ganeti_2.15.2-4.debian.tar.xz 42440 SHA256 d2b907ad54b6fad8bc9c023c718c6f1a35cbc487fa065291f465f1e518df6d02 SHA512 e405f54996236fe5166c89190c529256899458594d30e4daee85a9381400e618bc8cc578c43a166ed6d868ed3c5118e4bddc5103b596db89a504de3ba3a1f403 WHIRLPOOL 16acab23919541bfd1748ff9f5e243c483ed4b5b10bcd5c233821c06968671ce0fcdab86ec95a30f6162a308df1eca16424e94b80ea095dfc90931a4be930b26 |
33 |
|
34 |
diff --git a/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild b/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild |
35 |
deleted file mode 100644 |
36 |
index 09b4625..00000000 |
37 |
--- a/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,225 +0,0 @@ |
40 |
-# Copyright 1999-2016 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
-# $Id$ |
43 |
- |
44 |
-EAPI=5 |
45 |
-PYTHON_COMPAT=(python2_7) |
46 |
-PYTHON_REQ_USE="ipv6(+)?" |
47 |
- |
48 |
-inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator pax-utils |
49 |
- |
50 |
-MY_PV="${PV/_rc/~rc}" |
51 |
-#MY_PV="${PV/_beta/~beta}" |
52 |
-MY_P="${PN}-${MY_PV}" |
53 |
-SERIES="$(get_version_component_range 1-2)" |
54 |
- |
55 |
-if [[ ${PV} == "9999" ]] ; then |
56 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
57 |
- inherit git-2 |
58 |
- KEYWORDS="" |
59 |
- # you will need to pull in the haskell overlay for pandoc |
60 |
- GIT_DEPEND="app-text/pandoc |
61 |
- dev-python/docutils |
62 |
- dev-python/sphinx |
63 |
- media-libs/gd[fontconfig,jpeg,png,truetype] |
64 |
- media-gfx/graphviz |
65 |
- media-fonts/urw-fonts" |
66 |
-else |
67 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz" |
68 |
- KEYWORDS="amd64 x86" |
69 |
-fi |
70 |
- |
71 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
72 |
-HOMEPAGE="https://code.google.com/p/ganeti/" |
73 |
- |
74 |
-LICENSE="GPL-2" |
75 |
-SLOT="0" |
76 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
77 |
-REQUIRED_USE="|| ( kvm xen lxc ) |
78 |
- test? ( ipv6 )" |
79 |
- |
80 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
81 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
82 |
- |
83 |
-HASKELL_DEPS=">=dev-lang/ghc-6.12:0= |
84 |
- <dev-lang/ghc-7.8 |
85 |
- dev-haskell/json:0= |
86 |
- dev-haskell/curl:0= |
87 |
- dev-haskell/network:0= |
88 |
- dev-haskell/parallel:3= |
89 |
- dev-haskell/hslogger:0= |
90 |
- dev-haskell/utf8-string:0= |
91 |
- dev-haskell/attoparsec:0= |
92 |
- dev-haskell/crypto:0= |
93 |
- dev-haskell/vector:0= |
94 |
- dev-haskell/hinotify:0= |
95 |
- dev-haskell/regex-pcre-builtin:0= |
96 |
- dev-haskell/zlib:0= |
97 |
- dev-haskell/base64-bytestring:0= |
98 |
- monitoring? ( dev-haskell/snap-server:0= )" |
99 |
- |
100 |
-DEPEND="xen? ( >=app-emulation/xen-3.0 ) |
101 |
- kvm? ( app-emulation/qemu ) |
102 |
- lxc? ( app-emulation/lxc ) |
103 |
- drbd? ( <sys-cluster/drbd-8.5 ) |
104 |
- rbd? ( sys-cluster/ceph ) |
105 |
- ipv6? ( net-misc/ndisc6 ) |
106 |
- haskell-daemons? ( |
107 |
- ${HASKELL_DEPS} |
108 |
- dev-haskell/text:0= |
109 |
- ) |
110 |
- dev-libs/openssl:0 |
111 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
112 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
113 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
114 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
115 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
116 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
117 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
118 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
119 |
- net-analyzer/arping |
120 |
- net-analyzer/fping |
121 |
- net-misc/bridge-utils |
122 |
- net-misc/curl[ssl] |
123 |
- net-misc/openssh |
124 |
- net-misc/socat |
125 |
- sys-apps/iproute2 |
126 |
- sys-fs/lvm2 |
127 |
- >=sys-apps/baselayout-2.0 |
128 |
- ${PYTHON_DEPS} |
129 |
- ${GIT_DEPEND}" |
130 |
-RDEPEND="${DEPEND} |
131 |
- !app-emulation/ganeti-htools" |
132 |
-DEPEND+="${HASKELL_DEPS} |
133 |
- sys-devel/m4 |
134 |
- test? ( |
135 |
- dev-python/mock |
136 |
- dev-python/pyyaml |
137 |
- dev-haskell/haddock:0= |
138 |
- dev-haskell/test-framework:0= |
139 |
- dev-haskell/test-framework-hunit:0= |
140 |
- dev-haskell/test-framework-quickcheck2:0= |
141 |
- dev-haskell/temporary:0= |
142 |
- sys-apps/fakeroot |
143 |
- )" |
144 |
- |
145 |
-PATCHES=( |
146 |
- "${FILESDIR}/${PN}-2.11-start-stop-daemon-args.patch" |
147 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
148 |
- "${FILESDIR}/${PN}-2.11-daemon-util.patch" |
149 |
- "${FILESDIR}/${PN}-2.7-fix-tests.patch" |
150 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
151 |
- "${FILESDIR}/${PN}-2.11-regex-builtin.patch" |
152 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
153 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
154 |
- "${FILESDIR}/${PN}-2.11-qemu-enable-kvm.patch" |
155 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
156 |
- "${FILESDIR}/${PN}-lockdir.patch" |
157 |
- "${FILESDIR}/${PN}-2.11-useradd.patch" |
158 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
159 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
160 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
161 |
-) |
162 |
- |
163 |
-REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
164 |
- |
165 |
-S="${WORKDIR}/${MY_P}" |
166 |
- |
167 |
-pkg_setup () { |
168 |
- confutils_use_depend_all haskell-daemons htools |
169 |
- python-single-r1_pkg_setup |
170 |
-} |
171 |
- |
172 |
-src_prepare() { |
173 |
- epatch "${PATCHES[@]}" |
174 |
- |
175 |
- [[ ${PV} == "9999" ]] && ./autogen.sh |
176 |
- rm autotools/missing |
177 |
- eautoreconf |
178 |
-} |
179 |
- |
180 |
-src_configure () { |
181 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
182 |
- local kvm_arch |
183 |
- |
184 |
- if use amd64; then |
185 |
- kvm_arch=x86_64 |
186 |
- elif use x86; then |
187 |
- kvm_arch=i386 |
188 |
- elif use kvm; then |
189 |
- die "Could not determine qemu system to use for kvm" |
190 |
- fi |
191 |
- |
192 |
- econf --localstatedir=/var \ |
193 |
- --sharedstatedir=/var \ |
194 |
- --disable-symlinks \ |
195 |
- --docdir=/usr/share/doc/${P} \ |
196 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
197 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
198 |
- --with-os-search-path=/usr/share/${PN}/os \ |
199 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
200 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
201 |
- $(use_enable syslog) \ |
202 |
- $(use_enable monitoring) \ |
203 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
204 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
205 |
-} |
206 |
- |
207 |
-src_install () { |
208 |
- emake V=1 DESTDIR="${D}" install || die "emake install failed" |
209 |
- |
210 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
211 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
212 |
- |
213 |
- if use kvm; then |
214 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
215 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
216 |
- fi |
217 |
- |
218 |
- # ganeti installs it's own docs in a generic location |
219 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
220 |
- |
221 |
- newbashcomp doc/examples/bash_completion ganeti |
222 |
- |
223 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
224 |
- dohtml -r doc/html/* doc/css/*.css |
225 |
- |
226 |
- docinto examples |
227 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
228 |
- |
229 |
- docinto examples/hooks |
230 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
231 |
- |
232 |
- insinto /etc/cron.d |
233 |
- newins doc/examples/ganeti.cron ${PN} |
234 |
- |
235 |
- insinto /etc/logrotate.d |
236 |
- newins doc/examples/ganeti.logrotate ${PN} |
237 |
- |
238 |
- # need to dodir rather than keepdir here (bug #552482) |
239 |
- dodir /var/lib/${PN} |
240 |
- |
241 |
- keepdir /var/log/${PN}/ |
242 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
243 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
244 |
- |
245 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
246 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
247 |
- |
248 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
249 |
-} |
250 |
- |
251 |
-pkg_postinst() { |
252 |
- if use multiple-users; then |
253 |
- elog "You have enable multiple user support, the users for this must" |
254 |
- elog "be created. You can use the provided tool for this, which is" |
255 |
- elog "located at:" |
256 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
257 |
- fi |
258 |
-} |
259 |
- |
260 |
-src_test () { |
261 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
262 |
- TMPDIR="/tmp" \ |
263 |
- emake check || die "emake check failed" |
264 |
-} |
265 |
|
266 |
diff --git a/app-emulation/ganeti/ganeti-2.12.3-r2.ebuild b/app-emulation/ganeti/ganeti-2.12.3-r2.ebuild |
267 |
deleted file mode 100644 |
268 |
index 7c960a5..00000000 |
269 |
--- a/app-emulation/ganeti/ganeti-2.12.3-r2.ebuild |
270 |
+++ /dev/null |
271 |
@@ -1,267 +0,0 @@ |
272 |
-# Copyright 1999-2016 Gentoo Foundation |
273 |
-# Distributed under the terms of the GNU General Public License v2 |
274 |
-# $Id$ |
275 |
- |
276 |
-EAPI=5 |
277 |
-PYTHON_COMPAT=(python2_7) |
278 |
-PYTHON_REQ_USE="ipv6(+)?" |
279 |
- |
280 |
-inherit eutils user autotools bash-completion-r1 python-single-r1 versionator |
281 |
- |
282 |
-MY_PV="${PV/_rc/~rc}" |
283 |
-MY_PV="${MY_PV/_beta/~beta}" |
284 |
-MY_P="${PN}-${MY_PV}" |
285 |
-SERIES="$(get_version_component_range 1-2)" |
286 |
- |
287 |
-if [[ ${PV} == "9999" ]] ; then |
288 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
289 |
- inherit git-2 |
290 |
- KEYWORDS="" |
291 |
- GIT_DEPEND="app-text/pandoc |
292 |
- dev-python/docutils |
293 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
294 |
- media-libs/gd[fontconfig,jpeg,png,truetype] |
295 |
- media-gfx/graphviz |
296 |
- media-fonts/urw-fonts" |
297 |
-else |
298 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz" |
299 |
- KEYWORDS="~amd64 ~x86" |
300 |
-fi |
301 |
- |
302 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
303 |
-HOMEPAGE="http://www.ganeti.org/" |
304 |
- |
305 |
-LICENSE="GPL-2" |
306 |
-SLOT="0" |
307 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
308 |
-REQUIRED_USE="|| ( kvm xen lxc ) |
309 |
- test? ( ipv6 ) |
310 |
- ${PYTHON_REQUIRED_USE}" |
311 |
- |
312 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
313 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
314 |
- |
315 |
-# the haskell less-than atoms list are resolver hints, they aren't actual |
316 |
-# direct dependencies, just hints to help the resolver fufill the dependency |
317 |
-# on an older transformer. |
318 |
-# these need to stay until 2.14.0 |
319 |
-DEPEND=" |
320 |
- dev-libs/openssl:0 |
321 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
322 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
323 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
324 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
325 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
326 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
327 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
328 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
329 |
- net-analyzer/arping |
330 |
- net-analyzer/fping |
331 |
- net-misc/bridge-utils |
332 |
- net-misc/curl[ssl] |
333 |
- net-misc/openssh |
334 |
- net-misc/socat |
335 |
- sys-apps/iproute2 |
336 |
- sys-fs/lvm2 |
337 |
- >=sys-apps/baselayout-2.0 |
338 |
- =dev-lang/ghc-7.6*:0= |
339 |
- >=dev-haskell/json-0.9:0= |
340 |
- <dev-haskell/monad-control-1.0.0.0:0= |
341 |
- <dev-haskell/transformers-0.4.0:0= |
342 |
- dev-haskell/curl:0= |
343 |
- dev-haskell/network:0= |
344 |
- dev-haskell/parallel:3= |
345 |
- >=dev-haskell/hslogger-1.2.6:0= |
346 |
- dev-haskell/snap-server:0= |
347 |
- dev-haskell/utf8-string:0= |
348 |
- dev-haskell/attoparsec:0= |
349 |
- dev-haskell/crypto:0= |
350 |
- dev-haskell/vector:0= |
351 |
- dev-haskell/hinotify:0= |
352 |
- dev-haskell/regex-pcre-builtin:0= |
353 |
- dev-haskell/zlib:0= |
354 |
- >=dev-haskell/lifted-base-0.2.3.3:0= |
355 |
- <dev-haskell/lens-3.10:0= |
356 |
- dev-haskell/base64-bytestring:0= |
357 |
- <dev-haskell/mtl-2.2 |
358 |
- <dev-haskell/contravariant-0.6 |
359 |
- <dev-haskell/profunctors-4.3 |
360 |
- <dev-haskell/distributive-0.4.4 |
361 |
- <dev-haskell/comonad-4.2.2 |
362 |
- <dev-haskell/transformers-compat-0.3 |
363 |
- <dev-haskell/transformers-base-0.4.4 |
364 |
- <dev-haskell/semigroupoids-4.0 |
365 |
- <dev-haskell/semigroupoid-extras-4.0 |
366 |
- <dev-haskell/groupoids-4.0 |
367 |
- xen? ( >=app-emulation/xen-3.0 ) |
368 |
- kvm? ( app-emulation/qemu ) |
369 |
- lxc? ( app-emulation/lxc ) |
370 |
- drbd? ( <sys-cluster/drbd-8.5 ) |
371 |
- rbd? ( sys-cluster/ceph ) |
372 |
- ipv6? ( net-misc/ndisc6 ) |
373 |
- haskell-daemons? ( dev-haskell/text:0= ) |
374 |
- ${PYTHON_DEPS} |
375 |
- ${GIT_DEPEND}" |
376 |
-RDEPEND="${DEPEND} |
377 |
- !app-emulation/ganeti-htools" |
378 |
-DEPEND+="sys-devel/m4 |
379 |
- test? ( |
380 |
- dev-python/mock |
381 |
- dev-python/pyyaml |
382 |
- dev-haskell/haddock:0= |
383 |
- dev-haskell/test-framework:0= |
384 |
- dev-haskell/test-framework-hunit:0= |
385 |
- dev-haskell/test-framework-quickcheck2:0= |
386 |
- dev-haskell/temporary:0= |
387 |
- sys-apps/fakeroot |
388 |
- net-misc/socat |
389 |
- dev-util/shelltestrunner |
390 |
- )" |
391 |
- |
392 |
-PATCHES=( |
393 |
- "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
394 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
395 |
- "${FILESDIR}/${PN}-2.12.3-daemon-util.patch" |
396 |
- "${FILESDIR}/${PN}-2.7-fix-tests.patch" |
397 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
398 |
- "${FILESDIR}/${PN}-2.11-regex-builtin.patch" |
399 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
400 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
401 |
- "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
402 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
403 |
- "${FILESDIR}/${PN}-lockdir.patch" |
404 |
- "${FILESDIR}/${PN}-2.11-useradd.patch" |
405 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
406 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
407 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
408 |
- "${FILESDIR}/${PN}-2.12-tests.patch" |
409 |
-) |
410 |
- |
411 |
-REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
412 |
- |
413 |
-S="${WORKDIR}/${MY_P}" |
414 |
- |
415 |
-QA_WX_LOAD="usr/$(get_libdir)/${PN}/${SERIES}/usr/sbin/ganeti-*d |
416 |
- usr/$(get_libdir)/${PN}/${SERIES}/usr/bin/htools" |
417 |
- |
418 |
-pkg_setup () { |
419 |
- local user |
420 |
- confutils_use_depend_all haskell-daemons htools |
421 |
- python-single-r1_pkg_setup |
422 |
- |
423 |
- if use multiple-users; then |
424 |
- for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
425 |
- enewgroup ${user} |
426 |
- enewuser ${user} -1 -1 -1 ${user} |
427 |
- done |
428 |
- fi |
429 |
-} |
430 |
- |
431 |
-src_prepare() { |
432 |
- local testfile |
433 |
- epatch "${PATCHES[@]}" |
434 |
- |
435 |
- # not sure why these tests are failing |
436 |
- # should remove this on next version bump if possible |
437 |
- for testfile in test/py/import-export_unittest.bash; do |
438 |
- printf '#!/bin/bash\ntrue\n' > "${testfile}" |
439 |
- done |
440 |
- |
441 |
- # take the sledgehammer approach to bug #526270 |
442 |
- grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g' |
443 |
- |
444 |
- [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh |
445 |
- rm autotools/missing |
446 |
- eautoreconf |
447 |
-} |
448 |
- |
449 |
-src_configure () { |
450 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
451 |
- local kvm_arch |
452 |
- |
453 |
- if use amd64; then |
454 |
- kvm_arch=x86_64 |
455 |
- elif use x86; then |
456 |
- kvm_arch=i386 |
457 |
- elif use kvm; then |
458 |
- die "Could not determine qemu system to use for kvm" |
459 |
- fi |
460 |
- |
461 |
- econf --localstatedir=/var \ |
462 |
- --sharedstatedir=/var \ |
463 |
- --disable-symlinks \ |
464 |
- --docdir=/usr/share/doc/${P} \ |
465 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
466 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
467 |
- --with-os-search-path=/usr/share/${PN}/os \ |
468 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
469 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
470 |
- $(use_enable syslog) \ |
471 |
- $(use_enable monitoring) \ |
472 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
473 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
474 |
-} |
475 |
- |
476 |
-src_install () { |
477 |
- emake V=1 DESTDIR="${D}" install || die "emake install failed" |
478 |
- |
479 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
480 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
481 |
- |
482 |
- if use kvm; then |
483 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
484 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
485 |
- fi |
486 |
- |
487 |
- # ganeti installs it's own docs in a generic location |
488 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
489 |
- |
490 |
- sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion |
491 |
- newbashcomp doc/examples/bash_completion gnt-instance |
492 |
- bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \ |
493 |
- h{space,check,scan,info,ail,arep,roller,squeeze,bal} \ |
494 |
- gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster} |
495 |
- |
496 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
497 |
- dohtml -r doc/html/* doc/css/*.css |
498 |
- |
499 |
- docinto examples |
500 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
501 |
- |
502 |
- docinto examples/hooks |
503 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
504 |
- |
505 |
- insinto /etc/cron.d |
506 |
- newins doc/examples/ganeti.cron ${PN} |
507 |
- |
508 |
- insinto /etc/logrotate.d |
509 |
- newins doc/examples/ganeti.logrotate ${PN} |
510 |
- |
511 |
- # need to dodir rather than keepdir here (bug #552482) |
512 |
- dodir /var/lib/${PN} |
513 |
- |
514 |
- keepdir /var/log/${PN}/ |
515 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
516 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
517 |
- |
518 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
519 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
520 |
- |
521 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
522 |
-} |
523 |
- |
524 |
-pkg_postinst() { |
525 |
- if use multiple-users; then |
526 |
- elog "You have enable multiple user support, the users for this must" |
527 |
- elog "be created. You can use the provided tool for this, which is" |
528 |
- elog "located at:" |
529 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
530 |
- fi |
531 |
-} |
532 |
- |
533 |
-src_test () { |
534 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
535 |
- TMPDIR="/tmp" \ |
536 |
- GANETI_MASTER="$(hostname -f)" \ |
537 |
- emake check || die "emake check failed" |
538 |
-} |
539 |
|
540 |
diff --git a/app-emulation/ganeti/ganeti-2.13.0-r3.ebuild b/app-emulation/ganeti/ganeti-2.13.0-r3.ebuild |
541 |
deleted file mode 100644 |
542 |
index c1e02bc..00000000 |
543 |
--- a/app-emulation/ganeti/ganeti-2.13.0-r3.ebuild |
544 |
+++ /dev/null |
545 |
@@ -1,260 +0,0 @@ |
546 |
-# Copyright 1999-2016 Gentoo Foundation |
547 |
-# Distributed under the terms of the GNU General Public License v2 |
548 |
-# $Id$ |
549 |
- |
550 |
-EAPI=5 |
551 |
-PYTHON_COMPAT=(python2_7) |
552 |
-PYTHON_REQ_USE="ipv6(+)?" |
553 |
- |
554 |
-inherit eutils user autotools bash-completion-r1 python-single-r1 versionator |
555 |
- |
556 |
-MY_PV="${PV/_rc/~rc}" |
557 |
-MY_PV="${MY_PV/_beta/~beta}" |
558 |
-MY_P="${PN}-${MY_PV}" |
559 |
-SERIES="$(get_version_component_range 1-2)" |
560 |
- |
561 |
-if [[ ${PV} == "9999" ]] ; then |
562 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
563 |
- inherit git-2 |
564 |
- KEYWORDS="" |
565 |
-else |
566 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz" |
567 |
- KEYWORDS="~amd64 ~x86" |
568 |
-fi |
569 |
- |
570 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
571 |
-HOMEPAGE="http://www.ganeti.org/" |
572 |
- |
573 |
-LICENSE="GPL-2" |
574 |
-SLOT="0" |
575 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
576 |
-REQUIRED_USE="|| ( kvm xen lxc ) |
577 |
- test? ( ipv6 ) |
578 |
- ${PYTHON_REQUIRED_USE}" |
579 |
- |
580 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
581 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
582 |
- |
583 |
-DEPEND=" |
584 |
- dev-libs/openssl:0 |
585 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
586 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
587 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
588 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
589 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
590 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
591 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
592 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
593 |
- net-analyzer/arping |
594 |
- net-analyzer/fping |
595 |
- net-misc/bridge-utils |
596 |
- net-misc/curl[ssl] |
597 |
- net-misc/openssh |
598 |
- net-misc/socat |
599 |
- sys-apps/iproute2 |
600 |
- sys-fs/lvm2 |
601 |
- >=sys-apps/baselayout-2.0 |
602 |
- =dev-lang/ghc-7.6*:0= |
603 |
- >=dev-haskell/json-0.9:0= |
604 |
- dev-haskell/curl:0= |
605 |
- dev-haskell/network:0= |
606 |
- dev-haskell/parallel:3= |
607 |
- >=dev-haskell/hslogger-1.2.6:0= |
608 |
- dev-haskell/snap-server:0= |
609 |
- dev-haskell/utf8-string:0= |
610 |
- dev-haskell/attoparsec:0= |
611 |
- dev-haskell/crypto:0= |
612 |
- dev-haskell/vector:0= |
613 |
- dev-haskell/hinotify:0= |
614 |
- dev-haskell/regex-pcre-builtin:0= |
615 |
- dev-haskell/zlib:0= |
616 |
- >=dev-haskell/lifted-base-0.2.3.3:0= |
617 |
- <dev-haskell/lens-4:0= |
618 |
- dev-haskell/psqueue:0= |
619 |
- dev-haskell/base64-bytestring:0= |
620 |
- <dev-haskell/semigroupoids-4.1:0= |
621 |
- <dev-haskell/mtl-2.2:0= |
622 |
- <dev-haskell/monad-control-1.0.0.0:0= |
623 |
- <dev-haskell/transformers-0.4.0:0= |
624 |
- <dev-haskell/contravariant-0.6 |
625 |
- <dev-haskell/transformers-compat-0.4[three] |
626 |
- <dev-haskell/transformers-base-0.4.4 |
627 |
- xen? ( >=app-emulation/xen-3.0 ) |
628 |
- kvm? ( app-emulation/qemu ) |
629 |
- lxc? ( app-emulation/lxc ) |
630 |
- drbd? ( <sys-cluster/drbd-8.5 ) |
631 |
- rbd? ( sys-cluster/ceph ) |
632 |
- ipv6? ( net-misc/ndisc6 ) |
633 |
- haskell-daemons? ( dev-haskell/text:0= ) |
634 |
- ${PYTHON_DEPS}" |
635 |
-RDEPEND="${DEPEND} |
636 |
- !app-emulation/ganeti-htools" |
637 |
-DEPEND+=" |
638 |
- sys-devel/m4 |
639 |
- <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
640 |
- media-fonts/urw-fonts |
641 |
- media-gfx/graphviz |
642 |
- =app-text/pandoc-1.12* |
643 |
- test? ( |
644 |
- dev-python/mock |
645 |
- dev-python/pyyaml |
646 |
- dev-haskell/haddock:0= |
647 |
- dev-haskell/test-framework:0= |
648 |
- dev-haskell/test-framework-hunit:0= |
649 |
- dev-haskell/test-framework-quickcheck2:0= |
650 |
- dev-haskell/temporary:0= |
651 |
- sys-apps/fakeroot |
652 |
- net-misc/socat |
653 |
- dev-util/shelltestrunner |
654 |
- )" |
655 |
- |
656 |
-PATCHES=( |
657 |
- "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
658 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
659 |
- "${FILESDIR}/${PN}-2.13-daemon-util.patch" |
660 |
- "${FILESDIR}/${PN}-2.7-fix-tests.patch" |
661 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
662 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
663 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
664 |
- "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
665 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
666 |
- "${FILESDIR}/${PN}-lockdir.patch" |
667 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
668 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
669 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
670 |
- "${FILESDIR}/${PN}-2.13-regex-pcre-builtin.patch" |
671 |
- "${FILESDIR}/${PN}-2.13-process_unittest.patch" |
672 |
- "${FILESDIR}/${PN}-2.13-disable-usersgroups-test.patch" |
673 |
-) |
674 |
- |
675 |
-REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
676 |
- |
677 |
-S="${WORKDIR}/${MY_P}" |
678 |
- |
679 |
-QA_WX_LOAD="usr/$(get_libdir)/${PN}/${SERIES}/usr/sbin/ganeti-*d |
680 |
- usr/$(get_libdir)/${PN}/${SERIES}/usr/bin/htools" |
681 |
- |
682 |
-pkg_setup () { |
683 |
- local user |
684 |
- confutils_use_depend_all haskell-daemons htools |
685 |
- python-single-r1_pkg_setup |
686 |
- |
687 |
- if use multiple-users; then |
688 |
- for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
689 |
- enewgroup ${user} |
690 |
- enewuser ${user} -1 -1 -1 ${user} |
691 |
- done |
692 |
- fi |
693 |
-} |
694 |
- |
695 |
-src_prepare() { |
696 |
- local testfile |
697 |
- epatch "${PATCHES[@]}" |
698 |
- |
699 |
- # not sure why these tests are failing |
700 |
- # should remove this on next version bump if possible |
701 |
- for testfile in test/py/import-export_unittest.bash; do |
702 |
- printf '#!/bin/bash\ntrue\n' > "${testfile}" |
703 |
- done |
704 |
- |
705 |
- # take the sledgehammer approach to bug #526270 |
706 |
- grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g' |
707 |
- |
708 |
- [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh |
709 |
- rm autotools/missing |
710 |
- eautoreconf |
711 |
-} |
712 |
- |
713 |
-src_configure () { |
714 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
715 |
- local kvm_arch |
716 |
- |
717 |
- if use amd64; then |
718 |
- kvm_arch=x86_64 |
719 |
- elif use x86; then |
720 |
- kvm_arch=i386 |
721 |
- elif use kvm; then |
722 |
- die "Could not determine qemu system to use for kvm" |
723 |
- fi |
724 |
- |
725 |
- econf --localstatedir=/var \ |
726 |
- --sharedstatedir=/var \ |
727 |
- --disable-symlinks \ |
728 |
- --docdir=/usr/share/doc/${P} \ |
729 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
730 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
731 |
- --with-os-search-path=/usr/share/${PN}/os \ |
732 |
- $(use_enable test haskell-tests) \ |
733 |
- $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \ |
734 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
735 |
- $(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \ |
736 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
737 |
- $(use_enable syslog) \ |
738 |
- $(use_enable monitoring) \ |
739 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
740 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
741 |
-} |
742 |
- |
743 |
-src_install () { |
744 |
- emake V=1 DESTDIR="${D}" install || die "emake install failed" |
745 |
- |
746 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
747 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
748 |
- |
749 |
- if use kvm; then |
750 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
751 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
752 |
- fi |
753 |
- |
754 |
- # ganeti installs it's own docs in a generic location |
755 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
756 |
- |
757 |
- sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion |
758 |
- newbashcomp doc/examples/bash_completion gnt-instance |
759 |
- bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \ |
760 |
- h{space,check,scan,info,ail,arep,roller,squeeze,bal} \ |
761 |
- gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster} |
762 |
- |
763 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
764 |
- dohtml -r doc/html/* doc/css/*.css |
765 |
- |
766 |
- docinto examples |
767 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
768 |
- |
769 |
- docinto examples/hooks |
770 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
771 |
- |
772 |
- insinto /etc/cron.d |
773 |
- newins doc/examples/ganeti.cron ${PN} |
774 |
- |
775 |
- insinto /etc/logrotate.d |
776 |
- newins doc/examples/ganeti.logrotate ${PN} |
777 |
- |
778 |
- # need to dodir rather than keepdir here (bug #552482) |
779 |
- dodir /var/lib/${PN} |
780 |
- |
781 |
- keepdir /var/log/${PN}/ |
782 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
783 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
784 |
- |
785 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
786 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
787 |
- |
788 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
789 |
-} |
790 |
- |
791 |
-pkg_postinst() { |
792 |
- if use multiple-users; then |
793 |
- elog "You have enable multiple user support, the users for this must" |
794 |
- elog "be created. You can use the provided tool for this, which is" |
795 |
- elog "located at:" |
796 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
797 |
- fi |
798 |
-} |
799 |
- |
800 |
-src_test () { |
801 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
802 |
- TMPDIR="/tmp" \ |
803 |
- GANETI_MASTER="$(hostname -f)" \ |
804 |
- emake check || die "emake check failed" |
805 |
-} |
806 |
|
807 |
diff --git a/app-emulation/ganeti/ganeti-2.14.1-r2.ebuild b/app-emulation/ganeti/ganeti-2.14.1-r2.ebuild |
808 |
deleted file mode 100644 |
809 |
index bc2ba9e..00000000 |
810 |
--- a/app-emulation/ganeti/ganeti-2.14.1-r2.ebuild |
811 |
+++ /dev/null |
812 |
@@ -1,296 +0,0 @@ |
813 |
-# Copyright 1999-2016 Gentoo Foundation |
814 |
-# Distributed under the terms of the GNU General Public License v2 |
815 |
-# $Id$ |
816 |
- |
817 |
-EAPI=5 |
818 |
-PYTHON_COMPAT=(python2_7) |
819 |
-PYTHON_REQ_USE="ipv6(+)?" |
820 |
- |
821 |
-inherit eutils user autotools bash-completion-r1 python-single-r1 versionator |
822 |
- |
823 |
-MY_PV="${PV/_rc/~rc}" |
824 |
-MY_PV="${MY_PV/_beta/~beta}" |
825 |
-MY_P="${PN}-${MY_PV}" |
826 |
-SERIES="$(get_version_component_range 1-2)" |
827 |
- |
828 |
-if [[ ${PV} =~ [9]{4,} ]] ; then |
829 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
830 |
- inherit git-2 |
831 |
- KEYWORDS="" |
832 |
-else |
833 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz" |
834 |
- KEYWORDS="~amd64 ~x86" |
835 |
-fi |
836 |
- |
837 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
838 |
-HOMEPAGE="http://www.ganeti.org/" |
839 |
- |
840 |
-LICENSE="GPL-2" |
841 |
-SLOT="0" |
842 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
843 |
-REQUIRED_USE="|| ( kvm xen lxc ) |
844 |
- test? ( ipv6 ) |
845 |
- ${PYTHON_REQUIRED_USE}" |
846 |
- |
847 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
848 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
849 |
- |
850 |
-DEPEND=" |
851 |
- dev-libs/openssl:0 |
852 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
853 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
854 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
855 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
856 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
857 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
858 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
859 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
860 |
- net-analyzer/arping |
861 |
- net-analyzer/fping |
862 |
- net-misc/bridge-utils |
863 |
- net-misc/curl[ssl] |
864 |
- net-misc/openssh |
865 |
- net-misc/socat |
866 |
- sys-apps/iproute2 |
867 |
- sys-fs/lvm2 |
868 |
- >=sys-apps/baselayout-2.0 |
869 |
- =dev-lang/ghc-7.6*:0= |
870 |
- dev-haskell/cabal:0= |
871 |
- dev-haskell/cabal-install:0= |
872 |
- >=dev-haskell/mtl-2.1.1:0= |
873 |
- >=dev-haskell/old-time-1.1.0.0:0= |
874 |
- >=dev-haskell/random-1.0.1.1:0= |
875 |
- haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= ) |
876 |
- >=dev-haskell/transformers-0.3.0.0:0= |
877 |
- |
878 |
- >=dev-haskell/attoparsec-0.10.1.1:0= |
879 |
- <dev-haskell/attoparsec-0.13:0 |
880 |
- >=dev-haskell/base64-bytestring-1.0.0.1:0= |
881 |
- <dev-haskell/base64-bytestring-1.1:0= |
882 |
- >=dev-haskell/crypto-4.2.4:0= |
883 |
- <dev-haskell/crypto-4.3:0= |
884 |
- >=dev-haskell/curl-1.3.7:0= |
885 |
- <dev-haskell/curl-1.4:0= |
886 |
- >=dev-haskell/hinotify-0.3.2:0= |
887 |
- <dev-haskell/hinotify-0.4:0= |
888 |
- >=dev-haskell/hslogger-1.1.4:0= |
889 |
- <dev-haskell/hslogger-1.3:0= |
890 |
- >=dev-haskell/json-0.5:0= |
891 |
- <dev-haskell/json-0.9:0= |
892 |
- >=dev-haskell/lens-3.10:0= |
893 |
- <dev-haskell/lens-4.8:0= |
894 |
- >=dev-haskell/lifted-base-0.2.0.3:0= |
895 |
- <dev-haskell/lifted-base-0.3:0= |
896 |
- >=dev-haskell/monad-control-0.3.1.3:0= |
897 |
- <dev-haskell/monad-control-1.1:0= |
898 |
- >=dev-haskell/network-2.3.0.13:0= |
899 |
- <dev-haskell/network-2.7:0= |
900 |
- >=dev-haskell/parallel-3.2.0.2:3= |
901 |
- <dev-haskell/parallel-3.3:3= |
902 |
- >=dev-haskell/temporary-1.1.2.3:0= |
903 |
- <dev-haskell/temporary-1.3:0= |
904 |
- >=dev-haskell/regex-pcre-0.94.2:0= |
905 |
- <dev-haskell/regex-pcre-0.95:0= |
906 |
- >=dev-haskell/transformers-base-0.4.1:0= |
907 |
- <dev-haskell/transformers-base-0.5:0= |
908 |
- >=dev-haskell/utf8-string-0.3.7:0= |
909 |
- <dev-haskell/utf8-string-0.4:0= |
910 |
- >=dev-haskell/zlib-0.5.3.3:0= |
911 |
- <dev-haskell/zlib-0.6:0= |
912 |
- |
913 |
- >=dev-haskell/psqueue-1.1:0= |
914 |
- <dev-haskell/psqueue-1.2:0= |
915 |
- >=dev-haskell/snap-core-0.8.1:0= |
916 |
- <dev-haskell/snap-core-0.10:0= |
917 |
- >=dev-haskell/snap-server-0.8.1:0= |
918 |
- <dev-haskell/snap-server-0.10:0= |
919 |
- |
920 |
- dev-haskell/vector:0= |
921 |
- <dev-haskell/semigroupoids-4.1:0= |
922 |
- <dev-haskell/contravariant-0.6 |
923 |
- <dev-haskell/transformers-compat-0.4[three] |
924 |
- xen? ( >=app-emulation/xen-3.0 ) |
925 |
- kvm? ( app-emulation/qemu ) |
926 |
- lxc? ( app-emulation/lxc ) |
927 |
- drbd? ( <sys-cluster/drbd-8.5 ) |
928 |
- rbd? ( sys-cluster/ceph ) |
929 |
- ipv6? ( net-misc/ndisc6 ) |
930 |
- ${PYTHON_DEPS}" |
931 |
-RDEPEND="${DEPEND} |
932 |
- !app-emulation/ganeti-htools" |
933 |
-DEPEND+=" |
934 |
- sys-devel/m4 |
935 |
- <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
936 |
- media-fonts/urw-fonts |
937 |
- media-gfx/graphviz |
938 |
- =app-text/pandoc-1.12* |
939 |
- >=dev-haskell/test-framework-0.6:0= |
940 |
- <dev-haskell/test-framework-0.9:0= |
941 |
- >=dev-haskell/test-framework-hunit-0.2.7:0= |
942 |
- <dev-haskell/test-framework-hunit-0.4:0= |
943 |
- >=dev-haskell/test-framework-quickcheck2-0.2.12.1:0= |
944 |
- <dev-haskell/test-framework-quickcheck2-0.4:0= |
945 |
- test? ( |
946 |
- dev-python/mock |
947 |
- dev-python/pyyaml |
948 |
- dev-haskell/haddock:0= |
949 |
- >=dev-haskell/hunit-1.2.4.2:0= |
950 |
- <dev-haskell/hunit-1.3:0= |
951 |
- >=dev-haskell/quickcheck-2.4.2:2= |
952 |
- <dev-haskell/quickcheck-2.8:2= |
953 |
- sys-apps/fakeroot |
954 |
- net-misc/socat |
955 |
- dev-util/shelltestrunner |
956 |
- )" |
957 |
- |
958 |
-PATCHES=( |
959 |
- "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
960 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
961 |
- "${FILESDIR}/${PN}-2.13-daemon-util.patch" |
962 |
- "${FILESDIR}/${PN}-2.7-fix-tests.patch" |
963 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
964 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
965 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
966 |
- "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
967 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
968 |
- "${FILESDIR}/${PN}-lockdir.patch" |
969 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
970 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
971 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
972 |
- "${FILESDIR}/${PN}-2.13-process_unittest.patch" |
973 |
-) |
974 |
- |
975 |
-REQUIRED_USE="kvm? ( || ( amd64 x86 ) ) |
976 |
- test? ( ipv6 )" |
977 |
- |
978 |
-S="${WORKDIR}/${MY_P}" |
979 |
- |
980 |
-# apparently currently broken |
981 |
-QA_WX_LOAD=" |
982 |
- usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d |
983 |
- usr/lib*/${PN}/${SERIES}/usr/bin/htools |
984 |
-" |
985 |
- |
986 |
-pkg_setup () { |
987 |
- local user |
988 |
- python-single-r1_pkg_setup |
989 |
- |
990 |
- if use multiple-users; then |
991 |
- for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
992 |
- enewgroup ${user} |
993 |
- enewuser ${user} -1 -1 -1 ${user} |
994 |
- done |
995 |
- fi |
996 |
-} |
997 |
- |
998 |
-src_prepare() { |
999 |
- local testfile |
1000 |
- epatch "${PATCHES[@]}" |
1001 |
- |
1002 |
- # not sure why these tests are failing |
1003 |
- # should remove this on next version bump if possible |
1004 |
- for testfile in test/py/import-export_unittest.bash; do |
1005 |
- printf '#!/bin/bash\ntrue\n' > "${testfile}" |
1006 |
- done |
1007 |
- |
1008 |
- # take the sledgehammer approach to bug #526270 |
1009 |
- grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g' |
1010 |
- |
1011 |
- [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh |
1012 |
- rm autotools/missing |
1013 |
- eautoreconf |
1014 |
-} |
1015 |
- |
1016 |
-src_configure () { |
1017 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
1018 |
- local kvm_arch |
1019 |
- |
1020 |
- if use amd64; then |
1021 |
- kvm_arch=x86_64 |
1022 |
- elif use x86; then |
1023 |
- kvm_arch=i386 |
1024 |
- elif use kvm; then |
1025 |
- die "Could not determine qemu system to use for kvm" |
1026 |
- fi |
1027 |
- |
1028 |
- econf --localstatedir=/var \ |
1029 |
- --sharedstatedir=/var \ |
1030 |
- --disable-symlinks \ |
1031 |
- --docdir=/usr/share/doc/${P} \ |
1032 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
1033 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
1034 |
- --with-os-search-path=/usr/share/${PN}/os \ |
1035 |
- $(use_enable test haskell-tests) \ |
1036 |
- $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \ |
1037 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
1038 |
- $(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \ |
1039 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
1040 |
- $(use_enable syslog) \ |
1041 |
- $(use_enable monitoring) \ |
1042 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
1043 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
1044 |
-} |
1045 |
- |
1046 |
-src_install () { |
1047 |
- emake V=1 DESTDIR="${D}" install || die "emake install failed" |
1048 |
- |
1049 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
1050 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
1051 |
- |
1052 |
- if use kvm; then |
1053 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
1054 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
1055 |
- fi |
1056 |
- |
1057 |
- # ganeti installs it's own docs in a generic location |
1058 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
1059 |
- |
1060 |
- sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion |
1061 |
- newbashcomp doc/examples/bash_completion gnt-instance |
1062 |
- bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \ |
1063 |
- h{space,check,scan,info,ail,arep,roller,squeeze,bal} \ |
1064 |
- gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster} |
1065 |
- |
1066 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
1067 |
- dohtml -r doc/html/* doc/css/*.css |
1068 |
- |
1069 |
- docinto examples |
1070 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
1071 |
- |
1072 |
- docinto examples/hooks |
1073 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
1074 |
- |
1075 |
- insinto /etc/cron.d |
1076 |
- newins doc/examples/ganeti.cron ${PN} |
1077 |
- |
1078 |
- insinto /etc/logrotate.d |
1079 |
- newins doc/examples/ganeti.logrotate ${PN} |
1080 |
- |
1081 |
- # need to dodir rather than keepdir here (bug #552482) |
1082 |
- dodir /var/lib/${PN} |
1083 |
- |
1084 |
- keepdir /var/log/${PN}/ |
1085 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
1086 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
1087 |
- |
1088 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
1089 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
1090 |
- |
1091 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
1092 |
-} |
1093 |
- |
1094 |
-pkg_postinst() { |
1095 |
- if use multiple-users; then |
1096 |
- elog "You have enable multiple user support, the users for this must" |
1097 |
- elog "be created. You can use the provided tool for this, which is" |
1098 |
- elog "located at:" |
1099 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
1100 |
- fi |
1101 |
-} |
1102 |
- |
1103 |
-src_test () { |
1104 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
1105 |
- TMPDIR="/tmp" \ |
1106 |
- GANETI_MASTER="$(hostname -f)" \ |
1107 |
- emake check || die "emake check failed" |
1108 |
-} |
1109 |
|
1110 |
diff --git a/app-emulation/ganeti/ganeti-2.15.2-r4.ebuild b/app-emulation/ganeti/ganeti-2.15.2-r4.ebuild |
1111 |
deleted file mode 100644 |
1112 |
index 704f938..00000000 |
1113 |
--- a/app-emulation/ganeti/ganeti-2.15.2-r4.ebuild |
1114 |
+++ /dev/null |
1115 |
@@ -1,313 +0,0 @@ |
1116 |
-# Copyright 1999-2016 Gentoo Foundation |
1117 |
-# Distributed under the terms of the GNU General Public License v2 |
1118 |
-# $Id$ |
1119 |
- |
1120 |
-EAPI=6 |
1121 |
-PYTHON_COMPAT=(python2_7) |
1122 |
-PYTHON_REQ_USE="ipv6(+)?" |
1123 |
- |
1124 |
-inherit user autotools bash-completion-r1 python-single-r1 versionator |
1125 |
- |
1126 |
-MY_PV="${PV/_rc/~rc}" |
1127 |
-MY_PV="${MY_PV/_beta/~beta}" |
1128 |
-MY_P="${PN}-${MY_PV}" |
1129 |
-SERIES="$(get_version_component_range 1-2)" |
1130 |
- |
1131 |
-if [[ ${PV} =~ [9]{4,} ]] ; then |
1132 |
- EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
1133 |
- inherit git-2 |
1134 |
- KEYWORDS="" |
1135 |
-else |
1136 |
- SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz" |
1137 |
- KEYWORDS="~amd64 ~x86" |
1138 |
-fi |
1139 |
- |
1140 |
-DESCRIPTION="Ganeti is a virtual server management software tool" |
1141 |
-HOMEPAGE="http://www.ganeti.org/" |
1142 |
- |
1143 |
-LICENSE="GPL-2" |
1144 |
-SLOT="0" |
1145 |
-IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
1146 |
- |
1147 |
-REQUIRED_USE="|| ( kvm xen lxc ) |
1148 |
- test? ( ipv6 ) |
1149 |
- kvm? ( || ( amd64 x86 ) ) |
1150 |
- ${PYTHON_REQUIRED_USE}" |
1151 |
- |
1152 |
-USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
1153 |
-GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
1154 |
- |
1155 |
-DEPEND=" |
1156 |
- dev-libs/openssl:0 |
1157 |
- dev-python/paramiko[${PYTHON_USEDEP}] |
1158 |
- dev-python/pyopenssl[${PYTHON_USEDEP}] |
1159 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
1160 |
- dev-python/pyparsing[${PYTHON_USEDEP}] |
1161 |
- dev-python/pyinotify[${PYTHON_USEDEP}] |
1162 |
- dev-python/pycurl[${PYTHON_USEDEP}] |
1163 |
- dev-python/ipaddr[${PYTHON_USEDEP}] |
1164 |
- dev-python/bitarray[${PYTHON_USEDEP}] |
1165 |
- dev-python/docutils[${PYTHON_USEDEP}] |
1166 |
- net-analyzer/arping |
1167 |
- net-analyzer/fping |
1168 |
- net-misc/bridge-utils |
1169 |
- net-misc/curl[ssl] |
1170 |
- net-misc/openssh |
1171 |
- net-misc/socat |
1172 |
- sys-apps/iproute2 |
1173 |
- sys-fs/lvm2 |
1174 |
- >=sys-apps/baselayout-2.0 |
1175 |
- dev-lang/ghc:0= |
1176 |
- dev-haskell/cabal:0= |
1177 |
- dev-haskell/cabal-install:0= |
1178 |
- >=dev-haskell/mtl-2.1.1:0= |
1179 |
- >=dev-haskell/old-time-1.1.0.0:0= |
1180 |
- >=dev-haskell/random-1.0.1.1:0= |
1181 |
- haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= ) |
1182 |
- >=dev-haskell/transformers-0.3.0.0:0= |
1183 |
- |
1184 |
- >=dev-haskell/attoparsec-0.10.1.1:0= |
1185 |
- <dev-haskell/attoparsec-0.13:0 |
1186 |
- >=dev-haskell/base64-bytestring-1.0.0.1:0= |
1187 |
- <dev-haskell/base64-bytestring-1.1:0= |
1188 |
- >=dev-haskell/crypto-4.2.4:0= |
1189 |
- <dev-haskell/crypto-4.3:0= |
1190 |
- >=dev-haskell/curl-1.3.7:0= |
1191 |
- <dev-haskell/curl-1.4:0= |
1192 |
- >=dev-haskell/hinotify-0.3.2:0= |
1193 |
- <dev-haskell/hinotify-0.4:0= |
1194 |
- >=dev-haskell/hslogger-1.1.4:0= |
1195 |
- <dev-haskell/hslogger-1.3:0= |
1196 |
- >=dev-haskell/json-0.5:0= |
1197 |
- <dev-haskell/json-0.9:0= |
1198 |
- >=dev-haskell/lens-3.10:0= |
1199 |
- <dev-haskell/lens-4.8:0= |
1200 |
- >=dev-haskell/lifted-base-0.2.0.3:0= |
1201 |
- <dev-haskell/lifted-base-0.3:0= |
1202 |
- >=dev-haskell/monad-control-0.3.1.3:0= |
1203 |
- <dev-haskell/monad-control-1.1:0= |
1204 |
- >=dev-haskell/network-2.3.0.13:0= |
1205 |
- <dev-haskell/network-2.7:0= |
1206 |
- >=dev-haskell/parallel-3.2.0.2:3= |
1207 |
- <dev-haskell/parallel-3.3:3= |
1208 |
- >=dev-haskell/temporary-1.1.2.3:0= |
1209 |
- <dev-haskell/temporary-1.3:0= |
1210 |
- >=dev-haskell/regex-pcre-0.94.2:0= |
1211 |
- <dev-haskell/regex-pcre-0.95:0= |
1212 |
- >=dev-haskell/transformers-base-0.4.1:0= |
1213 |
- <dev-haskell/transformers-base-0.5:0= |
1214 |
- >=dev-haskell/utf8-string-0.3.7:0= |
1215 |
- <dev-haskell/utf8-string-0.4:0= |
1216 |
- >=dev-haskell/zlib-0.5.3.3:0= |
1217 |
- <dev-haskell/zlib-0.6:0= |
1218 |
- |
1219 |
- >=dev-haskell/psqueue-1.1:0= |
1220 |
- <dev-haskell/psqueue-1.2:0= |
1221 |
- >=dev-haskell/snap-core-0.8.1:0= |
1222 |
- <dev-haskell/snap-core-0.10:0= |
1223 |
- >=dev-haskell/snap-server-0.8.1:0= |
1224 |
- <dev-haskell/snap-server-0.10:0= |
1225 |
- >=dev-haskell/case-insensitive-0.4.0.1 |
1226 |
- |
1227 |
- dev-haskell/vector:0= |
1228 |
- <dev-haskell/semigroupoids-4.1:0= |
1229 |
- <dev-haskell/contravariant-0.6 |
1230 |
- <dev-haskell/transformers-compat-0.4[three] |
1231 |
- xen? ( >=app-emulation/xen-3.0 ) |
1232 |
- kvm? ( |
1233 |
- dev-python/psutil |
1234 |
- app-emulation/qemu |
1235 |
- ) |
1236 |
- lxc? ( app-emulation/lxc ) |
1237 |
- drbd? ( |
1238 |
- || ( |
1239 |
- <sys-cluster/drbd-8.5 |
1240 |
- sys-cluster/drbd-utils |
1241 |
- ) |
1242 |
- ) |
1243 |
- rbd? ( sys-cluster/ceph ) |
1244 |
- ipv6? ( net-misc/ndisc6 ) |
1245 |
- ${PYTHON_DEPS}" |
1246 |
-RDEPEND="${DEPEND} |
1247 |
- !app-emulation/ganeti-htools" |
1248 |
-DEPEND+=" |
1249 |
- sys-devel/m4 |
1250 |
- app-text/pandoc |
1251 |
- <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
1252 |
- media-fonts/urw-fonts |
1253 |
- media-gfx/graphviz |
1254 |
- >=dev-haskell/test-framework-0.6:0= |
1255 |
- <dev-haskell/test-framework-0.9:0= |
1256 |
- >=dev-haskell/test-framework-hunit-0.2.7:0= |
1257 |
- <dev-haskell/test-framework-hunit-0.4:0= |
1258 |
- >=dev-haskell/test-framework-quickcheck2-0.2.12.1:0= |
1259 |
- <dev-haskell/test-framework-quickcheck2-0.4:0= |
1260 |
- test? ( |
1261 |
- dev-python/mock |
1262 |
- dev-python/pyyaml |
1263 |
- dev-haskell/haddock:0= |
1264 |
- >=dev-haskell/hunit-1.2.4.2:0= |
1265 |
- <dev-haskell/hunit-1.3:0= |
1266 |
- >=dev-haskell/quickcheck-2.4.2:2= |
1267 |
- <dev-haskell/quickcheck-2.8:2= |
1268 |
- sys-apps/fakeroot |
1269 |
- net-misc/socat |
1270 |
- dev-util/shelltestrunner |
1271 |
- )" |
1272 |
- |
1273 |
-PATCHES=( |
1274 |
- "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
1275 |
- "${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
1276 |
- "${FILESDIR}/${PN}-2.15-daemon-util.patch" |
1277 |
- "${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
1278 |
- "${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
1279 |
- "${FILESDIR}/${PN}-2.10-rundir.patch" |
1280 |
- "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
1281 |
- "${FILESDIR}/${PN}-2.11-tests.patch" |
1282 |
- "${FILESDIR}/${PN}-lockdir.patch" |
1283 |
- "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
1284 |
- "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
1285 |
- "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
1286 |
- "${FILESDIR}/${PN}-2.13-process_unittest.patch" |
1287 |
- "${FILESDIR}/${PN}-2.15-python-mock.patch" |
1288 |
- "${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch" |
1289 |
- "${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch" |
1290 |
- "${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch" |
1291 |
- "${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch" |
1292 |
-) |
1293 |
- |
1294 |
-S="${WORKDIR}/${MY_P}" |
1295 |
- |
1296 |
-QA_WX_LOAD=" |
1297 |
- usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d |
1298 |
- usr/lib*/${PN}/${SERIES}/usr/bin/htools |
1299 |
-" |
1300 |
- |
1301 |
-pkg_setup () { |
1302 |
- local user |
1303 |
- python-single-r1_pkg_setup |
1304 |
- |
1305 |
- if use multiple-users; then |
1306 |
- for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
1307 |
- enewgroup ${user} |
1308 |
- enewuser ${user} -1 -1 -1 ${user} |
1309 |
- done |
1310 |
- fi |
1311 |
-} |
1312 |
- |
1313 |
-src_prepare() { |
1314 |
- local testfile |
1315 |
- eapply "${PATCHES[@]}" |
1316 |
- |
1317 |
- # not sure why these tests are failing |
1318 |
- # should remove this on next version bump if possible |
1319 |
- for testfile in test/py/import-export_unittest.bash; do |
1320 |
- printf '#!/bin/bash\ntrue\n' > "${testfile}" |
1321 |
- done |
1322 |
- |
1323 |
- # take the sledgehammer approach to bug #526270 |
1324 |
- grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g' |
1325 |
- |
1326 |
- eapply_user |
1327 |
- |
1328 |
- [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh |
1329 |
- rm autotools/missing |
1330 |
- eautoreconf |
1331 |
-} |
1332 |
- |
1333 |
-src_configure () { |
1334 |
- # this is kind of a hack to work around the removal of the qemu-kvm wrapper |
1335 |
- local kvm_arch |
1336 |
- |
1337 |
- if use amd64; then |
1338 |
- kvm_arch=x86_64 |
1339 |
- elif use x86; then |
1340 |
- kvm_arch=i386 |
1341 |
- elif use kvm; then |
1342 |
- die "Could not determine qemu system to use for kvm" |
1343 |
- fi |
1344 |
- |
1345 |
- econf --localstatedir=/var \ |
1346 |
- --sharedstatedir=/var \ |
1347 |
- --disable-symlinks \ |
1348 |
- --with-ssh-initscript=/etc/init.d/sshd \ |
1349 |
- --with-export-dir=/var/lib/ganeti-storage/export \ |
1350 |
- --with-os-search-path=/usr/share/${PN}/os \ |
1351 |
- $(use_enable test haskell-tests) \ |
1352 |
- $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \ |
1353 |
- $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
1354 |
- $(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \ |
1355 |
- $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
1356 |
- $(use_enable syslog) \ |
1357 |
- $(use_enable monitoring) \ |
1358 |
- $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
1359 |
- $(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
1360 |
-} |
1361 |
- |
1362 |
-src_install () { |
1363 |
- emake V=1 DESTDIR="${D}" install |
1364 |
- |
1365 |
- newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
1366 |
- newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
1367 |
- |
1368 |
- if use kvm; then |
1369 |
- newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
1370 |
- newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
1371 |
- fi |
1372 |
- |
1373 |
- # ganeti installs it's own docs in a generic location |
1374 |
- rm -rf "${D}"/{usr/share/doc/${PN},run} |
1375 |
- |
1376 |
- sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion |
1377 |
- newbashcomp doc/examples/bash_completion gnt-instance |
1378 |
- bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \ |
1379 |
- h{space,check,scan,info,ail,arep,roller,squeeze,bal} \ |
1380 |
- gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster} |
1381 |
- |
1382 |
- use monitoring && bashcomp_alias gnt-instance mon-collector |
1383 |
- |
1384 |
- dodoc INSTALL UPGRADE NEWS README doc/*.rst |
1385 |
- |
1386 |
- docinto html |
1387 |
- dodoc -r doc/html/* doc/css/*.css |
1388 |
- |
1389 |
- docinto examples |
1390 |
- dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
1391 |
- |
1392 |
- docinto examples/hooks |
1393 |
- dodoc doc/examples/hooks/{ipsec,ethers} |
1394 |
- |
1395 |
- insinto /etc/cron.d |
1396 |
- newins doc/examples/ganeti.cron ${PN} |
1397 |
- |
1398 |
- insinto /etc/logrotate.d |
1399 |
- newins doc/examples/ganeti.logrotate ${PN} |
1400 |
- |
1401 |
- # need to dodir rather than keepdir here (bug #552482) |
1402 |
- dodir /var/lib/${PN} |
1403 |
- |
1404 |
- keepdir /var/log/${PN}/ |
1405 |
- keepdir /usr/share/${PN}/${SERIES}/os/ |
1406 |
- keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
1407 |
- |
1408 |
- dosym ${SERIES} "/usr/share/${PN}/default" |
1409 |
- dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
1410 |
- |
1411 |
- python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
1412 |
-} |
1413 |
- |
1414 |
-pkg_postinst() { |
1415 |
- if use multiple-users; then |
1416 |
- elog "You have enable multiple user support, the users for this must" |
1417 |
- elog "be created. You can use the provided tool for this, which is" |
1418 |
- elog "located at:" |
1419 |
- elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
1420 |
- fi |
1421 |
-} |
1422 |
- |
1423 |
-src_test () { |
1424 |
- PATH="${S}/scripts:${S}/src:${PATH}" \ |
1425 |
- TMPDIR="/tmp" \ |
1426 |
- GANETI_MASTER="$(hostname -f)" \ |
1427 |
- emake check || die "emake check failed" |
1428 |
-} |