/[gentoo-x86]/sys-cluster/rgmanager/rgmanager-2.03.09.ebuild
Gentoo

Contents of /sys-cluster/rgmanager/rgmanager-2.03.09.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Feb 10 22:48:36 2009 UTC (5 years, 11 months ago) by xmerlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
Stable on x86 and amd64.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/rgmanager/rgmanager-2.03.09.ebuild,v 1.1 2008/11/13 19:14:54 xmerlin Exp $
4
5 inherit eutils versionator
6
7 CLUSTER_RELEASE="${PV}"
8 MY_P="cluster-${CLUSTER_RELEASE}"
9
10 MAJ_PV="$(get_major_version)"
11 MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)"
12
13 DESCRIPTION="Clustered resource group manager"
14 HOMEPAGE="http://sources.redhat.com/cluster/wiki/"
15 SRC_URI="ftp://sources.redhat.com/pub/cluster/releases/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE=""
21
22 RDEPEND="=sys-cluster/ccs-${CLUSTER_RELEASE}*
23 =sys-cluster/dlm-lib-${CLUSTER_RELEASE}*
24 =sys-cluster/cman-lib-${CLUSTER_RELEASE}*
25 "
26
27 DEPEND="${RDEPEND}
28 dev-libs/libxml2
29 =sys-libs/slang-2*
30 "
31
32 S="${WORKDIR}/${MY_P}/${PN}"
33
34 src_compile() {
35 (cd "${WORKDIR}"/${MY_P};
36 ./configure \
37 --cc=$(tc-getCC) \
38 --cflags="-Wall" \
39 --disable_kernel_check \
40 --somajor="$MAJ_PV" \
41 --sominor="$MIN_PV" \
42 --dlmlibdir=/usr/lib \
43 --dlmincdir=/usr/include \
44 --cmanlibdir=/usr/lib \
45 --cmanincdir=/usr/include \
46 ) || die "configure problem"
47
48 # fix the manual pages have executable bit
49 sed -i -e '
50 /\tinstall -d/s/install/& -m 0755/; t
51 /\tinstall/s/install/& -m 0644/' \
52 man/Makefile
53
54 # There's a problem with -O2 right now, a patch was submitted.
55 env -u CFLAGS emake -j1 clean all || die "compile problem"
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "install problem"
60
61 newinitd "${FILESDIR}"/${PN}-2.0x.rc ${PN} || die
62 newconfd "${FILESDIR}"/${PN}-2.0x.conf ${PN} || die
63 }

  ViewVC Help
Powered by ViewVC 1.1.20