Added
Link Here
|
1 |
# HG changeset patch |
2 |
# Parent d90c3d4786da4cfa7944c9009a0071e3ea6f8581 |
3 |
|
4 |
diff -r d90c3d4786da configure.ac |
5 |
--- a/configure.ac Wed Jun 13 11:43:31 2012 +0900 |
Added
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header$ |
4 |
|
5 |
EAPI="2" |
6 |
|
7 |
PYTHON_DEPEND="2" |
8 |
|
9 |
inherit autotools base python |
10 |
|
11 |
MY_PN=Pacemaker |
12 |
MY_P=${MY_PN}-${PV} |
13 |
MY_TREE="066152e" |
14 |
|
15 |
DESCRIPTION="Pacemaker CRM" |
16 |
HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker" |
17 |
SRC_URI="https://github.com/ClusterLabs/${PN}-1.0/tarball/${MY_P} -> ${P}.tar.gz" |
18 |
|
19 |
LICENSE="GPL-2" |
20 |
SLOT="0" |
21 |
KEYWORDS="amd64 ~hppa ~x86" |
22 |
IUSE="+ais heartbeat smtp snmp static-libs" |
23 |
|
24 |
DEPEND=" |
25 |
app-text/docbook-xsl-stylesheets |
26 |
dev-libs/libxslt |
27 |
sys-cluster/cluster-glue |
28 |
sys-cluster/resource-agents |
29 |
heartbeat? ( >=sys-cluster/heartbeat-3.0.0 ) |
30 |
!heartbeat? ( sys-cluster/corosync ) |
31 |
smtp? ( net-libs/libesmtp ) |
32 |
snmp? ( net-analyzer/net-snmp ) |
33 |
" |
34 |
RDEPEND="${DEPEND}" |
35 |
|
36 |
PATCHES=( |
37 |
"${FILESDIR}/${PN}-1.0.10-asneeded.patch" |
38 |
"${FILESDIR}/${PN}-1.0.10-installpaths.patch" |
39 |
"${FILESDIR}/1.0.12-BUILD_VERSION.patch" |
40 |
) |
41 |
|
42 |
S="${WORKDIR}/ClusterLabs-${PN}-1.0-${MY_TREE}" |
43 |
|
44 |
pkg_setup() { |
45 |
python_set_active_version 2 |
46 |
python_pkg_setup |
47 |
} |
48 |
|
49 |
src_prepare() { |
50 |
base_src_prepare |
51 |
sed -i -e "/ggdb3/d" configure.ac || die |
52 |
sed -e "s:<glib/ghash.h>:<glib.h>:" \ |
53 |
-i lib/ais/plugin.c || die |
54 |
eautoreconf |
55 |
} |
56 |
|
57 |
src_configure() { |
58 |
local myopts="" |
59 |
use heartbeat || myopts="--with-ais" |
60 |
# appends lib to localstatedir automatically |
61 |
econf \ |
62 |
--localstatedir=/var \ |
63 |
--disable-dependency-tracking \ |
64 |
--disable-fatal-warnings \ |
65 |
$(use_with heartbeat) \ |
66 |
$(use_with smtp esmtp) \ |
67 |
$(use_with snmp) \ |
68 |
$(use_enable static-libs static) \ |
69 |
${myopts} |
70 |
} |