/[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.5 - (show annotations) (download)
Tue May 17 07:52:33 2011 UTC (3 years, 1 month ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
x86 stable wrt security bug #352213

(Portage version: 2.1.9.42/cvs/Linux i686)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.4 2011/05/15 18:50:12 xarthisius Exp $
4
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 KEYWORDS="amd64 x86"
22 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[-icu]
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 sed -i -e 's/-Werror//g' src/{clulib,utils,daemons}/Makefile || die
37 }
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