/[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.2 - (hide annotations) (download)
Thu Mar 24 13:36:20 2011 UTC (7 years, 8 months ago) by angelos
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable on amd64 wrt bug #352213

(Portage version: 2.2.0_alpha28/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 angelos 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/rgmanager/rgmanager-2.03.09-r1.ebuild,v 1.1 2011/01/20 09:13:18 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     dev-libs/libxml2
30     =sys-libs/slang-2*"
31    
32     S=${WORKDIR}/${MY_P}/${PN}
33    
34     src_prepare() {
35     epatch "${FILESDIR}"/${P}-CVE-2010-3389.patch
36     }
37    
38     src_configure() {
39     (cd "${WORKDIR}"/${MY_P};
40     ./configure \
41     --cc="$(tc-getCC)" \
42     --cflags="-Wall" \
43     --disable_kernel_check \
44     --somajor="$MAJ_PV" \
45     --sominor="$MIN_PV" \
46     --dlmlibdir=/usr/$(get_libdir) \
47     --dlmincdir=/usr/include \
48     --cmanlibdir=/usr/$(get_libdir) \
49     --cmanincdir=/usr/include \
50     ) || die "configure problem"
51     }
52    
53     src_compile() {
54     # There's a problem with -O2 right now, a patch was submitted.
55     env -u CFLAGS emake -j1 clean all || die
56     }
57    
58     src_install() {
59     emake DESTDIR="${D}" install || die
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