1 |
chutzpah 15/03/06 01:25:05 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: ganeti-2.10.5-r4.ebuild ganeti-2.12.1.ebuild |
5 |
ganeti-2.11.6-r2.ebuild |
6 |
Removed: ganeti-2.11.2-r3.ebuild ganeti-2.11.5-r1.ebuild |
7 |
ganeti-2.9.5.ebuild ganeti-2.11.6-r1.ebuild |
8 |
ganeti-2.10.5-r3.ebuild ganeti-2.7.2.ebuild |
9 |
Log: |
10 |
Version bump. Revision bump on 2.11.6 and 2.10.5 to update dependencies to be more specific (makes repoman happy). Clean out old versions. |
11 |
|
12 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
13 |
|
14 |
Revision Changes Path |
15 |
1.12 app-emulation/ganeti/metadata.xml |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/metadata.xml?rev=1.12&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/metadata.xml?rev=1.12&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/metadata.xml?r1=1.11&r2=1.12 |
20 |
|
21 |
Index: metadata.xml |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/ganeti/metadata.xml,v |
24 |
retrieving revision 1.11 |
25 |
retrieving revision 1.12 |
26 |
diff -u -r1.11 -r1.12 |
27 |
--- metadata.xml 29 Aug 2014 20:52:43 -0000 1.11 |
28 |
+++ metadata.xml 6 Mar 2015 01:25:05 -0000 1.12 |
29 |
@@ -30,7 +30,6 @@ |
30 |
<flag name='multiple-users'>Enable support for running VMs as different users.</flag> |
31 |
<flag name='monitoring'>Enable the ganeti monitoring daemon</flag> |
32 |
<flag name='rbd'>Enable rados block device support via sys-cluster/ceph</flag> |
33 |
- <flag name='sharedstorage'>Enable Shared Storage support</flag> |
34 |
<flag name='xen'>Enable Xen support</flag> |
35 |
</use> |
36 |
</pkgmetadata> |
37 |
|
38 |
|
39 |
|
40 |
1.97 app-emulation/ganeti/ChangeLog |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?rev=1.97&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?rev=1.97&content-type=text/plain |
44 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?r1=1.96&r2=1.97 |
45 |
|
46 |
Index: ChangeLog |
47 |
=================================================================== |
48 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v |
49 |
retrieving revision 1.96 |
50 |
retrieving revision 1.97 |
51 |
diff -u -r1.96 -r1.97 |
52 |
--- ChangeLog 17 Nov 2014 09:56:40 -0000 1.96 |
53 |
+++ ChangeLog 6 Mar 2015 01:25:05 -0000 1.97 |
54 |
@@ -1,6 +1,25 @@ |
55 |
# ChangeLog for app-emulation/ganeti |
56 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
57 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.96 2014/11/17 09:56:40 pinkbyte Exp $ |
58 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
59 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.97 2015/03/06 01:25:05 chutzpah Exp $ |
60 |
+ |
61 |
+*ganeti-2.11.6-r2 (06 Mar 2015) |
62 |
+*ganeti-2.10.5-r4 (06 Mar 2015) |
63 |
+*ganeti-2.12.1 (06 Mar 2015) |
64 |
+ |
65 |
+ 06 Mar 2015; Patrick McLean <chutzpah@g.o> |
66 |
+ +files/ganeti-2.12-daemon-util.patch, |
67 |
+ +files/ganeti-2.12-qemu-enable-kvm.patch, |
68 |
+ +files/ganeti-2.12-start-stop-daemon-args.patch, |
69 |
+ +files/ganeti-2.12-tests.patch, +ganeti-2.10.5-r4.ebuild, |
70 |
+ +ganeti-2.11.6-r2.ebuild, +ganeti-2.12.1.ebuild, |
71 |
+ -files/ganeti-2.0.3-gentoo-brctl-path.patch, |
72 |
+ -files/ganeti-2.5-gentoo-start-stop-daemon.patch, |
73 |
+ -files/ganeti-2.6-fix-tests.patch, -files/ganeti-2.9-automake-1.13.patch, |
74 |
+ -ganeti-2.10.5-r3.ebuild, -ganeti-2.11.2-r3.ebuild, -ganeti-2.11.5-r1.ebuild, |
75 |
+ -ganeti-2.11.6-r1.ebuild, -ganeti-2.7.2.ebuild, -ganeti-2.9.5.ebuild, |
76 |
+ metadata.xml: |
77 |
+ Version bump. Revision bump on 2.11.6 and 2.10.5 to update dependencies to be |
78 |
+ more specific (makes repoman happy). Clean out old versions. |
79 |
|
80 |
*ganeti-2.11.6-r1 (17 Nov 2014) |
81 |
|
82 |
|
83 |
|
84 |
|
85 |
1.1 app-emulation/ganeti/ganeti-2.10.5-r4.ebuild |
86 |
|
87 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5-r4.ebuild?rev=1.1&view=markup |
88 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5-r4.ebuild?rev=1.1&content-type=text/plain |
89 |
|
90 |
Index: ganeti-2.10.5-r4.ebuild |
91 |
=================================================================== |
92 |
# Copyright 1999-2015 Gentoo Foundation |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5-r4.ebuild,v 1.1 2015/03/06 01:25:05 chutzpah Exp $ |
95 |
|
96 |
EAPI=5 |
97 |
PYTHON_COMPAT=(python2_{6,7}) |
98 |
use test && PYTHON_REQ_USE="ipv6" |
99 |
|
100 |
inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator |
101 |
|
102 |
MY_PV="${PV/_rc/~rc}" |
103 |
#MY_PV="${PV/_beta/~beta}" |
104 |
MY_P="${PN}-${MY_PV}" |
105 |
SERIES="$(get_version_component_range 1-2)" |
106 |
|
107 |
if [[ ${PV} == "9999" ]] ; then |
108 |
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
109 |
inherit git-2 |
110 |
KEYWORDS="" |
111 |
# you will need to pull in the haskell overlay for pandoc |
112 |
GIT_DEPEND="app-text/pandoc |
113 |
dev-python/docutils |
114 |
dev-python/sphinx |
115 |
media-libs/gd[fontconfig,jpeg,png,truetype] |
116 |
media-gfx/graphviz |
117 |
media-fonts/urw-fonts" |
118 |
else |
119 |
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz" |
120 |
KEYWORDS="~amd64 ~x86" |
121 |
fi |
122 |
|
123 |
DESCRIPTION="Ganeti is a virtual server management software tool" |
124 |
HOMEPAGE="http://code.google.com/p/ganeti/" |
125 |
|
126 |
LICENSE="GPL-2" |
127 |
SLOT="0" |
128 |
IUSE="kvm xen lxc drbd htools syslog ipv6 haskell-daemons rbd test" |
129 |
REQUIRED_USE="|| ( kvm xen lxc )" |
130 |
|
131 |
HASKELL_DEPS=">=dev-lang/ghc-6.12:0= |
132 |
dev-haskell/json:0= |
133 |
dev-haskell/curl:0= |
134 |
dev-haskell/network:0= |
135 |
dev-haskell/parallel:3= |
136 |
dev-haskell/hslogger:0= |
137 |
dev-haskell/utf8-string:0= |
138 |
dev-haskell/deepseq:0= |
139 |
dev-haskell/attoparsec:0= |
140 |
dev-haskell/crypto:0=" |
141 |
|
142 |
DEPEND="xen? ( >=app-emulation/xen-3.0 ) |
143 |
kvm? ( app-emulation/qemu ) |
144 |
lxc? ( app-emulation/lxc ) |
145 |
drbd? ( <sys-cluster/drbd-8.5 ) |
146 |
rbd? ( sys-cluster/ceph ) |
147 |
ipv6? ( net-misc/ndisc6 ) |
148 |
haskell-daemons? ( |
149 |
${HASKELL_DEPS} |
150 |
dev-haskell/text:0= |
151 |
dev-haskell/hinotify:0= |
152 |
dev-haskell/regex-pcre-builtin:0= |
153 |
dev-haskell/vector:0= |
154 |
) |
155 |
dev-libs/openssl:0 |
156 |
dev-python/paramiko[${PYTHON_USEDEP}] |
157 |
dev-python/pyopenssl[${PYTHON_USEDEP}] |
158 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
159 |
dev-python/pycurl[${PYTHON_USEDEP}] |
160 |
dev-python/pyinotify[${PYTHON_USEDEP}] |
161 |
dev-python/simplejson[${PYTHON_USEDEP}] |
162 |
dev-python/ipaddr[${PYTHON_USEDEP}] |
163 |
dev-python/bitarray[${PYTHON_USEDEP}] |
164 |
net-analyzer/arping |
165 |
net-analyzer/fping |
166 |
net-misc/bridge-utils |
167 |
net-misc/curl[ssl] |
168 |
net-misc/openssh |
169 |
net-misc/socat |
170 |
sys-apps/iproute2 |
171 |
sys-fs/lvm2 |
172 |
>=sys-apps/baselayout-2.0 |
173 |
${PYTHON_DEPS} |
174 |
${GIT_DEPEND}" |
175 |
RDEPEND="${DEPEND} |
176 |
!app-emulation/ganeti-htools" |
177 |
DEPEND+="${HASKELL_DEPS} |
178 |
sys-devel/m4 |
179 |
test? ( |
180 |
dev-python/mock |
181 |
dev-python/pyyaml |
182 |
dev-haskell/test-framework:0= |
183 |
dev-haskell/test-framework-hunit:0= |
184 |
dev-haskell/test-framework-quickcheck2:0= |
185 |
dev-haskell/temporary:0= |
186 |
sys-apps/fakeroot |
187 |
)" |
188 |
|
189 |
PATCHES=( |
190 |
"${FILESDIR}/${PN}-2.6-fix-args.patch" |
191 |
"${FILESDIR}/${PN}-2.6-add-pgrep.patch" |
192 |
"${FILESDIR}/${PN}-2.7-fix-tests.patch" |
193 |
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
194 |
"${FILESDIR}/${PN}-2.9-regex-builtin.patch" |
195 |
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
196 |
"${FILESDIR}/${PN}-2.10-rundir.patch" |
197 |
"${FILESDIR}/${PN}-lockdir.patch" |
198 |
) |
199 |
|
200 |
S="${WORKDIR}/${MY_P}" |
201 |
|
202 |
pkg_setup () { |
203 |
confutils_use_depend_all haskell-daemons htools |
204 |
python-single-r1_pkg_setup |
205 |
} |
206 |
|
207 |
src_prepare() { |
208 |
epatch "${PATCHES[@]}" |
209 |
[[ ${PV} == "9999" ]] && ./autogen.sh |
210 |
rm autotools/missing |
211 |
eautoreconf |
212 |
} |
213 |
|
214 |
src_configure () { |
215 |
econf --localstatedir=/var \ |
216 |
--sharedstatedir=/var \ |
217 |
--disable-symlinks \ |
218 |
--docdir=/usr/share/doc/${P} \ |
219 |
--with-ssh-initscript=/etc/init.d/sshd \ |
220 |
--with-export-dir=/var/lib/ganeti-storage/export \ |
221 |
--with-os-search-path=/usr/share/${PN}/os \ |
222 |
$(use_enable syslog) \ |
223 |
$(usex kvm '--with-kvm-path=' '' '/usr/bin/qemu-kvm' '') \ |
224 |
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
225 |
} |
226 |
|
227 |
src_install () { |
228 |
emake V=1 DESTDIR="${D}" install || die "emake install failed" |
229 |
|
230 |
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
231 |
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
232 |
|
233 |
use kvm && newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
234 |
use kvm && newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
235 |
newbashcomp doc/examples/bash_completion ganeti |
236 |
dodoc INSTALL UPGRADE NEWS README doc/*.rst |
237 |
dohtml -r doc/html/* |
238 |
rm -rf "${D}"/{usr/share/doc/${PN},run} |
239 |
|
240 |
docinto examples |
241 |
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
242 |
|
243 |
docinto examples/hooks |
244 |
dodoc doc/examples/hooks/{ipsec,ethers} |
245 |
|
246 |
insinto /etc/cron.d |
247 |
newins doc/examples/ganeti.cron ${PN} |
248 |
|
249 |
insinto /etc/logrotate.d |
250 |
newins doc/examples/ganeti.logrotate ${PN} |
251 |
|
252 |
python_fix_shebang "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
253 |
|
254 |
keepdir /var/{lib,log}/${PN}/ |
255 |
keepdir /usr/share/${PN}/${SERIES}/os/ |
256 |
keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
257 |
|
258 |
dosym ${SERIES} "/usr/share/${PN}/default" |
259 |
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
260 |
|
261 |
python_fix_shebang "${ED}" |
262 |
} |
263 |
|
264 |
src_test () { |
265 |
emake check || die "emake check failed" |
266 |
} |
267 |
|
268 |
|
269 |
|
270 |
1.1 app-emulation/ganeti/ganeti-2.12.1.ebuild |
271 |
|
272 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.12.1.ebuild?rev=1.1&view=markup |
273 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.12.1.ebuild?rev=1.1&content-type=text/plain |
274 |
|
275 |
Index: ganeti-2.12.1.ebuild |
276 |
=================================================================== |
277 |
# Copyright 1999-2015 Gentoo Foundation |
278 |
# Distributed under the terms of the GNU General Public License v2 |
279 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.12.1.ebuild,v 1.1 2015/03/06 01:25:05 chutzpah Exp $ |
280 |
|
281 |
EAPI=5 |
282 |
PYTHON_COMPAT=(python2_7) |
283 |
use test && PYTHON_REQ_USE="ipv6" |
284 |
|
285 |
inherit eutils user confutils autotools bash-completion-r1 python-single-r1 versionator pax-utils |
286 |
|
287 |
MY_PV="${PV/_rc/~rc}" |
288 |
#MY_PV="${PV/_beta/~beta}" |
289 |
MY_P="${PN}-${MY_PV}" |
290 |
SERIES="$(get_version_component_range 1-2)" |
291 |
|
292 |
if [[ ${PV} == "9999" ]] ; then |
293 |
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
294 |
inherit git-2 |
295 |
KEYWORDS="" |
296 |
# you will need to pull in the haskell overlay for pandoc |
297 |
GIT_DEPEND="app-text/pandoc |
298 |
dev-python/docutils |
299 |
dev-python/sphinx |
300 |
media-libs/gd[fontconfig,jpeg,png,truetype] |
301 |
media-gfx/graphviz |
302 |
media-fonts/urw-fonts" |
303 |
else |
304 |
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz" |
305 |
KEYWORDS="~amd64 ~x86" |
306 |
fi |
307 |
|
308 |
DESCRIPTION="Ganeti is a virtual server management software tool" |
309 |
HOMEPAGE="http://code.google.com/p/ganeti/" |
310 |
|
311 |
LICENSE="GPL-2" |
312 |
SLOT="0" |
313 |
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
314 |
REQUIRED_USE="|| ( kvm xen lxc )" |
315 |
|
316 |
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
317 |
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
318 |
|
319 |
# lest-than atoms at the end of this list are resolver hints |
320 |
# they aren't actual direct dependencies, these need to stay until 2.14.0 |
321 |
HASKELL_DEPS=">=dev-lang/ghc-6.12:0= |
322 |
>=dev-haskell/json-0.9:0= |
323 |
<dev-haskell/monad-control-1.0.0.0:0= |
324 |
<dev-haskell/transformers-0.4.0:0= |
325 |
dev-haskell/curl:0= |
326 |
dev-haskell/network:0= |
327 |
dev-haskell/parallel:3= |
328 |
>=dev-haskell/hslogger-1.2.6:0= |
329 |
dev-haskell/snap-server:0= |
330 |
dev-haskell/utf8-string:0= |
331 |
dev-haskell/deepseq:0= |
332 |
dev-haskell/attoparsec:0= |
333 |
dev-haskell/crypto:0= |
334 |
dev-haskell/vector:0= |
335 |
dev-haskell/hinotify:0= |
336 |
dev-haskell/regex-pcre-builtin:0= |
337 |
dev-haskell/zlib:0= |
338 |
>=dev-haskell/lifted-base-0.2.3.3:0= |
339 |
<dev-haskell/lens-3.10:0= |
340 |
dev-haskell/base64-bytestring:0= |
341 |
<dev-haskell/mtl-2.2 |
342 |
<dev-haskell/contravariant-0.6 |
343 |
<dev-haskell/profunctors-4.3 |
344 |
<dev-haskell/distributive-0.4 |
345 |
<dev-haskell/comonad-4.2.2 |
346 |
<dev-haskell/transformers-compat-0.3 |
347 |
<dev-haskell/transformers-base-0.4.4 |
348 |
<dev-haskell/semigroupoids-4.0 |
349 |
<dev-haskell/semigroupoid-extras-4.0 |
350 |
<dev-haskell/groupoids-4.0" |
351 |
|
352 |
DEPEND="xen? ( >=app-emulation/xen-3.0 ) |
353 |
kvm? ( app-emulation/qemu ) |
354 |
lxc? ( app-emulation/lxc ) |
355 |
drbd? ( <sys-cluster/drbd-8.5 ) |
356 |
rbd? ( sys-cluster/ceph ) |
357 |
ipv6? ( net-misc/ndisc6 ) |
358 |
haskell-daemons? ( |
359 |
${HASKELL_DEPS} |
360 |
dev-haskell/text:0= |
361 |
) |
362 |
dev-libs/openssl:0 |
363 |
dev-python/paramiko[${PYTHON_USEDEP}] |
364 |
dev-python/pyopenssl[${PYTHON_USEDEP}] |
365 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
366 |
dev-python/pycurl[${PYTHON_USEDEP}] |
367 |
dev-python/pyinotify[${PYTHON_USEDEP}] |
368 |
dev-python/simplejson[${PYTHON_USEDEP}] |
369 |
dev-python/ipaddr[${PYTHON_USEDEP}] |
370 |
dev-python/bitarray[${PYTHON_USEDEP}] |
371 |
net-analyzer/arping |
372 |
net-analyzer/fping |
373 |
net-misc/bridge-utils |
374 |
net-misc/curl[ssl] |
375 |
net-misc/openssh |
376 |
net-misc/socat |
377 |
sys-apps/iproute2 |
378 |
sys-fs/lvm2 |
379 |
>=sys-apps/baselayout-2.0 |
380 |
${PYTHON_DEPS} |
381 |
${GIT_DEPEND}" |
382 |
RDEPEND="${DEPEND} |
383 |
!app-emulation/ganeti-htools" |
384 |
DEPEND+="${HASKELL_DEPS} |
385 |
sys-devel/m4 |
386 |
test? ( |
387 |
dev-python/mock |
388 |
dev-python/pyyaml |
389 |
dev-haskell/haddock:0= |
390 |
dev-haskell/test-framework:0= |
391 |
dev-haskell/test-framework-hunit:0= |
392 |
dev-haskell/test-framework-quickcheck2:0= |
393 |
dev-haskell/temporary:0= |
394 |
sys-apps/fakeroot |
395 |
net-misc/socat |
396 |
dev-util/shelltestrunner |
397 |
)" |
398 |
|
399 |
PATCHES=( |
400 |
"${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch" |
401 |
"${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
402 |
"${FILESDIR}/${PN}-2.12-daemon-util.patch" |
403 |
"${FILESDIR}/${PN}-2.7-fix-tests.patch" |
404 |
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
405 |
"${FILESDIR}/${PN}-2.11-regex-builtin.patch" |
406 |
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
407 |
"${FILESDIR}/${PN}-2.10-rundir.patch" |
408 |
"${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch" |
409 |
"${FILESDIR}/${PN}-2.11-tests.patch" |
410 |
"${FILESDIR}/${PN}-lockdir.patch" |
411 |
"${FILESDIR}/${PN}-2.11-useradd.patch" |
412 |
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
413 |
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
414 |
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
415 |
"${FILESDIR}/${PN}-2.12-tests.patch" |
416 |
) |
417 |
|
418 |
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
419 |
|
420 |
S="${WORKDIR}/${MY_P}" |
421 |
|
422 |
pkg_setup () { |
423 |
local user |
424 |
confutils_use_depend_all haskell-daemons htools |
425 |
python-single-r1_pkg_setup |
426 |
|
427 |
if use multiple-users; then |
428 |
for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do |
429 |
enewgroup ${user} |
430 |
enewuser ${user} -1 -1 -1 ${user} |
431 |
done |
432 |
fi |
433 |
} |
434 |
|
435 |
src_prepare() { |
436 |
local testfile |
437 |
epatch "${PATCHES[@]}" |
438 |
|
439 |
# not sure why these tests are failing |
440 |
# should remove this on next version bump if possible |
441 |
for testfile in test/py/import-export_unittest.bash; do |
442 |
printf '#!/bin/bash\ntrue\n' > "${testfile}" |
443 |
done |
444 |
|
445 |
[[ ${PV} == "9999" ]] && ./autogen.sh |
446 |
rm autotools/missing |
447 |
eautoreconf |
448 |
} |
449 |
|
450 |
src_configure () { |
451 |
# this is kind of a hack to work around the removal of the qemu-kvm wrapper |
452 |
local kvm_arch |
453 |
|
454 |
if use amd64; then |
455 |
kvm_arch=x86_64 |
456 |
elif use x86; then |
457 |
kvm_arch=i386 |
458 |
elif use kvm; then |
459 |
die "Could not determine qemu system to use for kvm" |
460 |
fi |
461 |
|
462 |
econf --localstatedir=/var \ |
463 |
--sharedstatedir=/var \ |
464 |
--disable-symlinks \ |
465 |
--docdir=/usr/share/doc/${P} \ |
466 |
--with-ssh-initscript=/etc/init.d/sshd \ |
467 |
--with-export-dir=/var/lib/ganeti-storage/export \ |
468 |
--with-os-search-path=/usr/share/${PN}/os \ |
469 |
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
470 |
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
471 |
$(use_enable syslog) \ |
472 |
$(use_enable monitoring) \ |
473 |
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
474 |
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
475 |
} |
476 |
|
477 |
src_install () { |
478 |
emake V=1 DESTDIR="${D}" install || die "emake install failed" |
479 |
|
480 |
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
481 |
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
482 |
|
483 |
if use kvm; then |
484 |
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
485 |
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
486 |
fi |
487 |
|
488 |
# ganeti installs it's own docs in a generic location |
489 |
rm -rf "${D}"/{usr/share/doc/${PN},run} |
490 |
|
491 |
newbashcomp doc/examples/bash_completion ganeti |
492 |
|
493 |
dodoc INSTALL UPGRADE NEWS README doc/*.rst |
494 |
dohtml -r doc/html/* doc/css/*.css |
495 |
|
496 |
docinto examples |
497 |
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
498 |
|
499 |
docinto examples/hooks |
500 |
dodoc doc/examples/hooks/{ipsec,ethers} |
501 |
|
502 |
insinto /etc/cron.d |
503 |
newins doc/examples/ganeti.cron ${PN} |
504 |
|
505 |
insinto /etc/logrotate.d |
506 |
newins doc/examples/ganeti.logrotate ${PN} |
507 |
|
508 |
keepdir /var/{lib,log}/${PN}/ |
509 |
keepdir /usr/share/${PN}/${SERIES}/os/ |
510 |
keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
511 |
|
512 |
dosym ${SERIES} "/usr/share/${PN}/default" |
513 |
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
514 |
|
515 |
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
516 |
} |
517 |
|
518 |
pkg_postinst() { |
519 |
if use multiple-users; then |
520 |
elog "You have enable multiple user support, the users for this must" |
521 |
elog "be created. You can use the provided tool for this, which is" |
522 |
elog "located at:" |
523 |
elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
524 |
fi |
525 |
} |
526 |
|
527 |
src_test () { |
528 |
PATH="${S}/scripts:${S}/src:${PATH}" \ |
529 |
TMPDIR="/tmp" \ |
530 |
emake check || die "emake check failed" |
531 |
} |
532 |
|
533 |
|
534 |
|
535 |
1.1 app-emulation/ganeti/ganeti-2.11.6-r2.ebuild |
536 |
|
537 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild?rev=1.1&view=markup |
538 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild?rev=1.1&content-type=text/plain |
539 |
|
540 |
Index: ganeti-2.11.6-r2.ebuild |
541 |
=================================================================== |
542 |
# Copyright 1999-2015 Gentoo Foundation |
543 |
# Distributed under the terms of the GNU General Public License v2 |
544 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.11.6-r2.ebuild,v 1.1 2015/03/06 01:25:05 chutzpah Exp $ |
545 |
|
546 |
EAPI=5 |
547 |
PYTHON_COMPAT=(python2_{6,7}) |
548 |
use test && PYTHON_REQ_USE="ipv6" |
549 |
|
550 |
inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator pax-utils |
551 |
|
552 |
MY_PV="${PV/_rc/~rc}" |
553 |
#MY_PV="${PV/_beta/~beta}" |
554 |
MY_P="${PN}-${MY_PV}" |
555 |
SERIES="$(get_version_component_range 1-2)" |
556 |
|
557 |
if [[ ${PV} == "9999" ]] ; then |
558 |
EGIT_REPO_URI="git://git.ganeti.org/ganeti.git" |
559 |
inherit git-2 |
560 |
KEYWORDS="" |
561 |
# you will need to pull in the haskell overlay for pandoc |
562 |
GIT_DEPEND="app-text/pandoc |
563 |
dev-python/docutils |
564 |
dev-python/sphinx |
565 |
media-libs/gd[fontconfig,jpeg,png,truetype] |
566 |
media-gfx/graphviz |
567 |
media-fonts/urw-fonts" |
568 |
else |
569 |
SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz" |
570 |
KEYWORDS="~amd64 ~x86" |
571 |
fi |
572 |
|
573 |
DESCRIPTION="Ganeti is a virtual server management software tool" |
574 |
HOMEPAGE="http://code.google.com/p/ganeti/" |
575 |
|
576 |
LICENSE="GPL-2" |
577 |
SLOT="0" |
578 |
IUSE="drbd haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen" |
579 |
REQUIRED_USE="|| ( kvm xen lxc )" |
580 |
|
581 |
USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}" |
582 |
GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}" |
583 |
|
584 |
HASKELL_DEPS=">=dev-lang/ghc-6.12:0= |
585 |
dev-haskell/json:0= |
586 |
dev-haskell/curl:0= |
587 |
dev-haskell/network:0= |
588 |
dev-haskell/parallel:3= |
589 |
dev-haskell/hslogger:0= |
590 |
dev-haskell/utf8-string:0= |
591 |
dev-haskell/deepseq:0= |
592 |
dev-haskell/attoparsec:0= |
593 |
dev-haskell/crypto:0= |
594 |
dev-haskell/vector:0= |
595 |
dev-haskell/hinotify:0= |
596 |
dev-haskell/regex-pcre-builtin:0= |
597 |
dev-haskell/zlib:0= |
598 |
dev-haskell/base64-bytestring:0= |
599 |
monitoring? ( dev-haskell/snap-server:0= )" |
600 |
|
601 |
DEPEND="xen? ( >=app-emulation/xen-3.0 ) |
602 |
kvm? ( app-emulation/qemu ) |
603 |
lxc? ( app-emulation/lxc ) |
604 |
drbd? ( <sys-cluster/drbd-8.5 ) |
605 |
rbd? ( sys-cluster/ceph ) |
606 |
ipv6? ( net-misc/ndisc6 ) |
607 |
haskell-daemons? ( |
608 |
${HASKELL_DEPS} |
609 |
dev-haskell/text:0= |
610 |
) |
611 |
dev-libs/openssl:0 |
612 |
dev-python/paramiko[${PYTHON_USEDEP}] |
613 |
dev-python/pyopenssl[${PYTHON_USEDEP}] |
614 |
dev-python/pyparsing[${PYTHON_USEDEP}] |
615 |
dev-python/pycurl[${PYTHON_USEDEP}] |
616 |
dev-python/pyinotify[${PYTHON_USEDEP}] |
617 |
dev-python/simplejson[${PYTHON_USEDEP}] |
618 |
dev-python/ipaddr[${PYTHON_USEDEP}] |
619 |
dev-python/bitarray[${PYTHON_USEDEP}] |
620 |
net-analyzer/arping |
621 |
net-analyzer/fping |
622 |
net-misc/bridge-utils |
623 |
net-misc/curl[ssl] |
624 |
net-misc/openssh |
625 |
net-misc/socat |
626 |
sys-apps/iproute2 |
627 |
sys-fs/lvm2 |
628 |
>=sys-apps/baselayout-2.0 |
629 |
${PYTHON_DEPS} |
630 |
${GIT_DEPEND}" |
631 |
RDEPEND="${DEPEND} |
632 |
!app-emulation/ganeti-htools" |
633 |
DEPEND+="${HASKELL_DEPS} |
634 |
sys-devel/m4 |
635 |
test? ( |
636 |
dev-python/mock |
637 |
dev-python/pyyaml |
638 |
dev-haskell/haddock:0= |
639 |
dev-haskell/test-framework:0= |
640 |
dev-haskell/test-framework-hunit:0= |
641 |
dev-haskell/test-framework-quickcheck2:0= |
642 |
dev-haskell/temporary:0= |
643 |
sys-apps/fakeroot |
644 |
)" |
645 |
|
646 |
PATCHES=( |
647 |
"${FILESDIR}/${PN}-2.11-start-stop-daemon-args.patch" |
648 |
"${FILESDIR}/${PN}-2.11-add-pgrep.patch" |
649 |
"${FILESDIR}/${PN}-2.11-daemon-util.patch" |
650 |
"${FILESDIR}/${PN}-2.7-fix-tests.patch" |
651 |
"${FILESDIR}/${PN}-2.9-disable-root-tests.patch" |
652 |
"${FILESDIR}/${PN}-2.11-regex-builtin.patch" |
653 |
"${FILESDIR}/${PN}-2.9-skip-cli-test.patch" |
654 |
"${FILESDIR}/${PN}-2.10-rundir.patch" |
655 |
"${FILESDIR}/${PN}-2.11-qemu-enable-kvm.patch" |
656 |
"${FILESDIR}/${PN}-2.11-tests.patch" |
657 |
"${FILESDIR}/${PN}-lockdir.patch" |
658 |
"${FILESDIR}/${PN}-2.11-useradd.patch" |
659 |
"${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch" |
660 |
"${FILESDIR}/${PN}-2.11-dont-print-man-help.patch" |
661 |
"${FILESDIR}/${PN}-2.11-daemon-util-tests.patch" |
662 |
) |
663 |
|
664 |
REQUIRED_USE="kvm? ( || ( amd64 x86 ) )" |
665 |
|
666 |
S="${WORKDIR}/${MY_P}" |
667 |
|
668 |
pkg_setup () { |
669 |
confutils_use_depend_all haskell-daemons htools |
670 |
python-single-r1_pkg_setup |
671 |
} |
672 |
|
673 |
src_prepare() { |
674 |
epatch "${PATCHES[@]}" |
675 |
|
676 |
[[ ${PV} == "9999" ]] && ./autogen.sh |
677 |
rm autotools/missing |
678 |
eautoreconf |
679 |
} |
680 |
|
681 |
src_configure () { |
682 |
# this is kind of a hack to work around the removal of the qemu-kvm wrapper |
683 |
local kvm_arch |
684 |
|
685 |
if use amd64; then |
686 |
kvm_arch=x86_64 |
687 |
elif use x86; then |
688 |
kvm_arch=i386 |
689 |
elif use kvm; then |
690 |
die "Could not determine qemu system to use for kvm" |
691 |
fi |
692 |
|
693 |
econf --localstatedir=/var \ |
694 |
--sharedstatedir=/var \ |
695 |
--disable-symlinks \ |
696 |
--docdir=/usr/share/doc/${P} \ |
697 |
--with-ssh-initscript=/etc/init.d/sshd \ |
698 |
--with-export-dir=/var/lib/ganeti-storage/export \ |
699 |
--with-os-search-path=/usr/share/${PN}/os \ |
700 |
$(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \ |
701 |
$(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \ |
702 |
$(use_enable syslog) \ |
703 |
$(use_enable monitoring) \ |
704 |
$(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \ |
705 |
$(usex haskell-daemons "--enable-confd=haskell" '' '' '') |
706 |
} |
707 |
|
708 |
src_install () { |
709 |
emake V=1 DESTDIR="${D}" install || die "emake install failed" |
710 |
|
711 |
newinitd "${FILESDIR}"/ganeti.initd-r3 ${PN} |
712 |
newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN} |
713 |
|
714 |
if use kvm; then |
715 |
newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff |
716 |
newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff |
717 |
fi |
718 |
|
719 |
# ganeti installs it's own docs in a generic location |
720 |
rm -rf "${D}"/{usr/share/doc/${PN},run} |
721 |
|
722 |
newbashcomp doc/examples/bash_completion ganeti |
723 |
|
724 |
dodoc INSTALL UPGRADE NEWS README doc/*.rst |
725 |
dohtml -r doc/html/* doc/css/*.css |
726 |
|
727 |
docinto examples |
728 |
dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf |
729 |
|
730 |
docinto examples/hooks |
731 |
dodoc doc/examples/hooks/{ipsec,ethers} |
732 |
|
733 |
insinto /etc/cron.d |
734 |
newins doc/examples/ganeti.cron ${PN} |
735 |
|
736 |
insinto /etc/logrotate.d |
737 |
newins doc/examples/ganeti.logrotate ${PN} |
738 |
|
739 |
keepdir /var/{lib,log}/${PN}/ |
740 |
keepdir /usr/share/${PN}/${SERIES}/os/ |
741 |
keepdir /var/lib/ganeti-storage/{export,file,shared}/ |
742 |
|
743 |
dosym ${SERIES} "/usr/share/${PN}/default" |
744 |
dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default" |
745 |
|
746 |
python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES} |
747 |
} |
748 |
|
749 |
pkg_postinst() { |
750 |
if use multiple-users; then |
751 |
elog "You have enable multiple user support, the users for this must" |
752 |
elog "be created. You can use the provided tool for this, which is" |
753 |
elog "located at:" |
754 |
elog " /usr/$(get_libdir)/${PN}/tools/users-setup" |
755 |
fi |
756 |
} |
757 |
|
758 |
src_test () { |
759 |
PATH="${S}/scripts:${S}/src:${PATH}" \ |
760 |
TMPDIR="/tmp" \ |
761 |
emake check || die "emake check failed" |
762 |
} |