Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/ganeti: ganeti-2.10.5.ebuild ChangeLog
Date: Mon, 02 Jun 2014 18:57:32
Message-Id: 20140602185728.68DD32004E@flycatcher.gentoo.org
1 chutzpah 14/06/02 18:57:28
2
3 Modified: ChangeLog
4 Added: ganeti-2.10.5.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
9
10 Revision Changes Path
11 1.87 app-emulation/ganeti/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 30 May 2014 22:12:57 -0000 1.86
24 +++ ChangeLog 2 Jun 2014 18:57:28 -0000 1.87
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-emulation/ganeti
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.86 2014/05/30 22:12:57 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ChangeLog,v 1.87 2014/06/02 18:57:28 chutzpah Exp $
30 +
31 +*ganeti-2.10.5 (02 Jun 2014)
32 +
33 + 02 Jun 2014; Patrick McLean <chutzpah@g.o> +ganeti-2.10.5.ebuild:
34 + Version bump.
35
36 *ganeti-2.10.4 (30 May 2014)
37
38
39
40
41 1.1 app-emulation/ganeti/ganeti-2.10.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ganeti-2.10.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-emulation/ganeti/ganeti-2.10.5.ebuild,v 1.1 2014/06/02 18:57:28 chutzpah Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=(python2_{6,7})
54 use test && PYTHON_REQ_USE="ipv6"
55
56 inherit eutils confutils autotools bash-completion-r1 python-single-r1 versionator
57
58 MY_PV="${PV/_rc/~rc}"
59 #MY_PV="${PV/_beta/~beta}"
60 MY_P="${PN}-${MY_PV}"
61 SERIES="$(get_version_component_range 1-2)"
62
63 if [[ ${PV} == "9999" ]] ; then
64 EGIT_REPO_URI="git://git.ganeti.org/ganeti.git"
65 inherit git-2
66 KEYWORDS=""
67 # you will need to pull in the haskell overlay for pandoc
68 GIT_DEPEND="app-text/pandoc
69 dev-python/docutils
70 dev-python/sphinx
71 media-libs/gd[fontconfig,jpeg,png,truetype]
72 media-gfx/graphviz
73 media-fonts/urw-fonts"
74 else
75 SRC_URI="http://downloads.ganeti.org/releases/${SERIES}/${P}.tar.gz"
76 KEYWORDS="~amd64 ~x86"
77 fi
78
79 DESCRIPTION="Ganeti is a virtual server management software tool"
80 HOMEPAGE="http://code.google.com/p/ganeti/"
81
82 LICENSE="GPL-2"
83 SLOT="0"
84 IUSE="kvm xen lxc drbd htools syslog ipv6 haskell-daemons rbd test"
85 REQUIRED_USE="|| ( kvm xen lxc )"
86
87 S="${WORKDIR}/${MY_P}"
88
89 HASKELL_DEPS=">=dev-lang/ghc-6.12:0=
90 dev-haskell/json:0=
91 dev-haskell/curl:0=
92 dev-haskell/network:0=
93 dev-haskell/parallel
94 dev-haskell/hslogger:0=
95 dev-haskell/utf8-string:0=
96 dev-haskell/deepseq:0=
97 dev-haskell/attoparsec:0=
98 dev-haskell/crypto: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 dev-haskell/hinotify:0=
110 dev-haskell/regex-pcre-builtin:0=
111 dev-haskell/vector:0=
112 )
113 dev-libs/openssl
114 dev-python/paramiko[${PYTHON_USEDEP}]
115 dev-python/pyopenssl[${PYTHON_USEDEP}]
116 dev-python/pyparsing[${PYTHON_USEDEP}]
117 dev-python/pycurl[${PYTHON_USEDEP}]
118 dev-python/pyinotify[${PYTHON_USEDEP}]
119 dev-python/simplejson[${PYTHON_USEDEP}]
120 dev-python/ipaddr[${PYTHON_USEDEP}]
121 dev-python/bitarray[${PYTHON_USEDEP}]
122 net-analyzer/arping
123 net-analyzer/fping
124 net-misc/bridge-utils
125 net-misc/curl[ssl]
126 net-misc/openssh
127 net-misc/socat
128 sys-apps/iproute2
129 sys-fs/lvm2
130 >=sys-apps/baselayout-2.0
131 ${PYTHON_DEPS}
132 ${GIT_DEPEND}"
133 RDEPEND="${DEPEND}
134 !app-emulation/ganeti-htools"
135 DEPEND+="${HASKELL_DEPS}
136 sys-devel/m4
137 test? (
138 dev-python/mock
139 dev-python/pyyaml
140 dev-haskell/test-framework:0=
141 dev-haskell/test-framework-hunit:0=
142 dev-haskell/test-framework-quickcheck2:0=
143 dev-haskell/temporary:0=
144 sys-apps/fakeroot
145 )"
146
147 PATCHES=(
148 "${FILESDIR}/${PN}-2.6-fix-args.patch"
149 "${FILESDIR}/${PN}-2.6-add-pgrep.patch"
150 "${FILESDIR}/${PN}-2.7-fix-tests.patch"
151 "${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
152 "${FILESDIR}/${PN}-2.9-regex-builtin.patch"
153 "${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
154 "${FILESDIR}/${PN}-2.10-rundir.patch"
155 )
156
157 pkg_setup () {
158 confutils_use_depend_all haskell-daemons htools
159 python-single-r1_pkg_setup
160 }
161
162 src_prepare() {
163 epatch "${PATCHES[@]}"
164 [[ ${PV} == "9999" ]] && ./autogen.sh
165 rm autotools/missing
166 eautoreconf
167 }
168
169 src_configure () {
170 econf --localstatedir=/var \
171 --sharedstatedir=/var \
172 --disable-symlinks \
173 --docdir=/usr/share/doc/${P} \
174 --with-ssh-initscript=/etc/init.d/sshd \
175 --with-export-dir=/var/lib/ganeti-storage/export \
176 --with-os-search-path=/usr/share/${PN}/os \
177 $(use_enable syslog) \
178 $(usex kvm '--with-kvm-path=' '' '/usr/bin/qemu-kvm' '') \
179 $(usex haskell-daemons "--enable-confd=haskell" '' '' '')
180 }
181
182 src_install () {
183 emake V=1 DESTDIR="${D}" install || die "emake install failed"
184
185 newinitd "${FILESDIR}"/ganeti.initd-r2 ${PN}
186 newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
187
188 use kvm && newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
189 use kvm && newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
190 newbashcomp doc/examples/bash_completion ganeti
191 dodoc INSTALL UPGRADE NEWS README doc/*.rst
192 dohtml -r doc/html/*
193 rm -rf "${D}"/{usr/share/doc/${PN},run}
194
195 docinto examples
196 dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
197
198 docinto examples/hooks
199 dodoc doc/examples/hooks/{ipsec,ethers}
200
201 insinto /etc/cron.d
202 newins doc/examples/ganeti.cron ${PN}
203
204 insinto /etc/logrotate.d
205 newins doc/examples/ganeti.logrotate ${PN}
206
207 python_fix_shebang "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
208
209 keepdir /var/{lib,log}/${PN}/
210 keepdir /usr/share/${PN}/${SERIES}/os/
211 keepdir /var/lib/ganeti-storage/{export,file,shared}/
212
213 dosym ${SERIES} "/usr/share/${PN}/default"
214 dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
215
216 python_fix_shebang "${ED}"
217 }
218
219 src_test () {
220 emake check || die "emake check failed"
221 }