/[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.1 - (show annotations) (download)
Thu Jan 20 09:13:18 2011 UTC (7 years, 8 months ago) by xarthisius
Branch: MAIN
Bump to EAPI2, respect multilib paths, remove obsolete bits fixing man chmods, apply security patch wrt #352213, general cleanup.

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

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.ebuild,v 1.2 2009/02/10 22:48:36 xmerlin 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
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