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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun May 15 18:50:12 2011 UTC (6 years, 8 months ago) by xarthisius
Branch: MAIN
Changes since 1.3: +2 -2 lines
Update dependecies as it fails to build with dev-libs/libxml2[icu] (bug 352213)

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

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

  ViewVC Help
Powered by ViewVC 1.1.20