/[gentoo-x86]/dev-db/ctdb/ctdb-1.0.114_p1.ebuild
Gentoo

Contents of /dev-db/ctdb/ctdb-1.0.114_p1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon May 21 23:37:30 2012 UTC (22 months, 4 weeks ago) by vapier
Branch: MAIN
Changes since 1.9: +2 -2 lines
Inherit eutils for epatch.

(Portage version: 2.2.0_alpha102/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-db/ctdb/ctdb-1.0.114_p1.ebuild,v 1.9 2012/03/23 10:55:46 scarabeus Exp $
4
5 EAPI="2"
6
7 inherit autotools rpm eutils
8
9 DESCRIPTION="Cluster implementation of the TDB database used by Samba and other projects to store temporary data."
10 HOMEPAGE="http://ctdb.samba.org/"
11 SRC_URI="http://ctdb.samba.org/packages/redhat/RHEL5/${P/_p/-}.src.rpm
12 http://ctdb.samba.org/packages/redhat/RHEL5/old/${P/_p/-}.src.rpm"
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
16 IUSE="test"
17
18 RDEPEND="dev-libs/popt"
19 DEPEND="${RDEPEND}
20 test? ( sys-apps/iproute2
21 sys-process/procps )"
22
23 S="${WORKDIR}/${P/_p*}"
24
25 src_prepare() {
26 AT_M4DIR="-I ${S}/lib/replace -I ${S}/lib/talloc -I ${S}/lib/tdb -I ${S}/lib/popt -I ${S}/lib/events"
27 autotools_run_tool autoheader ${AT_M4DIR} || die "running autoheader failed"
28 eautoconf ${AT_M4DIR}
29
30 # fix tests
31 sed -i \
32 -e "s|/tmp|${T}|" \
33 tests/simple/54_ctdb_transaction_recovery.sh || die "sed failed"
34
35 # the following tests assume that the setup was indeed able to add new ip
36 # addresses to the lo device (11,16), resp make assumptions about the
37 # performance (52)
38 rm \
39 tests/simple/{11,16,52}_*.sh || die "removing failing tests failed"
40
41 epatch \
42 "${FILESDIR}/${PN}-50.samba_gentoo.patch" \
43 "${FILESDIR}/${P}-functions.patch"
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die "emake install failed"
48
49 dodoc "${D}/usr/share/doc/ctdb/README.eventscripts"
50 rm -rf "${D}/usr/share/doc/ctdb"
51
52 dohtml web/* doc/*.html
53
54 newinitd "${FILESDIR}/${PN}.initd" ctdb || die "newinitd failed"
55 newconfd "${S}/config/ctdb.sysconfig" ctdb || die "newconfd failed"
56 }
57
58 src_test() {
59 emake test || { pkill ctdb ; die "running tests failed" ; }
60 pkill ctdb
61 }

  ViewVC Help
Powered by ViewVC 1.1.20